Skip to content

Commit

Permalink
Handle more cases by unindenting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Oct 8, 2018
1 parent a4a5b86 commit 6de3984
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,13 @@ def _axis_properties(self, axis, key, plot, dimension=None,
new_key = key.replace('major_label', 'group')
axis_props[new_key] = axis_props[key]

if 'font_size' in key:
# major ticks are actually minor ticks in a categorical
# so if user inputs minor ticks sizes, then use that;
# else keep major (group) == minor (subgroup)
msize = self._fontsize('minor_{0}ticks'.format(axis),
common=False).get('fontsize')
if msize is not None:
axis_props[key] = msize
# major ticks are actually minor ticks in a categorical
# so if user inputs minor ticks sizes, then use that;
# else keep major (group) == minor (subgroup)
msize = self._fontsize('minor_{0}ticks'.format(axis),
common=False).get('fontsize')
if msize is not None:
axis_props['major_label_text_font_size'] = msize

return axis_props

Expand Down

0 comments on commit 6de3984

Please sign in to comment.