From 323289c46927d6d249d85429d27ba83a4529edc1 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Mon, 16 Oct 2023 10:41:56 -0400
Subject: [PATCH] =?UTF-8?q?In=20examples,=20don=E2=80=99t=20pass=20keyword?=
=?UTF-8?q?s=20to=20Figure.gca()?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This was deprecated in matplotlib 3.4.0:
https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.4.0.html#pyplot-gca-and-figure-gca-keyword-arguments
This does not work at all with current versions of matplotlib.
---
examples/example_05_custom_parameter.py | 2 +-
examples/example_06_parameter_presetting.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/example_05_custom_parameter.py b/examples/example_05_custom_parameter.py
index 56923452..d0b7340c 100644
--- a/examples/example_05_custom_parameter.py
+++ b/examples/example_05_custom_parameter.py
@@ -228,7 +228,7 @@ def main():
#Plot fancy 3d plot
fig = plt.figure(idx)
- ax = fig.gca(projection='3d')
+ ax = fig.add_subplot(projection='3d')
x = euler_data[:,0]
y = euler_data[:,1]
z = euler_data[:,2]
diff --git a/examples/example_06_parameter_presetting.py b/examples/example_06_parameter_presetting.py
index 06f15f34..9c516674 100644
--- a/examples/example_06_parameter_presetting.py
+++ b/examples/example_06_parameter_presetting.py
@@ -146,7 +146,7 @@ def main():
# Plot fancy 3d plot
fig = plt.figure(idx)
- ax = fig.gca(projection='3d')
+ ax = fig.add_subplot(projection='3d')
x = euler_data[:,0]
y = euler_data[:,1]
z = euler_data[:,2]