[matplotlib-devel] 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
_
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] axis('equal')
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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Patch for bug in lines.py
John et al,
Ran into this bug in lines.py: The Verbose class in __init__.py doesn't
have a method named report_error - just report.
Ted
===
--- lines.py(revision 2870)
+++ lines.py(working copy)
@@ -430,7 +430,7 @@
ACCEPTS: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' | ' ' | '' ]
"""
if linestyle not in self._lineStyles:
-verbose.report_error('Unrecognized line style
%s,%s'%(linestyle, type(linestyle)))
+verbose.report('Unrecognized line style %s,%s'%(linestyle,
type(linestyle)))
if linestyle in [' ','']:
linestyle = 'None'
self._linestyle = linestyle
@@ -448,7 +448,7 @@
"""
if marker not in self._markers:
-verbose.report_error('Unrecognized marker style %s, %s'%(
marker, type(marker)))
+verbose.report('Unrecognized marker style %s, %s'%( marker,
type(marker)))
if marker in [' ','']:
marker = 'None'
self._marker = marker
Ted Drain Jet Propulsion Laboratory [EMAIL PROTECTED]
-
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Patch for bug in lines.py
> "Ted" == Ted Drain <[EMAIL PROTECTED]> writes: Ted> John et al, Ran into this bug in lines.py: The Verbose class Ted> in __init__.py doesn't have a method named report_error - Ted> just report. Thanks Ted -- just committed the fix. JDH - 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 [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
