Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/06-plotting/00-basic_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
screenshot="model_plot.png",
title="Model",
text="Model plot off",
parallel_projection=True
)

# Notes:
Expand Down
2 changes: 2 additions & 0 deletions src/ansys/dpf/core/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down