Commit 4e61ef1
committed
Prefer
1) Prefer using mpl.get_data_path() rather than rcParams["datapath"].
I would like to ultimately kill that rcParams entry, because it
does not make sense as a rcParam (for example one can't really
meaningfully assign it to anything else than its default value, or
set it in their matplotlibrc) and requires e.g. to be blacklisted
in style/core.py; let's start by not using it in the docs.
2) As a side effect of that change, one of the examples (font_file.py)
reads a bit more nicely if one can pass Paths to FontProperties, so
let's support that.mpl.get_data_path(), and support Paths in FontProperties.1 parent fdc7a8c commit 4e61ef1
4 files changed
Lines changed: 13 additions & 8 deletions
File tree
- doc/users/next_whats_new
- examples/text_labels_and_annotations
- lib/matplotlib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | | - | |
27 | | - | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
| 1278 | + | |
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
| |||
0 commit comments