some plotting bugs

Jonathan Stickel jjstickel at vcn.com
Thu Jul 9 10:25:24 CDT 2009


Ben Abbott wrote:
> 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.
> 

Yes, I am using gnuplot; should have mentioned that.  As a workaround 
for the legend font size, I found that it still works to set it while 
printing with 'F:SIZE'.  I'm not sure why setting the location outside 
no longer works, but all the other location strings are fine; I recall 
it working in 3.0.x.


> 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.
> 

Depending on the plot and other print options, sometimes the '-tight' 
option works, and sometimes it doesn't.


> 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