plot
Plot
General class for plotting.
Attributes:
| Name | Type | Description |
|---|---|---|
plotter |
Plotter
|
PyVista plotter object. |
builders |
dict
|
Dictionary of object builders. |
visible_objects |
list
|
List of visible objects. |
actors |
dict
|
Dictionary of pyvista actors. |
actors = {}
instance-attribute
builders = {}
instance-attribute
plotter = pv.Plotter()
instance-attribute
visible_objects = []
instance-attribute
__init__()
Initialize the Plot object.
add_data(name, builder, **kwargs)
Add a new data object to the plot, along with its builder and configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
Name of the data object. |
required |
builder |
ObjectBuilder
|
Builder instance for the data object. |
required |
**kwargs |
Any
|
Optional keyword arguments for the mesh. |
{}
|
add_opacity_slider()
Add an opacity slider widget to the plotter for adjusting mesh opacity.
show()
Show the Plot window.
update_opacity(value)
Update the opacity of the phasefield mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value |
float
|
Opacity to update the phasefield mesh to. |
required |