From f6e57800a41dd935cfc4c4ae5d4bb3740ae36166 Mon Sep 17 00:00:00 2001 From: Eise Nota Date: Wed, 18 Sep 2024 09:36:30 +0200 Subject: [PATCH] Update chapter_1.md --- course/practicals/chapter_1.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/course/practicals/chapter_1.md b/course/practicals/chapter_1.md index e828d6a..7aeb308 100644 --- a/course/practicals/chapter_1.md +++ b/course/practicals/chapter_1.md @@ -1287,20 +1287,18 @@ In this exercise, we will perform some analysis on a dataset containing the flow _Answer open questions as remarks in separate lines starting with: '#'_. + `````{note} - To be able to read the data in a plot, you are required to plot your figures in a window outside of the plot window ({numref}`Fig. 1`). You can do this by running the following lines in your console: + To be able to read the data in a plot, you are required to plot your figures in a window outside of the plot window ({numref}`Fig. 1`). You can do this by adjusting the following setting from "Preferences" in the menu bar of Spyder: + ```` - import matplotlib - %matplotlib qt5 + Preferences > IPython console > Graphics > Backend: Automatic > Apply ```` + Now if you move the cursor along the plot line, the x-, and y values will be given in the upper right of the window. + ````{note} - This setting is not temporary. If you want to reset matplotlib so that your plots will occur in the file/variable navigator again, you can run the lines of code in your console: - ``` - import matplotlib as mpl - import importlib - importlib.reload(mpl); importlib.reload(plt); - ``` + This setting is not temporary. If you want to reset the plot settings so that your plots will occur in the file/variable navigator again, you can set the Backend to "Inline". ```` `````