MCPcopy Index your code
hub / github.com/spotify/chartify / _plot_with_legend

Method _plot_with_legend

chartify/_core/plot.py:112–127  ·  view source on GitHub ↗

Call plotting method with the associated kwargs. Removes the legend parameter if it is set to None because Bokeh breaks if None is passed to a legend parameter

(method, **kwargs)

Source from the content-addressed store, hash-verified

110
111 @staticmethod
112 def _plot_with_legend(method, **kwargs):
113 """Call plotting method with the associated kwargs.
114
115 Removes the legend parameter if it is set to None because
116 Bokeh breaks if None is passed to a legend parameter
117
118 """
119 legend_label = kwargs.pop("legend_label", None)
120 legend_group = kwargs.pop("legend_group", None)
121
122 if legend_label is not None:
123 return method(**kwargs, legend_label=legend_label)
124 elif legend_group is not None:
125 return method(**kwargs, legend_group=legend_group)
126 else:
127 return method(**kwargs)
128
129 @staticmethod
130 def _cannonical_series_name(series_name):

Callers 13

lineMethod · 0.80
scatterMethod · 0.80
areaMethod · 0.80
histogramMethod · 0.80
barMethod · 0.80
bar_stackedMethod · 0.80
lollipopMethod · 0.80
parallelMethod · 0.80
scatterMethod · 0.80
boxplotMethod · 0.80
perimeterMethod · 0.80
areaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected