MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / is_unit

Method is_unit

site-packages/matplotlib/transforms.py:275–280  ·  view source on GitHub ↗

Returns True if the :class:`Bbox` is the unit bounding box from (0, 0) to (1, 1).

(self)

Source from the content-addressed store, hash-verified

273 return self.get_points()
274
275 def is_unit(self):
276 """
277 Returns True if the :class:`Bbox` is the unit bounding box
278 from (0, 0) to (1, 1).
279 """
280 return list(self.get_points().flatten()) == [0., 0., 1., 1.]
281
282 @property
283 def x0(self):

Callers

nothing calls this directly

Calls 2

get_pointsMethod · 0.95
flattenMethod · 0.80

Tested by

no test coverage detected