Commit 714636e
committed
Replace random values by hard-coded numbers in plot-types ...
... for the cases where we have only very few random numbers.
This makes the code a bit simpler, because we do not have to
seed. Also, a list of hard-coded numbers is slightly simpler to
grasp compared to a rng function. This is partly also in
anticipation of the switch to numpy's rng generator classes.
While conceptually superior, they are a bit more verbose and
introduce the additional local variable `rng` (IMHO this is the
benefit and the downside: It explicitly ties the rng state to
the local context -> clarity. But OTOH the user is bothered
with this local state even if it's not important to them - like
in our examples.)1 parent e7fd79f commit 714636e
3 files changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
0 commit comments