Skip to content

Commit

Permalink
Update chapter_1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EiseWN committed Sep 18, 2024
1 parent 029b080 commit f6e5780
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions course/practicals/chapter_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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".
````
`````
Expand Down

0 comments on commit f6e5780

Please sign in to comment.