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

Method containsx

lib/matplotlib/transforms.py:403–408  ·  view source on GitHub ↗

Return whether *x* is in the closed (:attr:`x0`, :attr:`x1`) interval.

(self, x)

Source from the content-addressed store, hash-verified

401 return (width > 0 or height > 0) and width < np.inf and height < np.inf
402
403 def containsx(self, x):
404 """
405 Return whether *x* is in the closed (:attr:`x0`, :attr:`x1`) interval.
406 """
407 x0, x1 = self.intervalx
408 return x0 <= x <= x1 or x0 >= x >= x1
409
410 def containsy(self, y):
411 """

Callers 1

containsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected