### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- matplotlib.pyplot »

# matplotlib.pyplot.close

`matplotlib.pyplot.``close`(*args)

  Close a figure window.

  `close()` by itself closes the current figure

  `close(h)` where h is a `Figure` instance, closes that figure

  `close(num)` closes figure number num

  `close(name)` where name is a string, closes figure with that label

  `close('all')` closes all the figure windows

## Examples using `matplotlib.pyplot.close`

Pipong

Multiprocess

Multipage PDF

Subplots Demo

Tight Layout guide