FITS ファイルからいくつかのデータをプロットしようとしていますが、プロットの軸の特定の領域に焦点を当てる方法を誰かが知っているかどうか知りたいですか? コード例を次に示します。
import pyfits
from matplotlib import pyplot as plt
from matplotlib import pylab
from pylab import *
#Assuming I have my data in the current directory
a = pyfits.getdata('fits1.fits')
x = a['data1'] # Lets assume data1 is the column: [0, 1, 1.3, 1.5, 2, 4, 8]
y = a['data2'] # And data2 is the column: [0, 0.5, 1, 1.5, 2, 2.5, 3]
plt.plot(x,y)
[1.3 to 4]
x 軸の領域のみをプロットするにはどうすればよいですか?