[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: legend on contour plot
From: |
Petr Mikulik |
Subject: |
Re: legend on contour plot |
Date: |
Tue, 12 Feb 2008 09:51:48 +0100 (CET) |
> > >> There is no way yet to label the contour lines.. The only legend
> > >> possible at the moment is with "colorbar()". See
> > >>
> > >> contour(peaks)
> > >> colorbar
> > >
> > > I see... nothing. White empty room is created on the right, but no color
> > bar.
> > drawnow("x11","/dev/null",false,"debug.gp")
>
> Looking into debug.gp, the reason gets clear: gnuplot does not show colorbar
> because there is no plot using the palette.
Actually, there is a very easy solution: replace
set pm3d explicit;
by
set pm3d implicit;
and the colorbar is back.
Looking to the debug.gp file: could you add \n after the "set palette
file" command so that the binary data are separated from the forthcoming
commands?
Yet another hint: gnuplot 4.3 allows "set rmargin screen...". Then, the
current workaround
set multiplot; set origin ..; set size ...;
set colorbox vertical user origin 0.864800,0.060000 size
0.064400,0.920000;
...
unset multiplot
can be replaced by
set colorbox vertical user origin 0.864800,0.060000 size
0.064400,0.920000;
set rmargin screen 0.864800-0.04
---
PM