Skip to content

Commit

Permalink
Merge pull request #104 from Math-ias/master
Browse files Browse the repository at this point in the history
Use axis_title_font_size and tick_font_size.
  • Loading branch information
jpmckinney authored Oct 23, 2023
2 parents 028d416 + 1a24d36 commit 9fb7a01
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 @@ -79,6 +79,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 @@ -162,6 +163,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 = str(value)
Expand Down

0 comments on commit 9fb7a01

Please sign in to comment.