Behavior of subplot

Ben Abbott bpabbott at mac.com
Sat Feb 14 13:50:52 CST 2009


On Feb 14, 2009, at 1:20 PM, Michael D. Godfrey wrote:

>> I've attached a changeset which positions the axes in a compatible  
>> manner.
> This looks OK for me.
>
> The 2 remaining problems are:
> 1. The text overlap.  I will try using text("xxx",...)  instead of  
> xlabel()
>   and title().
>
> 2. The bounding box (as set in the first line written to gnuplot) is  
> as
>   it was (cuts off parts of the display in X11 and in display tools
>   that obey the bounding box size for display.)
>
> Thanks,
> Michael

The proper placement of ticklabels, axes labels, and the title for 2D  
plots can be implemented by having octave take over the responsibility  
for their placement using gnuplot (and its "set label ..." command).

Having listeners setup to handle units conversion for text objects  
(and other properties as well) will make the solution much simpler,  
and avoid unecessary work in the future when the units might differ  
from the current defaults (there are few instances where the gnuplot  
backend bothers with units conversion).

I've been experimenting with listeners for doing such things. My  
implementation is in for form of a couple of m-files. They are  
intended to be agnostic to the backend being used. However, I'm  
unfamiliar with how the fltk backend works, so am not confident my  
implementation would work. Even if it does, I'm uncertain that a m- 
file approach would be desirable.

If you (others?) like I can post my experimental functions to the list  
for comment. Even if they are not proper for inclusion in Octave, they  
can be useful for working on the task of correcting the positioning of  
the ticklabels, axes labels and title.

Ben


More information about the Bug-octave mailing list