Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/axisartist/axis_direction_demo_step01.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup_axes(fig, rect):

fig = plt.figure(figsize=(3, 2.5))
fig.subplots_adjust(top=0.8)
ax1 = setup_axes(fig, "111")
ax1 = setup_axes(fig, 111)

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

Expand Down
4 changes: 2 additions & 2 deletions examples/axisartist/axis_direction_demo_step02.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def setup_axes(fig, rect):
fig = plt.figure(figsize=(6, 2.5))
fig.subplots_adjust(bottom=0.2, top=0.8)

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

ax2 = setup_axes(fig, "122")
ax2 = setup_axes(fig, 122)
ax2.axis["x"].set_ticklabel_direction("-")
ax2.annotate("ticklabel direction=$-$", (0.5, 0), xycoords="axes fraction",
xytext=(0, -10), textcoords="offset points",
Expand Down
4 changes: 2 additions & 2 deletions examples/axisartist/axis_direction_demo_step03.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ def setup_axes(fig, rect):
fig = plt.figure(figsize=(6, 2.5))
fig.subplots_adjust(bottom=0.2, top=0.8)

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

ax2 = setup_axes(fig, "122")
ax2 = setup_axes(fig, 122)
ax2.axis["x"].label.set_text("Label")
ax2.axis["x"].toggle(ticklabels=False)
ax2.axis["x"].set_axislabel_direction("-")
Expand Down
4 changes: 2 additions & 2 deletions examples/axisartist/axis_direction_demo_step04.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setup_axes(fig, rect):
fig = plt.figure(figsize=(6, 2.5))
fig.subplots_adjust(bottom=0.2, top=0.8)

ax1 = setup_axes(fig, "121")
ax1 = setup_axes(fig, 121)
ax1.axis["x1"].label.set_text("rotation=0")
ax1.axis["x1"].toggle(ticklabels=False)

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

ax2 = setup_axes(fig, "122")
ax2 = setup_axes(fig, 122)

ax2.axis["x1"].set_axislabel_direction("-")
ax2.axis["x2"].set_axislabel_direction("-")
Expand Down
2 changes: 1 addition & 1 deletion examples/axisartist/simple_axis_direction01.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import mpl_toolkits.axisartist as axisartist

fig = plt.figure(figsize=(4, 2.5))
ax1 = fig.add_subplot(axisartist.Subplot(fig, "111"))
ax1 = fig.add_subplot(axisartist.Subplot(fig, 111))
fig.subplots_adjust(right=0.8)

ax1.axis["left"].major_ticklabels.set_axis_direction("top")
Expand Down
4 changes: 2 additions & 2 deletions examples/axisartist/simple_axis_direction03.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def setup_axes(fig, rect):
fig = plt.figure(figsize=(5, 2))
fig.subplots_adjust(wspace=0.4, bottom=0.3)

ax1 = setup_axes(fig, "121")
ax1 = setup_axes(fig, 121)
ax1.set_xlabel("X-label")
ax1.set_ylabel("Y-label")

ax1.axis[:].invert_ticklabel_direction()

ax2 = setup_axes(fig, "122")
ax2 = setup_axes(fig, 122)
ax2.set_xlabel("X-label")
ax2.set_ylabel("Y-label")

Expand Down