From 85121d40a89eea1769609b7e55a18f7859b926fb Mon Sep 17 00:00:00 2001 From: Ayush Kumar <97742499+ayush-kumar-423@users.noreply.github.com> Date: Wed, 7 Feb 2024 14:37:21 +0100 Subject: [PATCH] Fix multiharmonics example (#1406) * correction * removed unecessary files * removed unecessary files --- examples/03-harmonic_analyses/00-multi_harmonic.py | 6 +++--- examples/06-plotting/03-labels.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/03-harmonic_analyses/00-multi_harmonic.py b/examples/03-harmonic_analyses/00-multi_harmonic.py index 0118b326bd..c85bd704bc 100644 --- a/examples/03-harmonic_analyses/00-multi_harmonic.py +++ b/examples/03-harmonic_analyses/00-multi_harmonic.py @@ -75,10 +75,10 @@ field2 = fields[1] ############################################################################### -# Plot the minimum and maximum displacements over time. +# Plot the maximum displacements over time for Node ID 2 and 18 -pyplot.plot(field1.data, "r", label="Field 1") -pyplot.plot(field2.data, "b", label="Field 2") +pyplot.plot(field1.data, "r", label="NODE-ID 2") +pyplot.plot(field2.data, "b", label="NODE-ID 18") pyplot.xlabel("Frequency (Hz)") pyplot.ylabel("Displacement (m)") pyplot.legend() diff --git a/examples/06-plotting/03-labels.py b/examples/06-plotting/03-labels.py index 7413849b35..86d2ccdf5b 100644 --- a/examples/06-plotting/03-labels.py +++ b/examples/06-plotting/03-labels.py @@ -132,5 +132,5 @@ # position, focal point, and view respectively. plot.show_figure( show_axes=True, - cpos=[(0.123, 0.095, 1.069), (-0.121, -0.149, 0.825), (0.0, 0.0, 1.0)], + cpos=[(0.123, 0.095, 1.069), (-0.121, -0.149, 0.825), (0.0, 0.0, 1.0)] )