Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added xtick.position and ytick.position to rcsetup.py
  • Loading branch information
olgabot committed Jan 4, 2014
commit 480173817cf9cfa6acf4b4278ec675aa99f86ab7
9 changes: 9 additions & 0 deletions lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ def validate_bbox(s):
return None
raise ValueError("bbox should be 'tight' or 'standard'")

validate_xtick_position = ValidateInStrings('xtick.position',
['both', 'bottom', 'top'])

validate_ytick_position = ValidateInStrings('ytick.position',
['both', 'left', 'right'])


def validate_sketch(s):
if s == 'None' or s is None:
return None
Expand Down Expand Up @@ -665,6 +672,7 @@ def __call__(self, s):
# fontsize of the xtick labels
'xtick.labelsize': ['medium', validate_fontsize],
'xtick.direction': ['in', six.text_type], # direction of xticks
'xtick.position': ['both', validate_xtick_position],

'ytick.major.size': [4, validate_float], # major ytick size in points
'ytick.minor.size': [2, validate_float], # minor ytick size in points
Expand All @@ -676,6 +684,7 @@ def __call__(self, s):
# fontsize of the ytick labels
'ytick.labelsize': ['medium', validate_fontsize],
'ytick.direction': ['in', six.text_type], # direction of yticks
'ytick.position': ['both', validate_ytick_position],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this doing anything? I can't see any diffs which are making use of it.


'grid.color': ['k', validate_color], # grid color
'grid.linestyle': [':', six.text_type], # dotted
Expand Down