PlottingOptions#
- class ansys.tools.visualization_interface.utils.plotting_options.PlottingOptions#
Structured representation of all plotting kwargs.
Calling
from_kwargs()splits a raw**kwargsdictionary into:Framework fields (
name_filter,clipping_plane) — consumed by the visualization framework and not forwarded to the renderer.extra — every remaining key, forwarded verbatim to the underlying rendering library (PyVista
add_mesh, PlotlyFigure.show, etc.).
- Parameters:
- name_filter
str,optional Regular expression with the desired name or names to include in the plotter. Objects whose
namedoes not match the expression are skipped.- clipping_plane
ClipPlane,optional Plane used to clip the mesh before adding it to the scene.
- extra
dict Renderer-specific options forwarded verbatim to the underlying library.
- name_filter
Overview#
Parse and consume all keys from kwargs. |
Import detail#
from ansys.tools.visualization_interface.utils.plotting_options import PlottingOptions
Attribute detail#
- PlottingOptions.clipping_plane: ansys.tools.visualization_interface.utils.clip_plane.ClipPlane | None = None#
Method detail#
- classmethod PlottingOptions.from_kwargs(kwargs: Dict) PlottingOptions#
Parse and consume all keys from kwargs.
Framework-specific keys (matching dataclass fields other than
extra) are mapped to their typed fields. All remaining keys are collected intoextra. The supplied kwargs dictionary is cleared in-place so that callers can safely inspect it afterwards and know it has been fully consumed.- Parameters:
- kwargs
dict Mutable keyword-argument dictionary to parse. All keys are removed in-place.
- kwargs
- Returns:
PlottingOptionsInstance populated from kwargs.