Perhaps just clear the axis, for example:
fig= plt.figure()
plt.plot(range(10))
fig.savefig("save_file_name.pdf")
plt.close()
will not plot the output in inline
mode. I can’t work out if is really clearing the data though.
More Related Contents:
- Matplotlib and Ipython-notebook: Displaying exactly the figure that will be saved
- Inline animations in Jupyter
- How to make IPython notebook matplotlib plot inline
- Purpose of “%matplotlib inline”
- Pandas – Plotting a stacked Bar Chart
- How to overlay plots from different cells?
- How to dynamically update a plot in a loop in IPython notebook (within one cell)
- How can I open the interactive matplotlib window in IPython notebook?
- What is the currently correct way to dynamically update plots in Jupyter/iPython?
- How to hide in IPython notebook
- Converting to (not from) ipython Notebook format
- %matplotlib notebook showing a blank histogram
- When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error?
- Automatically run %matplotlib inline in IPython Notebook
- How to set the matplotlib figure default size in ipython notebook?
- Using %matplotlib notebook after %matplotlib inline in Jupyter Notebook doesn’t work
- canvas.mpl_connect in jupyter notebook
- Jupyter Notebook: interactive plot with widgets
- Stacked Bar Chart with Centered Labels
- No module named when using PyInstaller
- How to change the tables’ fontsize with matplotlib.pyplot
- figure of imshow() is too small
- How can I place a table on a plot in Matplotlib?
- How to show two figures using matplotlib?
- How to plot different groups of data from a dataframe into a single figure
- Change tick frequency on X (time, not number) frequency
- Specifying the order of layers
- automatically position text box in plot
- How to plot a high resolution graph
- Plotly chart not showing in Jupyter notebook