Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Added missing side tick rcParams #6735
Conversation
mdboom
added the
needs_review
label
Jul 13, 2016
QuLogic
commented on the diff
Jul 13, 2016
doc/users/whats_new/ticks_rcparams.rst
| @@ -5,6 +5,11 @@ The parameters ``xtick.top``, ``xtick.bottom``, ``ytick.left`` | ||
| and ``ytick.right`` were added to control where the ticks | ||
| are drawn. | ||
| +Furthermore, the parameters ``xtick.major.top``, ``xtick.major.bottom``, | ||
| +``xtick.minor.top``, ``xtick.minor.bottom``, ``ytick.major.left``, | ||
| +``ytick.major.right``, ``ytick.minor.left``, and ``ytick.minor.right`` were | ||
| +added to control were ticks are drawn. |
|
|
QuLogic
and 1 other
commented on an outdated diff
Jul 13, 2016
lib/matplotlib/axes/_base.py
| @@ -566,11 +566,26 @@ def __init__(self, fig, rect, | ||
| if self.yaxis is not None: | ||
| self._ycid = self.yaxis.callbacks.connect('units finalize', | ||
| self.relim) | ||
| - self.tick_params(top=rcParams['xtick.top'], | ||
| - bottom=rcParams['xtick.bottom'], | ||
| - left=rcParams['ytick.left'], | ||
| - right=rcParams['ytick.right'], | ||
| - which='both') | ||
| + | ||
| + self.tick_params(top=rcParams['xtick.top'] and | ||
| + rcParams['xtick.minor.top'], |
QuLogic
Member
|
QuLogic
and 1 other
commented on an outdated diff
Jul 13, 2016
lib/matplotlib/rcsetup.py
| @@ -1175,6 +1175,12 @@ def validate_animation_writer_path(p): | ||
| 'xtick.color': ['k', validate_color], # color of the xtick labels | ||
| 'xtick.minor.visible': [False, validate_bool], # visiablility of the x axis minor ticks | ||
| + 'xtick.minor.top': [True, validate_bool], # draw x axis top minor ticks | ||
| + 'xtick.minor.bottom': [True, validate_bool], # draw x axis bottom minor ticks | ||
| + 'xtick.major.top': [True, validate_bool], # draw x axis top major ticks | ||
| + 'xtick.major.bottom': [True, validate_bool], # draw x axis bottom major ticks | ||
| + |
|
|
|
Closing and reopening to run with miktex changes on appveyor to see if that lets the appveyor tests pass. |
janschulz
closed this
Jul 15, 2016
janschulz
reopened this
Jul 15, 2016
mdboom
added needs_review and removed needs_review
labels
Jul 15, 2016
tacaswell
modified the milestone: 2.0 (style change major release)
Jul 16, 2016
tacaswell
merged commit b9aedb8
into matplotlib:master
Jul 16, 2016
tacaswell
removed the
needs_review
label
Jul 16, 2016
QuLogic
added a commit
that referenced
this pull request
Jul 17, 2016
|
|
tacaswell + QuLogic |
4721d2e
|
|
Backported to v2.x as 4721d2e. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bcongdon commentedJul 13, 2016
Addresses #6691.
Adds
<x/y>tick.<major/minor>.*for configuring which side ticks are drawn via rcParams.Per this change, similar tags like
xtick.topandxtick.minor.topareand'ed to get the actual tick draw status.