Re: invalid context

Patrick Dupre <[email protected]> Tue, 6 Dec 2022 17:02:27 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <trinity-d279ba4c-f2e1-4c17-a564-3ef92ca7a360-1670342547019@3c-app-mailcom-bs13>
Maybe I missed the point, there is a

replot $EXT_CEN  w l lt 0 lw 1 dt "." lc rgb "gray"


> Sent: Tuesday, December 06, 2022 at 4:49 PM
> From: "Patrick Dupre" <[email protected]>
> To: "theozh" <[email protected]>
> Cc: [email protected]
> Subject: Re: [Gnuplot-info] invalid context
>
> Thank for the feedback,
> 
> Of course not,
> There is an else
> but the issue is with the if !
> 
> if (flag_satur==1) {
> $EXT_CEN << EOD
>  0.0 1e10 1e-13
>  0.0 1e10 1
> EOD
> $EXT_p1 << EOD
>  5 1e10 1e-13
>  5 1e10 1
> EOD
> $EXT_m1 << EOD
>  -5 1e10 1e-13
>  -5 1e10 1
> EOD
>  }
> else {
> # For Linear absorption
> $EXT_CEN << EOD
>  0.0 1e4 1e-11
>  0.0 1e4 1
> EOD
> $EXT_p1 << EOD
>  5 1e4 1e-11
>  5 1e4 1
> EOD
> $EXT_m1 << EOD
>  -5 1e4 1e-11
>  -5 1e4 1
> EOD
>  }

replot $EXT_CEN  w l lt 0 lw 1 dt "." lc rgb "gray"


> 
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: [email protected]
>  Laboratoire interdisciplinaire Carnot de Bourgogne
>  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
>  Tel: +33 (0)380395988                    | | Room# D114A
> ===========================================================================
> 
> 
> > Sent: Tuesday, December 06, 2022 at 4:27 PM
> > From: "theozh" <[email protected]>
> > To: [email protected]
> > Subject: Re: [Gnuplot-info] invalid context
> >
> > What is the larger context of your script snippet?
> > 
> > What should happen if flag_satur!=0 ?
> > Then $EXT_CEN should become (or stay) undefined or become something else?
> > 
> > > Hello,
> > >
> > > It seems that I cannot do this
> > > if (flag_satur==1) {
> > > $EXT_CEN << EOD
> > >   0.0 1e10 1e-13
> > >   0.0 1e10 1
> > >   EOD
> > > }
> > >
> > 
> > 
> > _______________________________________________
> > gnuplot-info mailing list
> > [email protected]
> > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> 
> 
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info