Plot options foo=bar vs [foo, bar]



Am 13 Jun 2006 um 9:46 hat Jaime E. Villate geschrieben:

> On Tue, 2006-06-13 at 07:32 +0200, van Nek wrote:
> > Question: Did you already think about having plot options, especially
> > the gnuplot_preamble, 
> > as global variables in top level? That would make plot commands much
> > easier and shorter.
> > 
> > gnuplot_preamble:"set what you want"$
> > plot2d( f(x), x in range(a,b) )$
> > 
> > That would be nice.
> 
> Do you mean defining an independent variable for each option instead of
> the current plot_options list?:
> 
> (%i5) set_plot_option([gnuplot_preamble,"set grid; set size ratio -1"])$
> 
> (%i6) plot2d(sin(x), [x,0,7])$
> 

No, Jaime, 

obviously I didn't notice that this is already possible via set_plot_option. 

Thanks for this good advice.

Volker