python - How to turn off autoscaling in matplotlib.pyplot -


i using matplotlib.pyplot in python plot data. problem image generates seems autoscaled. how can turn off when plot @ (0,0) placed fixed in center?

you want autoscale function:

from matplotlib import pyplot plt  # set limits of plot plt.xlim(-1, 1) plt.ylim(-1, 1)  # don't mess limits! plt.autoscale(false)  # plot want plt.plot([0, 1]) 

Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -