Skip to content

Commit e4dbbc6

Browse files
ivanovmdboom
authored andcommitted
addressing PR feedback
1 parent 9a32267 commit e4dbbc6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/users/whats_new.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ extensions rectangular instead of triangular.
141141
Examples now use subplots()
142142
---------------------------
143143
For the sake of brevity and clarity, most of the :ref:`examples
144-
<examples-index>` now use the newer :func:`~matplotlib.pyplot.subplots`
145-
, which creates a figure and one (or multiple) axes object(s) in one
146-
call. The old way involved a call to :func:`~matplotlib.pyplot.figure`,
147-
followed by one (or multiple) :func:`~matplotlib.pyplot.subplot` calls.
144+
<examples-index>` now use the newer :func:`~matplotlib.pyplot.subplots`, which
145+
creates a figure and one (or multiple) axes object(s) in one call. The old way
146+
involved a call to :func:`~matplotlib.pyplot.figure`, followed by one (or
147+
multiple) :func:`~matplotlib.pyplot.subplot` calls.
148148

149149
Calling subplot() without arguments
150150
-----------------------------------

examples/animation/old_animation/animation_blit_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
fig, ax = plt.subplots()
29-
canvas = ax.figure.canvas
29+
canvas = fig.canvas
3030

3131

3232
p.subplots_adjust(left=0.3, bottom=0.3) # check for flipy bugs

examples/axes_grid/inset_locator_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def add_sizebar(ax, size):
1414
ax.add_artist(asb)
1515

1616

17-
fig, (ax,ax2) = plt.subplots(1,2, figsize=[5.5, 3])
17+
fig, (ax, ax2) = plt.subplots(1, 2, figsize=[5.5, 3])
1818

1919
# first subplot
2020
ax.set_aspect(1.)

0 commit comments

Comments
 (0)