some plotting bugs
Petr Mikulik
mikulik at physics.muni.cz
Thu Jul 9 11:03:45 CDT 2009
> >1. 'legend ("location","outside")' does not put the legend outside
> >
> >2. 'set (findall (gcf, "-property", "fontsize"), "fontsize", 20)' does
> >not change the font of the legend
> >
> >3. 'print -deps -tight file.eps' does not make the bounding box tight
> >
> >The following code demonstrates these bugs:
> >
> > plot(1:10,1:10)
> > xlabel("x")
> > ylabel("y")
> > legend("test")
> > legend ("location","outside")
> > set (findall (gcf, "-property", "fontsize"), "fontsize", 20)
> > print -deps -tight test32.eps
>
> Regarding the legend bugs ... when using the gnuplot backend the legend is
> actually a gnuplot key box, and does not presently have its own handle or
> properties. To fix these bugs, the legend needs to be reimplemented as an
> axis object.
Why don't you use those many of "set key left|right|bottom|outside..."
options?
> Regarding the "-tight" option, the problem is likely do my attempt to
> simplify the implementation. I'd assumed the new BBOX string would be
> shorted than the original. When it isn't the file is left unchanged.
What about calling ghostscript to calculate the bounding box precisely if
the "-tight" option is used?
---
PM
More information about the Bug-octave
mailing list