From 69a411e8c6e3ffa4a0171c6cfbe3eba5cb99e54c Mon Sep 17 00:00:00 2001 From: Tushya Mehta <144172839+tm1000mehta@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:47:42 -0500 Subject: [PATCH] Update sine_plot.py Moved plot reference behind plot sine --- 03_Scripts/04_FigureGeneration/sine_plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/03_Scripts/04_FigureGeneration/sine_plot.py b/03_Scripts/04_FigureGeneration/sine_plot.py index 0f02e9e..9408a6e 100644 --- a/03_Scripts/04_FigureGeneration/sine_plot.py +++ b/03_Scripts/04_FigureGeneration/sine_plot.py @@ -15,12 +15,12 @@ #Draw initial figure and axis fig, ax = plt.subplots() -#Plot sine wave -ax.plot(x, y) - #Plot reference line ax.plot(x, np.zeros(len(x)), linestyle="--", color='0.8') +#Plot sine wave +ax.plot(x, y) + #Show plot plt.savefig(os.path.realpath("04_Outputs/01_Figures/sineplot.png")) plt.show(fig) \ No newline at end of file