some plotting bugs

Ben Abbott bpabbott at mac.com
Thu Jul 9 09:55:48 CDT 2009


On Thursday, July 09, 2009, at 10:23AM, "Jonathan Stickel" <jjstickel at vcn.com> wrote:
>I am noticing some bugs in while trying to make a simple plot in 
>Octave-3.2.0:
>
>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
>
>Thanks,
>Jonathan
>

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.

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.

I'll fix this as soon as I'm able ... if someone doesn't get to it before me :-)

Ben





More information about the Bug-octave mailing list