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

Method __getattribute__

hvplot/plotting/core.py:113–128  ·  view source on GitHub ↗

Custom getattribute to expose user defined subplots.

(self, name)

Source from the content-addressed store, hash-verified

111 return sorted(list(dirs) + list(self._plots))
112
113 def __getattribute__(self, name):
114 """
115 Custom getattribute to expose user defined subplots.
116 """
117 plots = object.__getattribute__(self, '_plots')
118 if name in plots:
119 plot_opts = plots[name]
120 if 'kind' in plot_opts and name in HoloViewsConverter._kind_mapping:
121 param.main.param.warning(
122 'Custom options for existing plot types should not '
123 "declare the 'kind' argument. The .{} plot method "
124 'was unexpectedly customized with kind={!r}.'.format(plot_opts['kind'], name)
125 )
126 plot_opts['kind'] = name
127 return hvPlotBase(self._data, **dict(self._metadata, **plot_opts))
128 return super().__getattribute__(name)
129
130 def explorer(self, x=None, y=None, **kwds):
131 """

Callers

nothing calls this directly

Calls 1

hvPlotBaseClass · 0.85

Tested by

no test coverage detected