Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb34b6b7

Browse files
committed
addressing PR feedback
1 parentbf8d1bc commitb34b6b7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

‎doc/users/whats_new.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ extensions rectangular instead of triangular.
3636
Examples now use subplots()
3737
---------------------------
3838
For the sake of brevity and clarity, most of the:ref:`examples
39-
<examples-index>` now use the newer:func:`~matplotlib.pyplot.subplots`
40-
, whichcreates a figure and one (or multiple) axes object(s) in one
41-
call. The old wayinvolved a call to:func:`~matplotlib.pyplot.figure`,
42-
followed by one (ormultiple):func:`~matplotlib.pyplot.subplot` calls.
39+
<examples-index>` now use the newer:func:`~matplotlib.pyplot.subplots`, which
40+
creates a figure and one (or multiple) axes object(s) in one call. The old way
41+
involved a call to:func:`~matplotlib.pyplot.figure`, followed by one (or
42+
multiple):func:`~matplotlib.pyplot.subplot` calls.
4343

4444
Calling subplot() without arguments
4545
-----------------------------------

‎examples/animation/old_animation/animation_blit_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BlitQT(QObject):
2424
def__init__(self):
2525
QObject.__init__(self,None,"app")
2626

27-
self.ax=plt.axes()
27+
self.ax=plt.subplot()
2828
self.canvas=self.ax.figure.canvas
2929
self.cnt=0
3030

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp