octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: legend in doc figures


From: Pantxo
Subject: Re: legend in doc figures
Date: Sat, 11 Jun 2016 00:19:06 -0700 (PDT)

Dmitri A. Sergatskov wrote
> Has anyone looked at the generated figures in octave doc?
> Text does not fit the bounding box and fonts look too large (spacing
> between lines looks too small). See attached as an example.
> I think the issue is with set_print_size() function that resizes the plot
> but does not change the fonts.
> 
> I understand this might be not the most pressing issue...
> 
> Dmitri.
> --
> 
> 
> interpft.png (37K)
> <http://octave.1599824.n4.nabble.com/attachment/4677640/0/interpft.png>

Hi,

Yes, this is due to the fact that we don't use the default size for figures
in the manual, hence they are resized before printing. As the legend
function is currently unable to handle resizing the text labels don't fit
into the box. 

See https://savannah.gnu.org/bugs/?39697

A simple workaround would be to use something like:

  set (0, "defaultfigureposition", [0 0 printout_width_in_points
printout_height_in_points]) 

before creating the figure. Then it wouldn't have to be resized before
printing and the legend would be created with the right size.





--
View this message in context: 
http://octave.1599824.n4.nabble.com/legend-in-doc-figures-tp4677640p4677641.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]