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

Method get_datalim

lib/matplotlib/quiver.py:579–586  ·  view source on GitHub ↗
(self, transData)

Source from the content-addressed store, hash-verified

577 self._dpi_at_last_init = self.axes.get_figure(root=True).dpi
578
579 def get_datalim(self, transData):
580 trans = self.get_transform()
581 offset_trf = self.get_offset_transform()
582 full_transform = (trans - transData) + (offset_trf - transData)
583 XY = full_transform.transform(self.XY)
584 bbox = transforms.Bbox.null()
585 bbox.update_from_data_xy(XY, ignore=True)
586 return bbox
587
588 @martist.allow_rasterization
589 def draw(self, renderer):

Callers 10

hlinesMethod · 0.45
vlinesMethod · 0.45
test_relim_collectionFunction · 0.45
test_no_offsets_datalimFunction · 0.45
test_quiver_limitsFunction · 0.45
test_set_offsets_lateFunction · 0.45

Calls 5

get_offset_transformMethod · 0.80
nullMethod · 0.80
update_from_data_xyMethod · 0.80
get_transformMethod · 0.45
transformMethod · 0.45

Tested by 7

test_relim_collectionFunction · 0.36
test_no_offsets_datalimFunction · 0.36
test_quiver_limitsFunction · 0.36
test_set_offsets_lateFunction · 0.36