Skip to content

Commit

Permalink
Change camera orientation in docstrings (#5307)
Browse files Browse the repository at this point in the history
Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
  • Loading branch information
beroda and tkoyama010 committed Dec 11, 2023
1 parent 4c9519b commit 3c54651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyvista/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -3068,7 +3068,7 @@ def point_neighbors_levels(
... )
...
>>>
>>> pl.view_yx()
>>> pl.view_xy()
>>> pl.camera.zoom(4.0)
>>> pl.show()
"""
Expand Down Expand Up @@ -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()
"""
Expand Down

1 comment on commit 3c54651

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.