On Sat, 2010-05-08 at 14:14 +0100, Leo Butler wrote:
> I believe that the current version 1.159 of plot2d is
> over-riding/ignoring
> any gnuplot settings that are passed via gnuplot_preamble.
>
> E.g.
>
> (%i1) gpp : "set ylabel \"x\"; set terminal latex; set output
> \"sin.tex\";";
> (%o1) set ylabel "x"; set terminal latex; set output "sin.tex";
> (%i2) plot2d(sin(x),[x,0,2*%pi],[gnuplot_preamble,gpp]);
>
> produces a graph on the default terminal, with the ylabel set to its
> default value.
Hi Leo,
there are two bugs here. The first one is that gnuplot_pipes is setting
its own terminal, disregarding the one you define in the preamble. the
"gnuplot" plot_format does not do that, but is infected also by the
second bug which is that the axis label is set twice (first in your
preamble and then with an explicit command send by plot2d).
I will fix the second bug very soon, by adding an option to prevent
plot2d from putting any labels on the axes. The first bug will take me
longer to fix.
In the mean time, you can use [plot_format,gnuplot], and in the
resulting "maxout.gnuplot" file, eliminate the second ocurrence of
xlabel and ylabel (by hand and then "load" the file from gnuplot).
Sorry about that.
Regards,
Jaime