MCPcopy
hub / github.com/matplotlib/matplotlib / auto_scale_xyz

Method auto_scale_xyz

lib/mpl_toolkits/mplot3d/axes3d.py:640–655  ·  view source on GitHub ↗
(self, X, Y, Z=None, had_data=None)

Source from the content-addressed store, hash-verified

638 self._request_autoscale_view("z", tight=tight)
639
640 def auto_scale_xyz(self, X, Y, Z=None, had_data=None):
641 # This updates the bounding boxes as to keep a record as to what the
642 # minimum sized rectangular volume holds the data.
643 X = self.xaxis._nan_out_of_scale_range(X)
644 Y = self.yaxis._nan_out_of_scale_range(Y)
645 if np.shape(X) == np.shape(Y):
646 self.xy_dataLim.update_from_data_xy(
647 np.column_stack([np.ravel(X), np.ravel(Y)]), not had_data)
648 else:
649 self.xy_dataLim.update_from_data_x(X, not had_data)
650 self.xy_dataLim.update_from_data_y(Y, not had_data)
651 if Z is not None:
652 Z = self.zaxis._nan_out_of_scale_range(Z)
653 self.zz_dataLim.update_from_data_x(Z, not had_data)
654 # Let autoscale_view figure out how to use this data.
655 self.autoscale_view()
656
657 def _autoscale_axis(self, axis, v0, v1, minpos, margin, set_bound, _tight):
658 """

Callers 15

plotMethod · 0.95
fill_betweenMethod · 0.95
plot_surfaceMethod · 0.95
plot_wireframeMethod · 0.95
plot_trisurfMethod · 0.95
contourMethod · 0.95
tricontourMethod · 0.95
_auto_scale_contourfMethod · 0.95
add_collection3dMethod · 0.95
scatterMethod · 0.95
barMethod · 0.95
bar3dMethod · 0.95

Calls 6

autoscale_viewMethod · 0.95
update_from_data_xyMethod · 0.80
update_from_data_xMethod · 0.80
update_from_data_yMethod · 0.80
shapeMethod · 0.45

Tested by

no test coverage detected