diff --git a/examples/06-plotting/00-basic_plotting.py b/examples/06-plotting/00-basic_plotting.py index c7063f109e..f979d8a5eb 100644 --- a/examples/06-plotting/00-basic_plotting.py +++ b/examples/06-plotting/00-basic_plotting.py @@ -23,6 +23,7 @@ screenshot="model_plot.png", title="Model", text="Model plot off", + parallel_projection=True ) # Notes: diff --git a/src/ansys/dpf/core/plotter.py b/src/ansys/dpf/core/plotter.py index f7383a71ad..a321588b1f 100644 --- a/src/ansys/dpf/core/plotter.py +++ b/src/ansys/dpf/core/plotter.py @@ -52,6 +52,8 @@ def __init__(self, **kwargs): kwargs_in = _sort_supported_kwargs(bound_method=pv.Plotter.__init__, **kwargs) # Initiate pyvista Plotter self._plotter = pv.Plotter(**kwargs_in) + if kwargs.pop("parallel_projection", False): + self._plotter.parallel_projection = True def add_scale_factor_legend(self, scale_factor, **kwargs): kwargs_in = _sort_supported_kwargs(bound_method=self._plotter.add_text, **kwargs)