MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _process_args

Method _process_args

lib/matplotlib/tri/_tricontour.py:31–51  ·  view source on GitHub ↗

Process args and kwargs.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

29 super().__init__(ax, *args, **kwargs)
30
31 def _process_args(self, *args, **kwargs):
32 """
33 Process args and kwargs.
34 """
35 if isinstance(args[0], TriContourSet):
36 C = args[0]._contour_generator
37 if self.levels is None:
38 self.levels = args[0].levels
39 self.zmin = args[0].zmin
40 self.zmax = args[0].zmax
41 self._mins = args[0]._mins
42 self._maxs = args[0]._maxs
43 else:
44 from matplotlib import _tri
45 tri, z = self._contour_args(args, kwargs)
46 C = _tri.TriContourGenerator(tri.get_cpp_triangulation(), z)
47 self._mins = [tri.x.min(), tri.y.min()]
48 self._maxs = [tri.x.max(), tri.y.max()]
49
50 self._contour_generator = C
51 return kwargs
52
53 def _contour_args(self, args, kwargs):
54 tri, args, kwargs = Triangulation.get_from_args_and_kwargs(*args,

Callers

nothing calls this directly

Calls 4

_contour_argsMethod · 0.95
get_cpp_triangulationMethod · 0.80
minMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected