axis "square" does same as "equal" (and it should not)

John W. Eaton jwe at bevo.che.wisc.edu
Wed Oct 15 17:42:18 CDT 2008


On 15-Oct-2008, Dmitri A. Sergatskov wrote:

| It appears that
| 
| axis("square")
| 
| does the same as
| 
| axis("equal")
| 
| i.e. make a scale of x and y the same.
| 
| Instead it should make the total length to be the same
| (and adjust scale accordingly).
| 
| This is with both 3.0.2 and 3.1.51+ (Oct 15 snapshot).
| 
| E.g.:
| 
| plot(rand(10))
| axis("equal")
| 
| plot(rand(10))
| axis("square")

See this recent thread on the maintainers list:

  https://www-old.cae.wisc.edu/pipermail/octave-maintainers/2008-October/008925.html

There are two parts to fixing this problem.  The first is to have the
properties do the right thing when calling the axis function with
"equal" or "square" and I think also when the data changes.  The
second is to correctly use the properties to send the right magic to
gnuplot.  I'd welcome a patch.

Thanks,

jwe


More information about the Bug-octave mailing list