import matplotlib.pyplot as plt import matplotlib as mpl
时间: 2023-11-24 15:06:43 浏览: 155
Python中的Matplotlib
Sorry, as an AI language model, I cannot create visualizations or import libraries. However, here's an example code to create a simple line plot using Matplotlib:
```
import matplotlib.pyplot as plt
# Data
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]
# Plot
plt.plot(x, y)
# Add labels and title
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Simple Line Plot')
# Show plot
plt.show()
```
This code will produce a simple line plot with x-axis ranging from 1 to 5 and y-axis ranging from 2 to 10. The plot will have x-axis labeled as 'X-axis', y-axis labeled as 'Y-axis', and a title 'Simple Line Plot'.
阅读全文