COREG.show_matchWin() does not work with default settings for 'after_correction=None'
COREG.show_matchWin() uses after_correction=None as default.
If after_correction is not set manually to True/False, the error shown below occurs.
If after_correction is set manually to True/False the function works, no error occurs.
def show_matchWin(self, figsize=(15, 15), interactive=True, after_correction=None, pmin=2, pmax=98):
COREG.show_matchWin()
Matching window before and after correction (above and below):
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/service/soft/local/pygfz/python/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
330 pass
331 else:
--> 332 return printer(obj)
333 # Finally look for special method names
334 method = get_real_method(obj, self.print_method)
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/ipython/display_hooks.py in pprint_display(obj)
257 if not ip.display_formatter.formatters['text/plain'].pprint:
258 return None
--> 259 return display(obj, raw=True)
260
261
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/ipython/display_hooks.py in display(obj, raw, **kwargs)
240 elif isinstance(obj, (Layout, NdLayout, AdjointLayout)):
241 with option_state(obj):
--> 242 html = layout_display(obj)
243 elif isinstance(obj, (HoloMap, DynamicMap)):
244 with option_state(obj):
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/ipython/display_hooks.py in wrapped(element)
129 try:
130 html = fn(element,
--> 131 max_frames=OutputSettings.options['max_frames'])
132
133 # Only want to add to the archive for one display hook...
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/ipython/display_hooks.py in layout_display(layout, max_frames)
211 return None
212
--> 213 return render(layout)
214
215
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/ipython/display_hooks.py in render(obj, **kwargs)
59 if renderer.fig == 'pdf':
60 renderer = renderer.instance(fig='png')
---> 61 return renderer.html(obj, **kwargs)
62
63
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/renderer.py in html(self, obj, fmt, css, comm, **kwargs)
253 code to initialize a Comm, if the plot supplies one.
254 """
--> 255 plot, fmt = self._validate(obj, fmt)
256 figdata, _ = self(plot, fmt, **kwargs)
257 if css is None: css = self.css
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/renderer.py in _validate(self, obj, fmt)
189 if isinstance(obj, tuple(self.widgets.values())):
190 return obj, 'html'
--> 191 plot = self.get_plot(obj, renderer=self)
192
193 fig_formats = self.mode_formats['fig'][self.mode]
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/renderer.py in get_plot(self_or_cls, obj, renderer)
176 plot = self_or_cls.plotting_class(obj)(obj, renderer=renderer,
177 **plot_opts)
--> 178 plot.update(0)
179 else:
180 plot = obj
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in update(self, key)
243 if len(self) == 1 and key == 0 and not self.drawn:
244 return self.initialize_plot()
--> 245 return self.__getitem__(key)
246
247
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/plot.py in __getitem__(self, frame)
219 if isinstance(frame, int) and frame > len(self):
220 self.warning("Showing last frame available: %d" % len(self))
--> 221 if not self.drawn: self.handles['fig'] = self.initialize_plot()
222 if not isinstance(frame, tuple):
223 frame = self.keys[frame]
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in wrapper(self, *args, **kwargs)
41 def wrapper(self, *args, **kwargs):
42 with _rc_context(self.fig_rcparams):
---> 43 return f(self, *args, **kwargs)
44 return wrapper
45
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in initialize_plot(self)
1069 ranges = self.compute_ranges(self.layout, key, None)
1070 for subplot in self.subplots.values():
-> 1071 subplot.initialize_plot(ranges=ranges)
1072
1073 # Create title handle
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in wrapper(self, *args, **kwargs)
41 def wrapper(self, *args, **kwargs):
42 with _rc_context(self.fig_rcparams):
---> 43 return f(self, *args, **kwargs)
44 return wrapper
45
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in initialize_plot(self, ranges)
639 ax.set_axis_off()
640 continue
--> 641 subplot.initialize_plot(ranges=ranges)
642
643 self.adjust_positions()
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in wrapper(self, *args, **kwargs)
41 def wrapper(self, *args, **kwargs):
42 with _rc_context(self.fig_rcparams):
---> 43 return f(self, *args, **kwargs)
44 return wrapper
45
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/element.py in initialize_plot(self, ranges)
490
491 return self._finalize_axis(self.keys[-1], element=element, ranges=ranges,
--> 492 **axis_kwargs)
493
494
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/element.py in _finalize_axis(self, key, element, title, dimensions, ranges, xticks, yticks, zticks, xlabel, ylabel, zlabel)
168
169 # Apply subplot label
--> 170 self._subplot_label(axis)
171
172 # Apply axis options if axes are enabled
/service/soft/local/pygfz/python/lib/python3.6/site-packages/holoviews/plotting/mpl/plot.py in _subplot_label(self, axis)
181 layout_num = self.layout_num if self.subplot else 1
182 if self.sublabel_format and not self.adjoined and layout_num > 0:
--> 183 from mpl_toolkits.axes_grid1.anchored_artists import AnchoredText
184 labels = {}
185 if '{Alpha}' in self.sublabel_format:
ImportError: cannot import name 'AnchoredText'