You can use savefig()
to export to an image file:
plt.savefig('filename.png')
In addition, you can specify the dpi
argument to some scalar value, for example:
plt.savefig('filename.png', dpi=300)
More Related Contents:
- Annotate bars with values on Pandas bar plots
- Is there a way to make a discontinuous axis in Matplotlib?
- How to change the font size on a matplotlib plot
- What’s the fastest way of checking if a point is inside a polygon in python
- plot different color for different categorical levels using matplotlib
- Label python data points on plot
- Expand the line with specified width in data unit
- How do I plot only a table in Matplotlib?
- Axes class – set explicitly size (width/height) of axes in given units
- How to get pixel coordinates for Matplotlib-generated scatterplot?
- Get matplotlib color cycle state
- Annotate Time Series plot in Matplotlib
- Changing plot scale by a factor in matplotlib
- How to set default colormap in Matplotlib
- Matplotlib python show() returns immediately
- How do I set the figure title and axes labels font size?
- How do I equalize the scales of the x-axis and y-axis?
- How to set ticks on Fixed Position , matplotlib
- How can I use seaborn without changing the matplotlib defaults?
- (python) plot 3d surface with colormap as 4th dimension, function of x,y,z
- pandas bar plot combined with line plot shows the time axis beginning at 1970
- making matplotlib scatter plots from dataframes in Python’s pandas
- How to load .ttf file in matplotlib using mpl.rcParams?
- Matplotlib FuncAnimation only draws one frame
- Set line colors according to colormap
- Continuous colormap fill between two lines
- When to use cla(), clf() or close() for clearing a plot
- Savefig outputs blank image
- plot different color for different categorical levels
- Format axis offset-values to whole numbers or specific number