Python matplotlib不显示每小时时间戳数据

Python matplotlib不显示每小时时间戳数据,python,matplotlib,jupyter-notebook,Python,Matplotlib,Jupyter Notebook,我使用下面的,它的工作,但只有当我提供广泛的日期范围约10天 # Import yfinance import yfinance as yf import matplotlib.pyplot as plt # Get the data for the stock Apple by specifying the stock ticker, start date, and end date data = yf.download('AAPL','2019-01-01','2019-01-10', i

我使用下面的,它的工作,但只有当我提供广泛的日期范围约10天

# Import yfinance
import yfinance as yf
import matplotlib.pyplot as plt

# Get the data for the stock Apple by specifying the stock ticker, start date, and end date
data = yf.download('AAPL','2019-01-01','2019-01-10', interval='1h')

data.Close.plot(figsize=(10, 5))
plt.show()
我想看看缩放后的图表,显示每小时的起伏。结果如下


问题是没有记录日期的小时时间戳。因此,每个日期的所有小时数据都被绘制出来,从而产生峰值。但我将时间间隔设为1小时,但它不会返回小时数据。只有日期。你可以打印出来看。网上提供的文档不多。开发人员可能没有考虑过这个问题。我建议您研究其他python库来实现这一点。啊,我明白了,我过去的时间太长了。我通过了新的考试,考试成功了。你是对的。所有数据点的数据都有相同的timestame,没有日期。谢谢。你能帮我做这个吗?问题是没有为日期记录每小时的时间戳。因此,每个日期的所有小时数据都被绘制出来,从而产生峰值。但我将时间间隔设为1小时,但它不会返回小时数据。只有日期。你可以打印出来看。网上提供的文档不多。开发人员可能没有考虑过这个问题。我建议您研究其他python库来实现这一点。啊,我明白了,我过去的时间太长了。我通过了新的考试,考试成功了。你是对的。所有数据点的数据都有相同的timestame,没有日期。谢谢。你能帮我做这个吗?