Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f66076 commit 94c6ca7Copy full SHA for 94c6ca7
lib/mpl_toolkits/mplot3d/art3d.py
@@ -179,14 +179,13 @@ def set_3d_properties(self, z=0, zdir='z', axlim_clip=False):
179
@artist.allow_rasterization
180
def draw(self, renderer):
181
if self._axlim_clip:
182
- xs, ys, zs = _viewlim_mask(self._x, self._y, self._z, self.axes)
183
- position3d = np.ma.row_stack((xs, ys, zs)).ravel().filled(np.nan)
+ mask = _viewlim_mask(self._x, self._y, self._z, self.axes)
+ pos3d = np.ma.array((self._x, self._y, self._z),
184
+ dtype=float, mask=mask).filled(np.nan)
185
else:
- xs, ys, zs = self._x, self._y, self._z
186
- position3d = np.asanyarray([xs, ys, zs])
+ pos3d = np.asanyarray([self._x, self._y, self._z])
187
188
- proj = proj3d._proj_trans_points(
189
- [position3d, position3d + self._dir_vec], self.axes.M)
+ proj = proj3d._proj_trans_points([pos3d, pos3d + self._dir_vec], self.axes.M)
190
dx = proj[0][1] - proj[0][0]
191
dy = proj[1][1] - proj[1][0]
192
angle = math.degrees(math.atan2(dy, dx))
0 commit comments