From 05990d8c0e95aa48318c2e749e548f8afff40419 Mon Sep 17 00:00:00 2001 From: beroda <117822458+beroda@users.noreply.github.com> Date: Fri, 8 Dec 2023 22:58:03 +0100 Subject: [PATCH] Change camera orientation in docstrings --- pyvista/core/dataset.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyvista/core/dataset.py b/pyvista/core/dataset.py index 84c779da63..b34df89ed4 100644 --- a/pyvista/core/dataset.py +++ b/pyvista/core/dataset.py @@ -2868,7 +2868,7 @@ def cell_neighbors(self, ind: int, connections: str = "points") -> List[int]: >>> >>> for i, connection in enumerate(["points", "edges"]): ... pl.subplot(0, i) - ... pl.view_yx() + ... pl.view_xy() ... _ = pl.add_title( ... f"{connection.capitalize()} neighbors", ... color="red", @@ -2987,7 +2987,7 @@ def point_neighbors(self, ind: int) -> List[int]: ... text_color="red", ... font_size=40, ... ) - >>> pl.camera_position = "yx" + >>> pl.camera_position = "xy" >>> pl.camera.zoom(7.0) >>> pl.show() @@ -3068,7 +3068,7 @@ def point_neighbors_levels( ... ) ... >>> - >>> pl.view_yx() + >>> pl.view_xy() >>> pl.camera.zoom(4.0) >>> pl.show() """ @@ -3168,7 +3168,7 @@ def cell_neighbors_levels( >>> cells = mesh.extract_cells(other_ids, invert=True) >>> _ = pl.add_mesh(cells, color="white", show_edges=True) >>> - >>> pl.view_yx() + >>> pl.view_xy() >>> pl.camera.zoom(6.0) >>> pl.show() """