第14158题 单选题
给定Python matplotlib代码的输出结果是什么?
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y1 = np.sin(x)
y2 = np.cos(x)
plt.subplot(2, 1, 1)
plt.plot(x, y1)
plt.xlabel('x轴')
plt.ylabel('y1轴')
plt.subplot(2, 1, 2)
plt.scatter(x, y2, color='r')
plt.xlabel('x轴')
plt.ylabel('y2轴')
plt.tight_layout()
plt.show()
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析