Skip to content

Commit

Permalink
Matplotlib plotting fixes (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 18, 2017
1 parent 7c06dbd commit ea90ebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions holoviews/plotting/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from ...core import Layout, Collator, GridMatrix, config
from ...core.options import Cycle, Palette, Options
from ...core.overlay import NdOverlay, Overlay
from ...core.util import pd
from ...element import * # noqa (API import)
from ..plot import PlotSelector
from .annotation import * # noqa (API import)
Expand All @@ -24,6 +25,10 @@

mpl_ge_150 = LooseVersion(mpl.__version__) >= '1.5.0'

if pd:
from pandas.tseries import converter
converter.register()


def set_style(key):
"""
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def _adjust_legend(self, overlay, axis):
else:
leg_spec = self.legend_specs[self.legend_position]
if self.legend_cols: leg_spec['ncol'] = self.legend_cols
leg = axis.legend(data.keys(), data.values(),
leg = axis.legend(list(data.keys()), list(data.values()),
title=title, scatterpoints=1,
**dict(leg_spec, **self._fontsize('legend')))
title_fontsize = self._fontsize('legend_title')
Expand Down

0 comments on commit ea90ebd

Please sign in to comment.