MCPcopy
hub / github.com/matplotlib/matplotlib / _check_no_units

Method _check_no_units

lib/matplotlib/axes/_axes.py:914–919  ·  view source on GitHub ↗
(vals, names)

Source from the content-addressed store, hash-verified

912
913 @staticmethod
914 def _check_no_units(vals, names):
915 # Helper method to check that vals are not unitized
916 for val, name in zip(vals, names):
917 if not munits._is_natively_supported(val):
918 raise ValueError(f"{name} must be a single scalar value, "
919 f"but got {val}")
920
921 @_docstring.interpd
922 def axline(self, xy1, xy2=None, *, slope=None, **kwargs):

Callers 4

axhlineMethod · 0.95
axvlineMethod · 0.95
axhspanMethod · 0.95
axvspanMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected