axis('equal')

Hi,

I have submitted a bug report
1591708 pylab.axis('equal') scales wrong axis
In the attached script axis('eqaul') shrink x instead of expanding y with the result that no
datapoints are seen.

I have also submitted a simple patch
1591716 Expand y if data don't fit into x_lim
It would be great if someone could take look.
It fixes the test case, but I'm not sure if it is the right way to do it.

regards
Ulf Larsson

axis_equal.py (645 Bytes)

···

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

Ulf,

Thanks for the report. I will check it out and either apply your patch or some other fix.

Your message along with several others that were sent days ago popped up just now in my inbox. It seems like there are some strange delays in the sourceforge mailing list system.

Eric

Ulf Larsson wrote:

···

Hi,

I have submitted a bug report
1591708 pylab.axis('equal') scales wrong axis
In the attached script axis('eqaul') shrink x instead of expanding y with the result that no
datapoints are seen.

I have also submitted a simple patch
1591716 Expand y if data don't fit into x_lim
It would be great if someone could take look.
It fixes the test case, but I'm not sure if it is the right way to do it.

regards
Ulf Larsson

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

------------------------------------------------------------------------

import pylab

x_data = [6.8538697159586812, 6.8906683229002512, 6.8495854795623092, 6.887510586105912, 6.8464139392062178, 6.8830008172676411, 6.8424628962958414, 6.8810049485591289]

y_data = [5.6629566741871935, 5.6584471730561399, 5.6629080444545945, 5.6581494452612304, 5.6630169070389558, 5.659139916088753, 5.6629980013160068, 5.6581262160214072]

pylab.figure()
pylab.plot(x_data, y_data, '+')
pylab.grid(1)
pylab.axis('equal')
pylab.show()

------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options