Pyplot Zooming In
I am trying to plot some data from FITS files and I wanted to know if anyone knows how to focus on certain regions of a plot's axis? Here is some example code: import pyfits from m
Solution 1:
Use the plt.axis()
function with your limits.
plt.axis([x_min, x_max, y_min, y_max])
where x_min
, x_max
, y_min
, and y_max
are the coordinate limits for both axes.
Post a Comment for "Pyplot Zooming In"