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

Method from_bounds

lib/matplotlib/transforms.py:820–826  ·  view source on GitHub ↗

Create a new `Bbox` from *x0*, *y0*, *width* and *height*. *width* and *height* may be negative.

(x0, y0, width, height)

Source from the content-addressed store, hash-verified

818
819 @staticmethod
820 def from_bounds(x0, y0, width, height):
821 """
822 Create a new `Bbox` from *x0*, *y0*, *width* and *height*.
823
824 *width* and *height* may be negative.
825 """
826 return Bbox.from_extents(x0, y0, x0 + width, y0 + height)
827
828 @staticmethod
829 def from_extents(*args, minpos=None):

Callers 15

__call__Method · 0.80
get_bboxMethod · 0.80
get_bboxMethod · 0.80
_locateMethod · 0.80
_locateFunction · 0.80
_locateMethod · 0.80
_locateMethod · 0.80
_update_connectorsMethod · 0.80
_get_layoutMethod · 0.80
get_window_extentMethod · 0.80
_findoffsetMethod · 0.80
set_bbox_to_anchorMethod · 0.80

Calls 1

from_extentsMethod · 0.80

Tested by 5

test_normal_axesFunction · 0.64
test_nodecoratorFunction · 0.64
test_displaced_spineFunction · 0.64
test_tickdirsFunction · 0.64
test_minor_accountedforFunction · 0.64