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

Function plot

hvplot/plotting/__init__.py:15–51  ·  view source on GitHub ↗
(data, kind, **kwargs)

Source from the content-addressed store, hash-verified

13
14@with_hv_extension
15def plot(data, kind, **kwargs):
16 # drop reuse_plot
17 kwargs.pop('reuse_plot', None)
18
19 # replace with shared_axes
20 sharex = kwargs.pop('sharex', None)
21 sharey = kwargs.pop('sharey', None)
22 if sharex is not None and sharey is not None:
23 kwargs['shared_axes'] = sharex or sharey
24 elif sharex is not None:
25 kwargs['shared_axes'] = sharex
26 elif sharey is not None:
27 kwargs['shared_axes'] = sharey
28
29 # drop all kwargs that are set to None
30 no_none_kwargs = {}
31 for k, v in kwargs.items():
32 if v is not None:
33 no_none_kwargs[k] = v
34
35 if is_polars(data):
36 from .core import hvPlotTabularPolars
37
38 return hvPlotTabularPolars(data)(kind=kind, **no_none_kwargs)
39
40 elif is_duckdb(data):
41 warnings.warn(
42 'Allowing to pass DuckDB data objects to the plot function is '
43 'deprecated and will be removed in a future version. '
44 'Use `import hvplot.duckdb` instead.',
45 FutureWarning,
46 stacklevel=_find_stack_level(),
47 )
48 from .core import hvPlotTabularDuckDB
49
50 return hvPlotTabularDuckDB(data)(kind=kind, **no_none_kwargs)
51 return hvPlotTabular(data)(kind=kind, **no_none_kwargs)
52
53
54def boxplot_series(*args, **kwargs):

Callers 8

boxplot_seriesFunction · 0.85
boxplot_frameFunction · 0.85
boxplot_frame_groupbyFunction · 0.85
hist_seriesFunction · 0.85
hist_frameFunction · 0.85

Calls 6

is_polarsFunction · 0.85
hvPlotTabularPolarsClass · 0.85
is_duckdbFunction · 0.85
_find_stack_levelFunction · 0.85
hvPlotTabularDuckDBClass · 0.85
hvPlotTabularClass · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…