8000 Updating tests · matplotlib/matplotlib@7b8c5e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b8c5e1

Browse files
committed
Updating tests
1 parent 109aadc commit 7b8c5e1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ def auto_scale_lim(self, bbox3d, had_data=False):
624624
if not had_data:
625625
self._xy_dataLim_set = True
626626
self._zz_dataLim_set = True
627+
self.autoscale_view()
627628

628629

629630
def autoscale_view(self, tight=None,

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,9 @@ def test_line3dCollection_autoscaling():
11111111

11121112
lc = art3d.Line3DCollection(lines)
11131113
ax.add_collection3d(lc)
1114-
assert np.allclose(ax.get_xlim3d(), (-0.041666666666666664, 2.0416666666666665))
1114+
assert np.allclose(ax.get_xlim3d(), (-0.020833333333333332, 1.0208333333333333))
11151115
assert np.allclose(ax.get_ylim3d(), (-0.08333333333333333, 4.083333333333333))
1116-
assert np.allclose(ax.get_zlim3d(), (-0.10416666666666666, 5.104166666666667))
1116+
assert np.allclose(ax.get_zlim3d(), (-0.020833333333333332, 1.0208333333333333))
11171117

11181118

11191119
def test_poly3dCollection_autoscaling():
@@ -1124,7 +1124,7 @@ def test_poly3dCollection_autoscaling():
11241124
ax.add_collection3d(col)
11251125
assert np.allclose(ax.get_xlim3d(), (-0.020833333333333332, 1.0208333333333333))
11261126
assert np.allclose(ax.get_ylim3d(), (-0.020833333333333332, 1.0208333333333333))
1127-
assert np.allclose(ax.get_zlim3d(), (-0.0833333333333333, 4.083333333333333))
1127+
assert np.allclose(ax.get_zlim3d(), (-0.020833333333333332, 1.0208333333333333))
11281128

11291129

11301130
@mpl3d_image_comparison(['axes3d_labelpad.png'],

0 commit comments

Comments
 (0)
0