```python fig, ax = plt.subplots() _ = ax.plot(x, y, 'k--') plt.close() fig ``` https://qiita.com/U25CE/items/c2714bf5903de84bf47b