docstr: Handle differences between artists in filled/unfilled plots.
docstr_tok: ["Handle","differences","between","artists","in","filled\/unfilled","plots","."]
code: def _artist_kws(self, kws, fill, element, multiple, color, alpha):
      """Handle differences between artists in filled/unfilled plots."""
      kws = kws.copy()
      if fill:
          kws = normalize_kwargs(kws, mpl.collections.PolyCollection)
          kws.setdefault("facecolor", to_rgba(color, alpha))
  
          if element == "bars":
              # Make bar() interface with property cycle correctly
              # https://github.com/matplotlib/matplotlib/issues/19385
              kws["color"] = "none"
  
          if multiple in ["stack", "fill"] or element == "bars":
              kws.setdefault(
                  "edgecolor", mpl.rcParams["patch.edgecolor"]
              )
          else:
              kws.setdefault("edgecolor", to_rgba(color, 1))
      elif element == "bars":
          kws["facecolor"] = "none"
          kws["edgecolor"] = to_rgba(color, alpha)
      else:
          kws["color"] = to_rgba(color, alpha)
      return kws
  
imports: from numbers import Number
  from functools import partial
  import math
  import textwrap
  import warnings
  import numpy
  import pandas
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.transforms
  from matplotlib.cbook import normalize_kwargs
  from matplotlib.colors import to_rgba
  from matplotlib.collections import LineCollection
  from ._base import VectorPlotter
  from ._statistics import ECDF, Histogram, KDE
  from ._stats.counting import Hist
  from .axisgrid import FacetGrid, _facet_docs
  from .utils import remove_na, _get_transform_functions, _kde_support, _check_argument, _assign_default_kwargs, _default_color
  from .palettes import color_palette
  from .external import husl
  from .external.kde import gaussian_kde
  from ._docstrings import DocstringComponents, _core_docs
label_desc: Use image node_id 6 for calling the _DistributionPlotter obj's underlying member method code with example usage: obj._artist_kws(kws, fill, element, multiple, color, alpha) and returns: kws