From 2bb04deaf3ae0fec2f9d8d9c3c6539c29aed0a52 Mon Sep 17 00:00:00 2001
From: Tom de Geus <tom@geus.me>
Date: Mon, 7 Mar 2022 17:02:26 +0100
Subject: [PATCH] Fixing warning in examples

---
 docs/examples/pyplot/plot.py    | 2 +-
 docs/examples/pyplot/subplot.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/examples/pyplot/plot.py b/docs/examples/pyplot/plot.py
index fdc3ec5..d2b001b 100644
--- a/docs/examples/pyplot/plot.py
+++ b/docs/examples/pyplot/plot.py
@@ -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")
diff --git a/docs/examples/pyplot/subplot.py b/docs/examples/pyplot/subplot.py
index fcf5a65..c5dd37f 100644
--- a/docs/examples/pyplot/subplot.py
+++ b/docs/examples/pyplot/subplot.py
@@ -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")
@@ -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")