Python spyder中数据图形上的四位小数

Python spyder中数据图形上的四位小数,python,dataset,decimal,spyder,Python,Dataset,Decimal,Spyder,我绘制数据集的图形,我需要知道x轴的值有四个十进制数字,但图形只显示两个十进制数字。 如何获得x轴上有四位数字的值 如果需要,这是python代码: import numpy as np import matplotlib.pyplot as plt #my data has 3 columns that I need neither the first column,nor the first three rows: x , y , z = np.loadtxt("C:\\User

我绘制数据集的图形,我需要知道x轴的值有四个十进制数字,但图形只显示两个十进制数字。 如何获得x轴上有四位数字的值

如果需要,这是python代码:

import numpy as np
import matplotlib.pyplot as plt

#my data has 3 columns that I need neither the first column,nor the first three rows:
x , y , z = np.loadtxt("C:\\Users\\mobin\\Desktop\\KIC006922244.tbl", unpack=True , skiprows=3) plt.plot(y,z)
plt.show()