Hi,

there is a minor bug in the axes.twiny() function.  Apparently the 
parent axes xlim() values are not copied.
Example:

from numpy import *
import matplotlib.pyplot as plt

x=linspace(-2.0, 2.0, 100)
y=x**2

fig=plt.figure()
ax1=fig.add_subplot(111)
ax1.plot(x, y)

ax2=ax1.twiny()
ax1.get_xlim() --> (-2.0, 2.0)
ax2.get_xlim() --> (0.0, 1.0)

It is simple to fix by hand, but I do not think that this is the desired 
behavior.

Thanks,

Benjamin

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to