ResultDisplayOptions#
- class ansys.result_explorer.core.ResultDisplayOptions(result: str | None = None, set_id: int | None = None, component_index: int | None = None, deformation_scale: float | None = None, legend_range: tuple[float, float] | None = None, use_global_min_max: bool | None = None, _viewport_id: str | None = None, _client: Client | None = None, _viewport=None)#
Result-specific display options for plot viewports.
These are sent to the application via the
UpdateViewportRequest.display_optionsfield. Changes to properties on this object auto-commit to the application.- Parameters:
- result
str,optional Result name to display.
- set_id
int,optional Actual set ID (from
TimeFrequency.set_id), not an index.- component_index
int,optional Component index for the result.
- deformation_scale
float,optional Deformation scale factor.
- legend_range
tupleoffloat,optional Custom legend range as
(min, max).- use_global_min_maxbool,
optional Whether to use the global min/max for the legend range.
- result
Examples
>>> from ansys.result_explorer.core import ResultDisplayOptions >>> opts = ResultDisplayOptions(component_index=2, deformation_scale=3.0)
Methods