Skip to content

Commit b2c8993

Browse files
committed
add more nuance to the discussion of customization and update URLs
1 parent 9ce4ad8 commit b2c8993

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

content/data-visualization.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,13 @@ calls.
261261

262262
## Styling and customizing plots
263263

264-
- **Do not customize "manually"** using a graphical program (not easily repeatable/reproducible).
265-
- **No manual post-processing**. This will bite you when you need to regenerate 50
266-
figures one day before submission deadline or regenerate a set of figures
267-
after the person who created them left the group.
264+
- Before you customize plots "manually" using a graphical program, please
265+
consider how this affects reproducibility.
266+
- **Try to minimize manual post-processing**. This might bite you when you
267+
need to regenerate 50 figures one day before submission deadline or
268+
regenerate a set of figures after the person who created them left the group.
268269
- Matplotlib and also all the other libraries allow to customize almost every aspect of a plot.
269-
- It is useful to study [Matplotlib parts of a figure](https://matplotlib.org/stable/tutorials/introductory/quick_start.html#parts-of-a-figure)
270+
- It is useful to study [Matplotlib parts of a figure](https://matplotlib.org/stable/users/explain/quick_start.html#parts-of-a-figure)
270271
so that we know what to search for to customize things.
271272
- Matplotlib cheatsheets: <https://github.com/matplotlib/cheatsheets>
272273
- You can also select among pre-defined themes/
@@ -285,10 +286,10 @@ how the plot looks** (exercises 1 and 2) or to **modify the input data** (exampl
285286

286287
This is very close to real life: there are so many options and possibilities and it is
287288
almost impossible to remember everything so this strategy is useful to practice:
288-
- select an example that is close to what you have in mind
289-
- being able to adapt it to your needs
290-
- being able to search for help
291-
- being able to understand help request answers (not easy)
289+
- Select an example that is close to what you have in mind
290+
- Being able to adapt it to your needs
291+
- Being able to search for help
292+
- Being able to understand help request answers (not easy)
292293

293294
````{challenge} Exercise Customization-1: log scale in Matplotlib (15 min)
294295
In this exercise we will learn how to use log scales.
@@ -360,7 +361,7 @@ For figures that go to print it is good practice to look at them at the size
360361
they will be printed in and then often fonts and tickmarks are too small.
361362
362363
Your task is to make the tickmarks and the axis label font larger, using
363-
[Matplotlib parts of a figure](https://matplotlib.org/stable/tutorials/introductory/quick_start.html#parts-of-a-figure)
364+
[Matplotlib parts of a figure](https://matplotlib.org/stable/users/explain/quick_start.html#parts-of-a-figure)
364365
and web search, and to arrive at this:
365366
366367
```{figure} data-visualization/customizing/gapminder-larger-font.png
@@ -508,7 +509,7 @@ clarify questions at this point before moving on.
508509
---
509510

510511
```{keypoints}
511-
- Avoid manual post-processing, script everything.
512+
- Minimize manual post-processing, script everything.
512513
- Browse a number of example galleries to help you choose the library
513514
that fits best your work/style.
514515
- Figures for presentation slides and figures for manuscripts have

0 commit comments

Comments
 (0)