Behavior of subplot

Ben Abbott bpabbott at mac.com
Sat Feb 14 23:21:00 CST 2009


On Feb 15, 2009, at 12:04 AM, Michael D. Godfrey wrote:

>> After thinking about if further, the changes due to the presence of  
>> x/ylabel and the title are not relevant to the subplot function.  
>> Once the proper listeners are in place the axes position/ 
>> outerposition will be modified as the axes labels/title are added.
>>
>> Thus, the only change needed is to respect the behavior of subplot  
>> when the default axes units are changed.
>>
>> I've made some appropriate changes and attached a new changeset.
> I just tried this latest version.  I have attached before and after  
> PostScript of one of my
> uses of subplot:
>
> 1. tt2.ps   is before changeset
>   tt4.ps   is after.
>
> My comments are:
>
> 1. The Bounding Box problem is fixed.

This is the only part I expect to be improved until the listeners are  
in place and Octave takes responsibility for the placement of the axes  
labels and tick labels.

> 2. The title and xlabel issues are a bit worse. And, the
>    difference between what is shown on the (X11) screen and
>    what goes into the PS is greater.  The overlap of the xlabel
>    and titles is a little worse on the screen, but the overlap  
> completely
>    in the PostScript.

Looking at the plots it appears to me that this is consistent with my  
prior comment.

> 3.  Making the horizontal spacing of the plots closer, as you have  
> done,
>    is probably a good idea (and may be "officially" correct) but it  
> has
>    had the effect that my subplot titles overlap.  I can fix this,  
> of course.

Once the appropriate listeners are in place, and titles and xlabels  
are included in subplots this problem should be eliminated.

> So, I would say that if you can improve the xlabel/title overlap and  
> make
> the screen layout and PostScript layout match better  (PostScript  
> more like
> the screen), this will be good to submit as far as I know.

Regarding the x11 vs PS layout, I've noticed substantial differences  
between the various gnuplot terminals (PDF and Aqua look very bad to  
me).  I'm hopeful that when Octave controls the placement of the axes  
labels and title this problem will be eliminated/reduced.

Ben



More information about the Bug-octave mailing list