Skip to content

Commit f12e515

Browse files
feat: allow for multi_colors argument in plotting options (#118)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent d87f747 commit f12e515

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/changelog.d/118.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: allow for multi_colors argument in plotting options

src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def set_add_mesh_defaults(self, plotting_options: Optional[Dict]) -> None:
343343
# This method should only be applied in 3D objects (bodies and components)
344344
if "smooth_shading" not in plotting_options:
345345
plotting_options.setdefault("smooth_shading", True)
346-
if "color" not in plotting_options:
346+
if all(entry not in plotting_options for entry in ["color", "multi_colors"]):
347347
plotting_options.setdefault("color", Color.DEFAULT.value)
348348

349349
@property

0 commit comments

Comments
 (0)