(单选题)有如下代码片段
import numpy as np
import matplotlib.pyplot as plt
< Compute the x and y coordinates for points on sine and cosine curves
x = np.arange(0, 3 * np.pi, 0.1)
y_sin = np.sin(x)
y_cos = np.cos(x)
< Plot the points using matplotlib
plt.plot(x, y_sin)
plt.plot(x, y_cos)
plt.show()
图中最上方的标题,是下列哪个选项中的代码生成的?
选项:
A:plt.xlabel('x
B:plt.ylabel('y
C:plt.title('Sine
D:plt.legend('Sine',
发布时间:2024-04-19 21:39:06