class_docstr: Mapping that sets artist colors according to data values.
class_docstr_tok: ["Mapping","that","sets","artist","colors","according","to","data","values","."]
docstr: Determine how to implement the mapping.
docstr_tok: ["Determine","how","to","implement","the","mapping","."]
code: def infer_map_type(self, palette, norm, input_format, var_type):
      """Determine how to implement the mapping."""
      if palette in QUAL_PALETTES:
          map_type = "categorical"
      elif norm is not None:
          map_type = "numeric"
      elif isinstance(palette, (dict, list)):
          map_type = "categorical"
      elif input_format == "wide":
          map_type = "categorical"
      else:
          map_type = var_type
  
      return map_type
  
imports: from __future__ import annotations
  import warnings
  import itertools
  from copy import copy
  from collections import UserString
  from collections.abc import Iterable, Sequence, Mapping
  from numbers import Number
  from datetime import datetime
  import numpy
  import pandas
  import matplotlib
  from seaborn._core.data import PlotData
  from seaborn.palettes import QUAL_PALETTES, color_palette
  from seaborn.utils import _check_argument, _version_predates, desaturate, locator_to_legend_entries, get_color_cycle, remove_na
label_desc: Use image node_id 3 for calling the HueMapping obj's underlying member method code with example usage: obj.infer_map_type(palette, norm, input_format, var_type) and returns: map_type