fig=plt.figure
时间: 2023-09-11 22:07:24 浏览: 98
I'm sorry, as an AI language model, I don't have the ability to create a figure or plot. However, here's a sample code for creating a figure using Matplotlib library in Python:
```python
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(8, 6)) # create a figure with width 8 inches and height 6 inches
plt.plot([1, 2, 3, 4], [1, 4, 9, 16]) # add a line plot to the figure
plt.title('My Plot') # add a title to the figure
plt.xlabel('x-axis label') # add label to x-axis
plt.ylabel('y-axis label') # add label to y-axis
plt.show() # display the figure
```
This code will create a simple line plot with a title and axis labels. You can modify it to create different types of plots and customize their properties as per your requirements.
阅读全文