Skip to content

Commit

Permalink
Warn about mpl ArrowPlot fontsize style option (#4018)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 2, 2019
1 parent 1f6b44b commit 36176a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions holoviews/plotting/mpl/annotation.py
Expand Up @@ -261,6 +261,9 @@ def draw_annotation(self, axis, data, opts):
xytext = (0, points if direction=='v' else -points)
elif direction in ['>', '<']:
xytext = (points if direction=='<' else -points, 0)
if 'fontsize' in textopts:
self.param.warning('Arrow textsize style option is deprecated, '
'use textsize option instead.')
if 'textsize' in textopts:
textopts['fontsize'] = textopts.pop('textsize')
return [axis.annotate(text, xy=(x, y), textcoords='offset points',
Expand Down

0 comments on commit 36176a7

Please sign in to comment.