From 438fcd3d0ca350bf95944b5df2278ba4bbc643e1 Mon Sep 17 00:00:00 2001 From: neurosebnu <108298889+neurosebnu@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:48:12 -0500 Subject: [PATCH] Update sine_plot.py Changed the position of line plot --- 03_Scripts/04_FigureGeneration/sine_plot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/03_Scripts/04_FigureGeneration/sine_plot.py b/03_Scripts/04_FigureGeneration/sine_plot.py index 0f02e9e..6288933 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 +plt.show(fig)