(self, X, Y, Z=None, had_data=None)
| 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 | """ |
no test coverage detected