import matplotlib.pyplot as plt
时间: 2023-10-25 08:17:10 浏览: 127
【matplotlib绘图】别再用pyplot (plt) 画图了!因为他跟你一样:没 有 对 象!
As an AI language model, I am not able to display plots or graphs. However, I can help you generate a plot using the Matplotlib library in Python. Here is some sample code to generate a simple line plot:
```
import matplotlib.pyplot as plt
# Sample data
x = [1, 2, 3, 4, 5]
y = [10, 8, 6, 4, 2]
# Plot the data
plt.plot(x, y)
# Add labels and title
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Sample Line Plot')
# Show the plot
plt.show()
```
This will generate a simple line plot with x-axis values from 1 to 5 and y-axis values from 10 to 2, with X-axis, Y-axis and Title labels. You can modify the data and labels according to your requirements.
阅读全文