setting axis limits weirdness

Ben Abbott bpabbott at mac.com
Mon Sep 22 19:47:25 CDT 2008


On Sep 22, 2008, at 8:39 PM, John W. Eaton wrote:

> On 22-Sep-2008, Ben Abbott wrote:
>
> | Bug report for Octave 3.1.51+ configured for i386-apple-darwin
> |
> | Description:
> | -----------
> |
> |    * Running the default branch on Mac OSX 10.5.5 with  
> GNUTERM="aqua",
> | I've discovered
> | 	a strange problem. In some special cases I'm unable to set the axis
> | using either
> | 	the 'axis' command, 'xlim'/'ylim' commands, or 'set (gca, ...)'.
> | However, if I attempt
> | 	to set the axis limits a second time, using any of these options,  
> it
> | works. In the
> | 	event I choose to use the x11 terminal, then everything works as it
> | should.
> | 	
> | 	The common denominator appears to be set(gca,'xlim',xlimits) and/or
> | 	set(gca,'ylim',ylimits).
> |
> | Repeat-By:
> | ---------
> |
> | 	clf
> | 	clear all
> | 	x = [-0.1, 1.0];
> | 	y = [-0.7, 0.7];
> | 	h = plot (x, y);
> | 	set (gca, 'xlim', x);
> | 	set (gca, 'ylim', y);
> | 	xlimits = get (gca, 'xlim')
> | 	xlimits =
> |
> |    	-0.20000   1.00000
> |
> | 	ylimits = get (gca, 'ylim')
> | 	ylimits =
> |
> |    	-0.80000   0.80000
> |
> | Fix:
> | ---
> |
> |    * Thus far, I've not found the root of the problem ... I'm a c++
> | lacky ;-)
>
> Is gnuplot getting the correct commands?  It would seem yes, if it is
> working with the X11 terminal.  I don't think Octave is sending
> different commands for the aqua terminal vs. the X11 terminal, so I
> suspect that the problem is in gnuplot.
>
> jwe

After fgreping all the sources for mention of "aqua" I must agree.

It is either gnuplot or aqua term.

Is it possible to capture the commands going to gnuplot so that I may  
verify them, and conveniently submit a bug to gnuplot?

Ben



More information about the Bug-octave mailing list