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

Method from_extents

lib/matplotlib/transforms.py:829–847  ·  view source on GitHub ↗

Create a new Bbox from *left*, *bottom*, *right* and *top*. The *y*-axis increases upwards. Parameters ---------- left, bottom, right, top : float The four extents of the bounding box. minpos : float or None If this is suppli

(*args, minpos=None)

Source from the content-addressed store, hash-verified

827
828 @staticmethod
829 def from_extents(*args, minpos=None):
830 """
831 Create a new Bbox from *left*, *bottom*, *right* and *top*.
832
833 The *y*-axis increases upwards.
834
835 Parameters
836 ----------
837 left, bottom, right, top : float
838 The four extents of the bounding box.
839 minpos : float or None
840 If this is supplied, the Bbox will have a minimum positive value
841 set. This is useful when dealing with logarithmic scales and other
842 scales where negative bounds result in floating point errors.
843 """
844 bbox = Bbox(np.asarray(args, dtype=float).reshape((2, 2)))
845 if minpos is not None:
846 bbox._minpos[:] = minpos
847 return bbox
848
849 def __format__(self, fmt):
850 return (

Callers 15

update_limMethod · 0.80
update_limMethod · 0.80
__init__Method · 0.80
__call__Method · 0.80
get_grid_infoMethod · 0.80
test_fill_facecolorFunction · 0.80
_make_imageMethod · 0.80
get_window_extentMethod · 0.80
reposition_colorbarFunction · 0.80

Calls 1

BboxClass · 0.85

Tested by 4

test_fill_facecolorFunction · 0.64
test_table_bboxFunction · 0.64