Skip to content
Draft
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 doc/changelog.d/1345.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Doc: change example default colors
4 changes: 3 additions & 1 deletion examples/gallery/05_pcb_stacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
import tempfile

import ansys.meshing.prime as prime
from ansys.meshing.prime.graphics import PrimePlotter
from ansys.meshing.prime.graphics.plotter import ColorByType, PrimePlotter

prime_client = prime.launch_prime()
model = prime_client.model
Expand Down Expand Up @@ -92,6 +92,7 @@

display = PrimePlotter()
display.plot(model)
display.set_color_by_type(ColorByType.CONNECTIVITY)
display.show()

sizing_params = prime.GlobalSizingParams(model=model, min=0.5, max=1.0)
Expand Down Expand Up @@ -170,6 +171,7 @@

display = PrimePlotter()
display.plot(model, update=True)
display.set_color_by_type(ColorByType.CONNECTIVITY)
display.show()

###############################################################################
Expand Down
4 changes: 3 additions & 1 deletion examples/gallery_beta/11_solder_ball.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
import tempfile

import ansys.meshing.prime as prime
from ansys.meshing.prime.graphics import PrimePlotter
from ansys.meshing.prime.graphics.plotter import ColorByType, PrimePlotter

###############################################################################
# Launch Ansys Prime Server
Expand Down Expand Up @@ -124,6 +124,7 @@
display.plot(
model, scope=prime.ScopeDefinition(model=model, label_expression="solder_cyl*,pad*,layer*")
)
display.set_color_by_type(ColorByType.CONNECTIVITY)
display.show()

###############################################################################
Expand Down Expand Up @@ -168,6 +169,7 @@

display = PrimePlotter()
display.plot(model, update=True)
display.set_color_by_type(ColorByType.CONNECTIVITY)
display.show()

###############################################################################
Expand Down
Loading