From ec1ed493287f4ca01e947b59ce942c2c87b29ccf Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Tue, 28 Mar 2023 09:48:34 -0700 Subject: [PATCH] Examples: Fix undefined method in plot_ah_coordiante_velocity.py Thanks Cheng-Hsin Cheng --- examples/bins/plot_ah_coordinate_velocity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bins/plot_ah_coordinate_velocity.py b/examples/bins/plot_ah_coordinate_velocity.py index 511f1a55..64638a0f 100755 --- a/examples/bins/plot_ah_coordinate_velocity.py +++ b/examples/bins/plot_ah_coordinate_velocity.py @@ -91,7 +91,7 @@ plt.plot(vel[0], label=r"$v^x$") plt.plot(vel[1], label=r"$v^y$") plt.plot(vel[2], label=r"$v^z$") - plt.plot(vel.magn(), label=r"$\|v\|$") + plt.plot(vel.norm(), label=r"$\|v\|$") plt.legend() add_text_to_corner(f"AH {ah}", anchor="SW", offset=0.005)