Set the *z* position and direction of the line. Parameters ---------- zs : float or array of floats The location along the *zdir* axis in 3D space to position the line. zdir : {'x', 'y', 'z'} Plane to plot line orthogonal
(self, zs=0, zdir='z', axlim_clip=False)
| 292 | self._axlim_clip = axlim_clip |
| 293 | |
| 294 | def set_3d_properties(self, zs=0, zdir='z', axlim_clip=False): |
| 295 | """ |
| 296 | Set the *z* position and direction of the line. |
| 297 | |
| 298 | Parameters |
| 299 | ---------- |
| 300 | zs : float or array of floats |
| 301 | The location along the *zdir* axis in 3D space to position the |
| 302 | line. |
| 303 | zdir : {'x', 'y', 'z'} |
| 304 | Plane to plot line orthogonal to. Default: 'z'. |
| 305 | See `.get_dir_vector` for a description of the values. |
| 306 | axlim_clip : bool, default: False |
| 307 | Whether to hide lines with an endpoint outside the axes view limits. |
| 308 | |
| 309 | .. versionadded:: 3.10 |
| 310 | """ |
| 311 | xs = self.get_xdata() |
| 312 | ys = self.get_ydata() |
| 313 | zs = cbook._to_unmasked_float_array(zs).ravel() |
| 314 | zs = np.broadcast_to(zs, len(xs)) |
| 315 | self._verts3d = juggle_axes(xs, ys, zs, zdir) |
| 316 | self._axlim_clip = axlim_clip |
| 317 | self.stale = True |
| 318 | |
| 319 | def set_data_3d(self, *args): |
| 320 | """ |
nothing calls this directly
no test coverage detected