figure
tells you the call signature:
from matplotlib.pyplot import figure
figure(figsize=(8, 6), dpi=80)
figure(figsize=(1,1))
would create an inch-by-inch image, which would be 80-by-80 pixels unless you also give a different dpi argument.
Related Contents:
- How do I change the size of figures drawn with Matplotlib?
- Plotting time in Python with Matplotlib
- matplotlib savefig() plots different from show()
- Why do many examples use `fig, ax = plt.subplots()` in Matplotlib/pyplot/python
- matplotlib advanced bar plot
- How to plot multiple functions on the same figure
- Move X-Axis label downwards, but not X-Axis Ticks in matplotlib
- Save plot to image file instead of displaying it using Matplotlib
- Generating a PNG with matplotlib when DISPLAY is undefined
- Matplotlib scatterplot; color as a function of a third variable
- Create own colormap using matplotlib and plot color scale
- How to find the exact intersection of a curve (as np.array) with y==0?
- Is there a way to detach matplotlib plots so that the computation can continue?
- Break // in x axis of matplotlib [duplicate]
- Plot two histograms on single chart with matplotlib
- Remove xticks in a matplotlib plot?
- Matplotlib: Annotating a 3D scatter plot
- Matplotlib – label each bin
- Format y axis as percent
- matplotlib scatterplot with legend
- Colorize Voronoi Diagram
- How to set xlim and ylim for a subplot in matplotlib [duplicate]
- Matplotlib: Plotting numerous disconnected line segments with different colors
- How can I rotate xticklabels in matplotlib so that the spacing between each xticklabel is equal?
- How do I align gridlines for two y-axis scales using Matplotlib?
- Paging/scrolling through set of 2D heat maps in matplotlib
- How to set xlim and ylim for a subplot [duplicate]
- stacked bar plot using matplotlib
- how to use ‘extent’ in matplotlib.pyplot.imshow
- Axes class – set explicitly size (width/height) of axes in given units
- Changing the tick frequency on the x or y axis
- How to change spacing between ticks
- How to make several plots on a single page using matplotlib?
- How to hide in IPython notebook
- Matplotlib plot with variable line width
- How to export plots from matplotlib with transparent background?
- pandas 0.21.0 Timestamp compatibility issue with matplotlib
- Save plot to image file instead of displaying it
- Plotting the data with scrollable x (time/horizontal) axis on Linux
- How can I make the xtick labels of a plot be simple drawings using matplotlib?
- How can I connect scatter points in a 3D space?
- Legend only shows one label when plotting with pandas
- ploting filled polygons in python
- Many plots in less time – python
- How to plot two columns of a pandas data frame using points
- Center origin in matplotlib
- Adding legend based on existing color series
- Matplotlib Legends not working
- Python scatter plot. Size and style of the marker
- When to use cla(), clf() or close() for clearing a plot