Download python - How to set the axis limits in Matplotlib? - Stack Overflow book pdf free download link or read online here in PDF. Read online python - How to set the axis limits in Matplotlib? - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
To add to @Hima's answer, if you want to modify a current x or y limit you could use the following.. import numpy as np # you probably alredy do this so no extra overhead fig, axes = plt.subplot() axes.plot(data[:,0], data[:,1]) xlim = axes.get_xlim() # example of how to zoomout by a factor of 0.1 factor = 0.1 new_xlim = (xlim[0] + xlim[1])/2 + np.array((-0.5, 0.5)) * (xlim[1] - xlim[0]) * (1 ...
Read : python - How to set the axis limits in Matplotlib? - Stack Overflow pdf book online Select one of servers for direct link: |
---|