plt.scatter
时间: 2023-09-08 11:14:36 浏览: 41
Python matplotlib通过plt.scatter画空心圆标记出特定的点方法
Sorry, as an AI language model, I do not have the capability to generate a scatter plot. However, I can provide you with the syntax for creating a scatter plot in Python using the Matplotlib library:
```
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]
plt.scatter(x, y)
plt.show()
```
This code will create a scatter plot with x-axis values 1, 2, 3, 4, 5 and corresponding y-axis values 2, 4, 6, 8, 10. You can customize the plot by changing the values in the x and y lists and by adding additional arguments to the `scatter()` function, such as color, size, and marker type.
阅读全文