File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77help you get started with Matplotlib.
88"""
99
10- # sphinx_gallery_thumbnail_number = 4
10+ # sphinx_gallery_thumbnail_number = 3
1111import matplotlib .pyplot as plt
1212import numpy as np
1313
6666# number of :class:`~matplotlib.axes.Axes`, but will typically have
6767# at least one.
6868#
69- # The easiest way to create a new figure is with pyplot:
70-
71- fig = plt .figure () # an empty figure with no Axes
72- fig , ax = plt .subplots () # a figure with a single Axes
73- fig , axs = plt .subplots (2 , 2 ) # a figure with a 2x2 grid of Axes
74-
69+ # The easiest way to create a new figure is with pyplot::
70+ #
71+ # fig = plt.figure() # an empty figure with no Axes
72+ # fig, ax = plt.subplots() # a figure with a single Axes
73+ # fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes
74+ #
7575# It's convenient to create the axes together with the figure, but you can
7676# also add axes later on, allowing for more complex axes layouts.
77-
78- ###############################################################################
77+ #
7978# :class:`~matplotlib.axes.Axes`
8079# ------------------------------
8180#
You can’t perform that action at this time.
0 commit comments