Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pop, don't get plotter args #149

Merged
merged 1 commit into from
Aug 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,14 +972,16 @@ def animate_nodal_solution(
progress_bar=True,
**kwargs,
):
"""Animate nodal solution. Assumes nodal solution is a
displacement array from a modal or static solution.
"""Animate nodal solution.

Assumes nodal solution is a displacement array from a modal or static
solution.

rnum : int or list
Cumulative result number with zero based indexing, or a
list containing (step, substep) of the requested result.

comp : str, optional
comp : str, default: "norm"
Scalar component to display. Options are ``'x'``,
``'y'``, ``'z'``, and ``'norm'``, and ``None``.

Expand Down Expand Up @@ -1017,12 +1019,12 @@ def animate_nodal_solution(
``"gif"``. See ``imagio.get_writer``. A single loop of
the mode will be recorded.

progress_bar : bool, optional
progress_bar : bool, default: True
Displays a progress bar when generating a movie while
``off_screen=True``. Default is ``True``.
``off_screen=True``.

kwargs : optional keyword arguments, optional
See ``help(pyvista.Plot)`` for additional keyword arguments.
kwargs : optional keyword arguments
See :func:`pyvista.plot` for additional keyword arguments.

Examples
--------
Expand All @@ -1043,6 +1045,10 @@ def animate_nodal_solution(

>>> rst.animate_nodal_solution(0, movie_filename='disp.mp4', off_screen=True)

Disable plotting within the notebook.

>>> rst.animate_nodal_solution(0, notebook=False)

"""
if "nangles" in kwargs: # pragma: no cover
n_frames = kwargs.pop("nangles")
Expand Down Expand Up @@ -2902,7 +2908,7 @@ def _plot_point_scalars(
``off_screen=True``. Default is ``True``.

kwargs : keyword arguments
Additional keyword arguments. See ``help(pyvista.plot)``
Additional keyword arguments.

Returns
-------
Expand Down Expand Up @@ -2973,10 +2979,10 @@ def _plot_point_scalars(

return_cpos = kwargs.pop("return_cpos", False)
cmap = kwargs.pop("cmap", "viridis")
window_size = kwargs.get("window_size")
full_screen = kwargs.get("full_screen")
notebook = kwargs.get("notebook")
off_screen = kwargs.pop("off_screen", pv.OFF_SCREEN)
window_size = kwargs.pop("window_size", None)
full_screen = kwargs.pop("full_screen", None)
notebook = kwargs.pop("notebook", None)
off_screen = kwargs.pop("off_screen", None)
cpos = kwargs.pop("cpos", None)
screenshot = kwargs.pop("screenshot", None)
interactive = kwargs.pop("interactive", True)
Expand Down