Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2c1514

Browse files
committed
push fix code
1 parent 0e89377 commit e2c1514

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,10 @@ 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+
15711575
self.auto_scale_xyz(xs, ys, zs, had_data)
15721576
return lines
15731577

0 commit comments

Comments
 (0)