Subplots, axes and figures#

Multiple subplots

Multiple subplots

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots

Axes Demo

Axes Demo

GridSpec with variable sizes and spacing

GridSpec with variable sizes and spacing

Gridspec for multi-column/row subplot layouts

Gridspec for multi-column/row subplot layouts

Nested Gridspecs

Nested Gridspecs

Combine two subplots using subplots and GridSpec

Combine two subplots using subplots and GridSpec

subplot2grid

subplot2grid

Resize Axes with constrained layout

Resize Axes with constrained layout

Resize Axes with tight layout

Resize Axes with tight layout

Subplots spacings and margins

Subplots spacings and margins

Programmatically control subplot adjustment

Programmatically control subplot adjustment

Adjacent subplots

Adjacent subplots

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges

Axes box aspect

Axes box aspect

Equal axis aspect ratio

Equal axis aspect ratio

Manage multiple figures in pyplot

Manage multiple figures in pyplot

Figure size in different units

Figure size in different units

Figure subfigures

Figure subfigures

Custom Figure subclasses

Custom Figure subclasses

Shared axis

Shared axis

Inverted axis

Inverted axis

Plots with different scales

Plots with different scales

Different scales on the same Axes

Different scales on the same Axes

Multiple y-axis with Spines

Multiple y-axis with Spines

Twin Axes with delta_zorder

Twin Axes with delta_zorder

Secondary Axis

Secondary Axis

Align labels and titles

Align labels and titles

Axis label position

Axis label position

Axes properties

Axes properties

Figure labels: suptitle, supxlabel, supylabel

Figure labels: suptitle, supxlabel, supylabel

Axes zoom effect

Axes zoom effect

Zoom region inset Axes

Zoom region inset Axes

Broken axis

Broken axis

Geographic Projections

Geographic Projections

Draw regions that span an Axes

Draw regions that span an Axes