plt.title('Scatter plot')
时间: 2023-09-30 07:11:46 浏览: 62
plot_scatter.m
As an AI language model, I can generate the code for creating a scatter plot, but I cannot display the plot or its title as I am a text-based program. Here is the code for creating a scatter plot in Python using Matplotlib library:
```python
import matplotlib.pyplot as plt
# x and y data
x = [1, 2, 3, 4, 5]
y = [2, 4, 5, 7, 8]
# create scatter plot
plt.scatter(x, y)
# set title
plt.title('Scatter plot')
# show plot
plt.show()
```
You can copy and paste this code into a Python environment (e.g. Jupyter Notebook, Google Colab) to create the scatter plot and display its title.
阅读全文