Commit 7856995
committed
plot_date: Set the default fmt to 'o'
Different to just plot() plot_date() has a default plot format string
which makes it necessary to *unset* the default one when drawing
multiple sequences of dates in a figure to get a working color cycling.
It also was not exactly clear that Axes.set_color_cycle was setting the
color cycle for every plot command except for plot_date ones.
It was of course possible to simply unset it after reading the
documentation but that's not the path of least suprise.
The default fmt of 'o' will keep the markers by default (which makes
sense for dates) but allows color cycling to happen.
This is related to issue #21481 parent c0e5c99 commit 7856995
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
| 1340 | + | |
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3066 | 3066 | | |
3067 | 3067 | | |
3068 | 3068 | | |
3069 | | - | |
| 3069 | + | |
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
| |||
0 commit comments