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

Method _set_converter

lib/matplotlib/axis.py:1986–2000  ·  view source on GitHub ↗
(self, converter)

Source from the content-addressed store, hash-verified

1984 self._converter_is_explicit = True
1985
1986 def _set_converter(self, converter):
1987 if self._converter is converter or self._converter == converter:
1988 return
1989 if self._converter_is_explicit:
1990 raise RuntimeError("Axis already has an explicit converter set")
1991 elif (
1992 self._converter is not None and
1993 not isinstance(converter, type(self._converter)) and
1994 not isinstance(self._converter, type(converter))
1995 ):
1996 _api.warn_external(
1997 "This axis already has a converter set and "
1998 "is updating to a potentially incompatible converter"
1999 )
2000 self._converter = converter
2001
2002 def set_units(self, u):
2003 """

Callers 4

update_unitsMethod · 0.95
convert_unitsMethod · 0.95
set_converterMethod · 0.95
apply_callbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected