When to use cla(), clf() or close() for clearing a plot

Matplotlib offers these functions:

cla()   # Clear axis
clf()   # Clear figure
close() # Close a figure window

When should I use each function and what exactly does it do?

← Назад к списку