From 60f389726e341c92c972832e382322219818ef60 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Thu, 11 Jan 2024 21:13:55 -0800 Subject: [PATCH] Apply changes to basic 3d examples as well. --- examples/3d_drawing/plot_3d_animation_basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/3d_drawing/plot_3d_animation_basic.py b/examples/3d_drawing/plot_3d_animation_basic.py index c170851f5cf..a11520d85d2 100644 --- a/examples/3d_drawing/plot_3d_animation_basic.py +++ b/examples/3d_drawing/plot_3d_animation_basic.py @@ -33,12 +33,12 @@ def init(): + ax.clear() ax.scatter(*nodes.T, alpha=0.2, s=100, color="blue") for vizedge in edges: ax.plot(*vizedge.T, color="gray") ax.grid(False) ax.set_axis_off() - plt.tight_layout() def _frame_update(index): @@ -47,6 +47,7 @@ def _frame_update(index): fig = plt.figure() ax = fig.add_subplot(111, projection="3d") +fig.tight_layout() ani = animation.FuncAnimation( fig,