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
Post a Comment