|
From: trendelkamp <tre...@ze...> - 2013-06-04 07:58:21
|
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 |