8000 cleaning up code · matplotlib/matplotlib@bfe5636 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfe5636

Browse files
committed
cleaning up code
1 parent c7c88ae commit bfe5636

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,10 +1568,7 @@ def plot(self, xs, ys, *args, **kwargs):
15681568
for line in lines:
15691569
art3d.line_2d_to_3d(line, zs=zs, zdir=zdir)
15701570

1571-
# when transform from 2d to 3d, dataset changes, update the dataset
1572-
# for setting axes bounds
1573-
(xs, ys, zs) = art3d.juggle_axes(xs, ys, zs, zdir)
1574-
1571+
xs, ys, zs = art3d.juggle_axes(xs, ys, zs, zdir)
15751572
self.auto_scale_xyz(xs, ys, zs, had_data)
15761573
return lines
15771574

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_scatter3d_color():
174174
ax.scatter(np.arange(10, 20), np.arange(10, 20), np.arange(10, 20),
175175
color='b', marker='s')
176176

177+
177178
@image_comparison(baseline_images=['plot_3d_from_2d'], remove_text=True,
178179
extensions=['png'])
179180
def test_plot_3d_from_2d():
@@ -183,6 +184,7 @@ def test_plot_3d_from_2d():
183184
ys = np.arange(5, 10)
184185
ax.plot(xs, ys, zs=0, zdir='x')
185186

187+
186188
@image_comparison(baseline_images=['surface3d'], remove_text=True)
187189
def test_surface3d():
188190
fig = plt.figure()

0 commit comments

Comments
 (0)
0