| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| # update the minor locator for x and y axis based on rcParams | ||
| if rcParams['xtick.minor.visible']: | ||
| if axis.axis_name in list("xy") and \ | ||
| rcParams['{}tick.minor.visible'.format(axis.axis_name)]: |
There was a problem hiding this comment.
IMHO this would be slightly more readable:
if (axis.axis_name == 'x' and rcParams['xtick.minor.visible']
or axis.axis_name == 'y' and rcParams['ytick.minor.visible']):
Sorry, something went wrong.
There was a problem hiding this comment.
Modulo adding a test.
Don't think we need an image test, just ask the axis if the minor ticks are turned on.
Sorry, something went wrong.
|
Test added. |
Sorry, something went wrong.
…938-on-v3.0.x Backport PR #12938 on branch v3.0.x (Fix xtick.minor.visible only acting on the xaxis)
* upstream/master: (1723 commits) Correctly get weight & style hints from certain newer Microsoft fonts (matplotlib#12945) Remove some checks for Py<3.6 in the test suite. (matplotlib#12974) Fail-fast when trying to run tests with too-old pytest. Include scatter plots in Qt figure options editor. (matplotlib#12779) ENH: replace deprecated numpy header Minor simplifications. tickminorvisible-fix (matplotlib#12938) Remove animated=True from animation docs Update the documentation of Cursor Misc. cleanups. Add test for 3d conversion of empty PolyCollection Support ~ as nonbreaking space in mathtext. Deprecate public use of Formatter.pprint_val. MAINT: Unify calculation of normal vectors from polygons (matplotlib#12136) Fix the title of testing_api More table documentation Simplify bachelors degree example using new features. Avoid pyplot in showcase examples. Simplify argument checking in Table.__getitem__. (matplotlib#12932) Minor updates following bump to Py3.6+. ... # Conflicts: # lib/matplotlib/widgets.py
| Back | FazBrowse Home | New Git URL |
PR Summary
#10193 introduced a bug, that when the rc param xtick.minor.visible is set to True, also the y-axis would get minor ticks.
This PR fixes this.
with this PR
Interestingly though, plt.rcParams["ytick.minor.visible"] = True always worked fine. So in that sense I'm not sure if the Scale would even need to set the locator the way it does.
PR Checklist