class_docstr: Mixin to provide labelling capability to `.ContourSet`.
class_docstr_tok: ["Mixin","to","provide","labelling","capability","to","`",".ContourSet","`","."]
docstr: Return whether a contour is long enough to hold a label.
docstr_tok: ["Return","whether","a","contour","is","long","enough","to","hold","a","label","."]
code: def print_label(self, linecontour, labelwidth):
      """Return whether a contour is long enough to hold a label."""
      return len(linecontour) > 10 * labelwidth or (
          len(linecontour)
          and (np.ptp(linecontour, axis=0) > 1.2 * labelwidth).any()
      )
  
imports: from contextlib import ExitStack
  import functools
  import math
  from numbers import Integral
  import numpy
  from numpy import ma
  import matplotlib
  from matplotlib import _api, _docstring
  from matplotlib.backend_bases import MouseButton
  from matplotlib.lines import Line2D
  from matplotlib.path import Path
  from matplotlib.text import Text
  import matplotlib.ticker
  import matplotlib.cm
  import matplotlib.colors
  import matplotlib.collections
  import matplotlib.font_manager
  import matplotlib.cbook
  import matplotlib.patches
  import matplotlib.transforms
label_desc: Use image node_id 2 for calling the ContourLabeler obj's underlying member method code with example usage: obj.print_label(linecontour, labelwidth) and returns: unknown