Skip to content

Commit

Permalink
pop, don't get plotter args (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski authored Aug 4, 2022
1 parent 819de66 commit 5cb52a8
Showing 1 changed file with 18 additions and 12 deletions.
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

0 comments on commit 5cb52a8

Please sign in to comment.