Skip to content

Commit

Permalink
Use axis_title_font_size and tick_font_size.
Browse files Browse the repository at this point in the history
Commit c365482 added a # of options for axis
titles to theme.py. All of these options are used except for font_size.
Similarly, all theme options for ticks are used except font_size.

This commit uses those properties.
  • Loading branch information
Math-ias committed May 9, 2022
1 parent a10c27e commit 1a24d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leather/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def to_svg(self, width, height, scale, orient):
)
title.set('text-anchor', 'middle')
title.set('font-family', theme.axis_title_font_family)
title.set('font-size', six.text_type(theme.axis_title_font_size))
title.text = self._name

group.append(title)
Expand Down Expand Up @@ -164,6 +165,7 @@ def to_svg(self, width, height, scale, orient):
)
label.set('text-anchor', text_anchor)
label.set('font-family', theme.tick_font_family)
label.set('font-size', six.text_type(theme.tick_font_size))

value = tick_formatter(value, i, tick_count)
label.text = six.text_type(value)
Expand Down

0 comments on commit 1a24d36

Please sign in to comment.