From 4b5e599dfaab4bdbbec227603ef5f5424921184d Mon Sep 17 00:00:00 2001 From: stonebig Date: Sun, 3 Sep 2017 21:17:07 +0200 Subject: [PATCH] fix for Matplotlib-2.1.0rc1 AnchoredText unused import was remove from mpl_toolkit. fix https://github.com/ioam/holoviews/issues/1840 --- holoviews/plotting/mpl/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/plotting/mpl/plot.py b/holoviews/plotting/mpl/plot.py index 5eeaefa828..f45facf306 100644 --- a/holoviews/plotting/mpl/plot.py +++ b/holoviews/plotting/mpl/plot.py @@ -180,7 +180,7 @@ def _init_axis(self, fig, axis): def _subplot_label(self, axis): layout_num = self.layout_num if self.subplot else 1 if self.sublabel_format and not self.adjoined and layout_num > 0: - from mpl_toolkits.axes_grid1.anchored_artists import AnchoredText + from matplotlib.offsetbox import AnchoredText labels = {} if '{Alpha}' in self.sublabel_format: labels['Alpha'] = int_to_alpha(layout_num-1)