Skip to content

Commit

Permalink
Fixing warning in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Mar 7, 2022
1 parent 5fc39a3 commit 867226f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/examples/pyplot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

ax.set_title("Simple plot")

ax.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax.xaxis.set_ticks([0, np.pi, 2 * np.pi])
ax.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax.yaxis.set_ticks([-1, 0, 1])

ax.legend(loc="upper right")
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/pyplot/subplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

ax1.set_title("First subplot")

ax1.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax1.xaxis.set_ticks([0, np.pi, 2 * np.pi])
ax1.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax1.yaxis.set_ticks([-1, 0, 1])

ax1.legend(loc="upper right")
Expand All @@ -39,8 +39,8 @@

ax2.set_title("Second subplot")

ax2.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax2.xaxis.set_ticks([0, np.pi, 2 * np.pi])
ax2.xaxis.set_ticklabels(["0", r"$\pi$", r"$2\pi$"])
ax2.yaxis.set_ticks([-1, 0, 1])

ax2.legend(loc="upper center")
Expand Down

0 comments on commit 867226f

Please sign in to comment.