setting axis limits weirdness

Ben Abbott bpabbott at mac.com
Mon Sep 22 20:47:54 CDT 2008


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

> On 22-Sep-2008, Ben Abbott wrote:
>
> | Is it possible to capture the commands going to gnuplot so that I  
> may
> | verify them, and conveniently submit a bug to gnuplot?
>
> Something like
>
>  somebrero (); drawnow ("aqua", "/dev/null", false, "debug.gp");
>
> should dump the commands for the sombrero plot to the file "debug.gp".
>
> jwe

oh-oh ... I ran the commands below from a file

	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')
	ylimits = get (gca, 'ylim')
	drawnow ("aqua", "/dev/null", false, "debug.gp")

and found the lines below in debug.gp

	set xrange [-2.000000000000000e-01:1.000000000000000e+00] noreverse;
	set yrange [-8.000000000000000e-01:8.000000000000000e-01] noreverse;

The entire debug.gp is attached.

As a quick check I tried

	export GNUTERM=x11
	gnuplot -persist debug.gp

I got the x11 window with the same result as the aqua variant produced  
from octave.

Further (I'm a bit slow) I tried 3.01 and 3.02, each produce the  
proper result with both aqua and x11. I verified they are each seeing  
the same gnuplot binary.

In any event, I must be in need of some sleep ... I just tested the  
x11 terminal again and am now getting the same result as with aqua ...  
perhaps when I tried that before, I'd not run that from 3.1.51 but  
from 3.0.1 or 3.0.2?

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.gp
Type: application/octet-stream
Size: 2252 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20080922/3eabbf17/attachment.obj 


More information about the Bug-octave mailing list