From 201c5a439090d3742785670f8e0a34c8759e2331 Mon Sep 17 00:00:00 2001 From: James Derrick Date: Tue, 8 Jun 2021 23:22:56 +0100 Subject: [PATCH] fps now passed on and note added to docstring (#37) * fps now passed on and note added to docstring * add matplotlib to build requirements Co-authored-by: Alex Kaszynski --- ansys/mapdl/reader/rst.py | 6 ++++-- requirements_build.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ansys/mapdl/reader/rst.py b/ansys/mapdl/reader/rst.py index d4154fe1..8e9664b8 100644 --- a/ansys/mapdl/reader/rst.py +++ b/ansys/mapdl/reader/rst.py @@ -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. @@ -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: diff --git a/requirements_build.txt b/requirements_build.txt index deab978d..e9c13865 100644 --- a/requirements_build.txt +++ b/requirements_build.txt @@ -2,3 +2,4 @@ setuptools>=41.0.0 wheel>=0.33.0 numpy<1.20.0 cython==0.29.21 +matplotlib