Make _classic_test style a tiny patch on top of classic.#14942
Make _classic_test style a tiny patch on top of classic.#14942tacaswell merged 1 commit intomatplotlib:masterfrom
Conversation
|
It seems like there's more in the diff than just --- classic.mplstyle 2019-07-16 20:41:48.743238831 -0400
+++ _classic_test.mplstyle 2019-07-31 02:57:47.044369917 -0400
@@ -8,8 +8,6 @@
lines.linestyle : - # solid line
lines.color : b # has no affect on plot(); see axes.prop_cycle
lines.marker : None # the default marker
-lines.markerfacecolor : auto # the default markerfacecolor
-lines.markeredgecolor : auto # the default markeredgecolor
lines.markeredgewidth : 0.5 # the line width around the marker symbol
lines.markersize : 6 # markersize, in points
lines.dash_joinstyle : round # miter|round|bevel
@@ -247,7 +245,6 @@
xtick.major.bottom : True # draw x axis bottom major ticks
xtick.minor.top : True # draw x axis top minor ticks
xtick.minor.bottom : True # draw x axis bottom minor ticks
-xtick.alignment : center
ytick.left : True # draw ticks on the left side
ytick.right : True # draw ticks on the right side
@@ -265,7 +262,6 @@
ytick.major.right : True # draw y axis right major ticks
ytick.minor.left : True # draw y axis left minor ticks
ytick.minor.right : True # draw y axis right minor ticks
-ytick.alignment : center
### GRIDS
grid.color : k # grid color |
|
these are still the default values right now _classic_test does not set them, so it uses the defaults from rcsetup; with this PR it will inherit them from classic, but the values are the same (and even if the defaults change, classic won't change so _classic_test/_test_patch will be unaffected. |
| @@ -0,0 +1,4 @@ | |||
| # This patch should go on top of the "classic" style and exists solely to avoid | |||
There was a problem hiding this comment.
I would leave "classic" in the name. Maybe "_classic_test_patch.mplstyle". This makes it clear that it's only intended for the classic style.
style = ["classic", "_classic_test_patch"]
reads quite consistent.
"internal" is not adding much as we already have a underscore prefix.
There was a problem hiding this comment.
ok, renamed to _classic_test_patch
This makes it easier to see the difference between the two styles.
This makes it easier to see the difference between the two styles.
See also #8081 which introduced _classic_test.
PR Summary
PR Checklist