title fush left

Ben Abbott bpabbott at mac.com
Wed Jan 21 10:38:18 CST 2009


On Wednesday, January 21, 2009, at 10:40AM, "Francesco Potortì" <Potorti at isti.cnr.it> wrote:
>>| When making subplots in Octave 3.1.51, the titles are flush left rather
>>| than centered.
>>
>>They appear to me to be centered with the current sources.
>
>Allrigt, they appear centered (they did not appear to me because of an
>error of mine).  However, what I meant is that I observe this:
>
>octave> version
>ans = 3.1.51
>octave> close all
>octave> subplot(1,2,1);plot(1:2)
>octave> subplot(1,2,2);plot(1:2)
>octave> title("a")
>octave> get(get(gca()).title).horizontalalignment
>ans = left
>
>Is this normal?

There are two problems.

(1) The alignment property for the title/xlabel/ylabel is not being set properly. 

(2) Octave's gnuplot backend does not respect the alignment property the title/xlabel/ylabel. In addition, gnuplot doesn't support alignment, but does allow for offsetting these strings.

As the layout of the various gnuplot terminals differs quite a bit, I had been thinking about handling the axis labels, title, and tick marks in Octave. However, this can't be done properly until the the property listeners are in place an working. 

Regarding the property listeners, I think the ticklabels should be taken care of first. 

http://www.nabble.com/%27paperpositionmode%27-change-to-rid-gnuplot_set_term%3A-size-is-zero-tt21262591.html#a21262591

I'd hoped to do that myself, but haven't had the time to pick up the needed c++ skill.

Ben



More information about the Bug-octave mailing list