Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Result._plot_point_scalars: Use argument return_cpos in any case and …
…fix screenshot function on Windows OS (#73) * Result._plot_point_scalars: Use argument return_cpos in any case ... before, it was used only, when `if animate`. Now, it used in any case of the call `plotter.show`. * Result._plot_point_scalars: fix screenshot function on Windows OS pyvista\plotting\plotting.py:4882: On Windows OS "in the event that the user hits the exit-button on the GUI then it must be finalized and deleted as accessing it will kill the kernel... proper screenshots cannot be saved if this happens" Therefore, when you used ´_plot_point_scalars(..., screenshot=...)´, you got at ansys\mapdl\reader\rst.py:2830: ´RuntimeError: This plotter is closed and unable to save a screenshot.´ The only solution is, to pass the ´screenshot´ argument to ´plotter.show´ as done in this patch. * Result._plot_point_scalars: future-safe pyvista version check ... the old version would break with version 1.0.0. I used the same compare operation as in <https://github.com/rbarrois/python-semanticversion/blob/master/semantic_version/base.py> tested manually.
- Loading branch information