[Matplotlib-users] Bug in twiny()

2013-06-04 Thread trendelkamp
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

Re: [Matplotlib-users] Bug in twiny()

2013-06-04 Thread Benjamin Root
On Tue, Jun 4, 2013 at 3:58 AM, trendelkamp wrote: > 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.figur