By default jupyter notebook inline plots are displayed as png, e.g.:
import matplotlib.pyplot as plt %matplotlib inline plt.plot()
How can
Use set_matplotlib_formats('svg').
import matplotlib.pyplot as plt from IPython.display import set_matplotlib_formats %matplotlib inline set_matplotlib_formats('svg') plt.plot()
This is also documented in a document of %matplotlib magic.
Note: InlineBackend.figure_format is deprecated.
InlineBackend.figure_format