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

Appearance settings

Commit 706ee53

Browse filesBrowse files
authored
Merge pull request #17952 from meeseeksmachine/auto-backport-of-pr-17949-on-v3.3.0-doc
Backport PR #17949 on branch v3.3.0-doc (examples: fix a few deprecated subplot specifiers.)
2 parents 8994f1b + 53d38e0 commit 706ee53
Copy full SHA for 706ee53

6 files changed

+10
-10
lines changed

‎examples/axisartist/axis_direction_demo_step01.py

Copy file name to clipboardExpand all lines: examples/axisartist/axis_direction_demo_step01.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def setup_axes(fig, rect):
2525

2626
fig = plt.figure(figsize=(3, 2.5))
2727
fig.subplots_adjust(top=0.8)
28-
ax1 = setup_axes(fig, "111")
28+
ax1 = setup_axes(fig, 111)
2929

3030
ax1.axis["x"].set_axis_direction("left")
3131

‎examples/axisartist/axis_direction_demo_step02.py

Copy file name to clipboardExpand all lines: examples/axisartist/axis_direction_demo_step02.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def setup_axes(fig, rect):
2828
fig = plt.figure(figsize=(6, 2.5))
2929
fig.subplots_adjust(bottom=0.2, top=0.8)
3030

31-
ax1 = setup_axes(fig, "121")
31+
ax1 = setup_axes(fig, 121)
3232
ax1.axis["x"].set_ticklabel_direction("+")
3333
ax1.annotate("ticklabel direction=$+$", (0.5, 0), xycoords="axes fraction",
3434
xytext=(0, -10), textcoords="offset points",
3535
va="top", ha="center")
3636

37-
ax2 = setup_axes(fig, "122")
37+
ax2 = setup_axes(fig, 122)
3838
ax2.axis["x"].set_ticklabel_direction("-")
3939
ax2.annotate("ticklabel direction=$-$", (0.5, 0), xycoords="axes fraction",
4040
xytext=(0, -10), textcoords="offset points",

‎examples/axisartist/axis_direction_demo_step03.py

Copy file name to clipboardExpand all lines: examples/axisartist/axis_direction_demo_step03.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ def setup_axes(fig, rect):
2828
fig = plt.figure(figsize=(6, 2.5))
2929
fig.subplots_adjust(bottom=0.2, top=0.8)
3030

31-
ax1 = setup_axes(fig, "121")
31+
ax1 = setup_axes(fig, 121)
3232
ax1.axis["x"].label.set_text("Label")
3333
ax1.axis["x"].toggle(ticklabels=False)
3434
ax1.axis["x"].set_axislabel_direction("+")
3535
ax1.annotate("label direction=$+$", (0.5, 0), xycoords="axes fraction",
3636
xytext=(0, -10), textcoords="offset points",
3737
va="top", ha="center")
3838

39-
ax2 = setup_axes(fig, "122")
39+
ax2 = setup_axes(fig, 122)
4040
ax2.axis["x"].label.set_text("Label")
4141
ax2.axis["x"].toggle(ticklabels=False)
4242
ax2.axis["x"].set_axislabel_direction("-")

‎examples/axisartist/axis_direction_demo_step04.py

Copy file name to clipboardExpand all lines: examples/axisartist/axis_direction_demo_step04.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def setup_axes(fig, rect):
2929
fig = plt.figure(figsize=(6, 2.5))
3030
fig.subplots_adjust(bottom=0.2, top=0.8)
3131

32-
ax1 = setup_axes(fig, "121")
32+
ax1 = setup_axes(fig, 121)
3333
ax1.axis["x1"].label.set_text("rotation=0")
3434
ax1.axis["x1"].toggle(ticklabels=False)
3535

@@ -41,7 +41,7 @@ def setup_axes(fig, rect):
4141
xytext=(0, -10), textcoords="offset points",
4242
va="top", ha="center")
4343

44-
ax2 = setup_axes(fig, "122")
44+
ax2 = setup_axes(fig, 122)
4545

4646
ax2.axis["x1"].set_axislabel_direction("-")
4747
ax2.axis["x2"].set_axislabel_direction("-")

‎examples/axisartist/simple_axis_direction01.py

Copy file name to clipboardExpand all lines: examples/axisartist/simple_axis_direction01.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import mpl_toolkits.axisartist as axisartist
99

1010
fig = plt.figure(figsize=(4, 2.5))
11-
ax1 = fig.add_subplot(axisartist.Subplot(fig, "111"))
11+
ax1 = fig.add_subplot(axisartist.Subplot(fig, 111))
1212
fig.subplots_adjust(right=0.8)
1313

1414
ax1.axis["left"].major_ticklabels.set_axis_direction("top")

‎examples/axisartist/simple_axis_direction03.py

Copy file name to clipboardExpand all lines: examples/axisartist/simple_axis_direction03.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def setup_axes(fig, rect):
2222
fig = plt.figure(figsize=(5, 2))
2323
fig.subplots_adjust(wspace=0.4, bottom=0.3)
2424

25-
ax1 = setup_axes(fig, "121")
25+
ax1 = setup_axes(fig, 121)
2626
ax1.set_xlabel("X-label")
2727
ax1.set_ylabel("Y-label")
2828

2929
ax1.axis[:].invert_ticklabel_direction()
3030

31-
ax2 = setup_axes(fig, "122")
31+
ax2 = setup_axes(fig, 122)
3232
ax2.set_xlabel("X-label")
3333
ax2.set_ylabel("Y-label")
3434

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.