Re: [Matplotlib-users] Setting axes to a constant scale

2009-03-03 Thread Matthias Michler
Hi Blake, the following addition should do what you want: self.ax = self.fig.add_subplot(1,1,1, autoscale_on=False, xlim=(0, 100), ylim=(0, 100)) or by hand after creation of the axes self.ax.set_autoscale_on(False) xlim(...)# or self.ax.set_xlim(...) ylim(...) That is you

[Matplotlib-users] Setting axes to a constant scale

2009-03-03 Thread Blake Friedman
Hi, I have started to use pyplot to create graphs, saving the images and generating an animation from the collection. Pyplot autoscale the axes, which isn't suitable for an animation. At the moment I reset them (for every frame) using the xlim / ylim functions: import matplotlib.pyplot as plt