class_docstr: Base for all plot classes.
class_docstr_tok: ["Base","for","all","plot","classes","."]
docstr: 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
docstr_tok: ["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"]
code: def _plot_with_legend(method, **kwargs):
      """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
  
      """
      legend_label = kwargs.pop("legend_label", None)
      legend_group = kwargs.pop("legend_group", None)
  
      if legend_label is not None:
          return method(**kwargs, legend_label=legend_label)
      elif legend_group is not None:
          return method(**kwargs, legend_group=legend_group)
      else:
          return method(**kwargs)
  
imports: import bokeh
  import pandas
  import numpy
  from chartify._core.colors import Color, color_palettes
  from chartify._core.axes import NumericalYMixin, NumericalXMixin
  from scipy.stats import gaussian_kde
label_desc: Use image node_id 5 for calling the BasePlot obj's underlying member method code with example usage: obj._plot_with_legend(method) and returns: method, method, method