Skip to content

Commit

Permalink
fps now passed on and note added to docstring (#37)
Browse files Browse the repository at this point in the history
* fps now passed on and note added to docstring

* add matplotlib to build requirements

Co-authored-by: Alex Kaszynski <[email protected]>
  • Loading branch information
jgd10 and akaszynski authored Jun 8, 2021
1 parent a636ab0 commit 201c5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,9 @@ def animate_nodal_solution_set(self, rnums=None, comp='norm',
fps : int, optional
Frames per second. Defaults to 20 and limited to hardware
capabilities and model density.
capabilities and model density. Carries over to movies
created by providing the ``movie_filename`` argument,
but *not* to gifs.
kwargs : optional keyword arguments, optional
See help(pyvista.Plot) for additional keyword arguments.
Expand Down Expand Up @@ -2834,7 +2836,7 @@ def _animate_point_scalars(self, scalars, grid=None,
if movie_filename.strip()[-3:] == 'gif':
plotter.open_gif(movie_filename)
else:
plotter.open_movie(movie_filename)
plotter.open_movie(movie_filename, framerate=fps)

# add table
if text is not None:
Expand Down
1 change: 1 addition & 0 deletions requirements_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ setuptools>=41.0.0
wheel>=0.33.0
numpy<1.20.0
cython==0.29.21
matplotlib

0 comments on commit 201c5a4

Please sign in to comment.