Commit 92f8978
committed
Avoid plt.xticks/plt.yticks in gallery examples.
In particular, the ticklabels_rotation example is likely the one most
easily found by those looking for how to do this; let's not suggest that
plt.xticks is "the" way to rotate ticklabels.
Also remove the margins() call (which was really only needed with the
old round_numbers autolimits mode) and the subplots_adjust() call (the
ticklabels already fit in, and the modern approach would be to use
constrained_layout anyways).1 parent acfef85 commit 92f8978
File tree
2 files changed
+6
-7
lines changed- galleries/examples
- subplots_axes_and_figures
- ticks
2 files changed
+6
-7
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
21 | 20 | | |
0 commit comments