Skip to content

Commit

Permalink
Merge pull request #14 from peters77/wip-fix-font-error-add_scale
Browse files Browse the repository at this point in the history
Fix font loading when adding scale (colorbar)
  • Loading branch information
djhoese committed Apr 7, 2020
2 parents 3127fcb + 8d90339 commit 4ed6e63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydecorate/decorator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ def _add_scale(self, colormap, title=None, **kwargs):
# draw object
draw = self._get_canvas(self.image)

# check for font object
self._get_current_font()

# draw base
px = (self.style['propagation'][0] +
self.style['newline_propagation'][0])
Expand Down

0 comments on commit 4ed6e63

Please sign in to comment.