import matplotlib.pyplot as plt # Use plt.subplots to create fig and ax ____ # Create variable seventies with data fro

动态 未结 0 116
小小草
小小草 LV1 2023年9月23日 23:40 发表
下面是完整代码: ```python import matplotlib.pyplot as plt # Use plt.subplots to create fig and ax fig, ax = plt.subplots() # Create variable seventies with data from "1970-01-01" to "1979-12-31" seventies = climate_change["1970-01-01":"1979-12-31"] # Add the time-series for "co2" data from seventies to the plot ax.plot(seventies.index, seventies["co2"]) # Show the figure plt.show() ```
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复