MCPcopy Create free account
hub / github.com/holoviz/hvplot / _plot

Method _plot

hvplot/interactive.py:729–744  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

727 return self._apply_operator(operator.getitem, other)
728
729 def _plot(self, *args, **kwargs):
730 # TODO: Seems totally unused to me, as self._plot is set to a boolean in __init__
731 @pn.depends()
732 def get_ax():
733 from matplotlib.backends.backend_agg import FigureCanvas
734 from matplotlib.pyplot import Figure
735
736 Interactive._fig = fig = Figure()
737 FigureCanvas(fig)
738 return fig.subplots()
739
740 kwargs['ax'] = get_ax
741 new = self._resolve_accessor()
742 transform = new._transform
743 transform = type(transform)(transform, 'plot', accessor=True)
744 return new._clone(transform(*args, **kwargs), plot=True)
745
746 # ----------------------------------------------------------------
747 # Public API

Callers

nothing calls this directly

Calls 2

_resolve_accessorMethod · 0.95
_cloneMethod · 0.80

Tested by

no test coverage detected