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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -