import matplotlib.pyplot as plt # Initalize a Figure and Axes ____ # Plot the CO2 variable in blue ax.plot(____, ____,

动态 未结 0 114
小小草
小小草 LV1 2023年9月23日 23:40 发表
下面是完整代码: ```python import matplotlib.pyplot as plt # Initalize a Figure and Axes fig, ax = plt.subplots() # Plot the CO2 variable in blue ax.plot(climate_change.index, climate_change["co2"], color="blue") # Create a twin Axes that shares the x-axis ax2 = ax.twinx() # Plot the relative temperature in red ax2.plot(climate_change.index, climate_change["relative_temp"], color="red") plt.show() ```
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复