@@ -643,6 +643,7 @@ def plot(
643643 screenshot : str | None = None ,
644644 use_trame : bool | None = None ,
645645 use_service_colors : bool | None = None ,
646+ show_options : dict | None = {},
646647 ** plotting_options : dict | None ,
647648 ) -> None :
648649 """Plot the body.
@@ -664,6 +665,8 @@ def plot(
664665 Whether to use the colors assigned to the body in the service. The default
665666 is ``None``, in which case the ``ansys.geometry.core.USE_SERVICE_COLORS``
666667 global setting is used.
668+ show_options : dict, default: {}
669+ Keyword arguments for the show method of the plotter.
667670 **plotting_options : dict, default: None
668671 Keyword arguments for plotting. For allowable keyword arguments, see the
669672 :meth:`Plotter.add_mesh <pyvista.Plotter.add_mesh>` method.
@@ -1281,6 +1284,7 @@ def plot( # noqa: D102
12811284 screenshot : str | None = None ,
12821285 use_trame : bool | None = None ,
12831286 use_service_colors : bool | None = None ,
1287+ show_options : dict | None = {},
12841288 ** plotting_options : dict | None ,
12851289 ) -> None :
12861290 raise NotImplementedError (
@@ -1743,6 +1747,7 @@ def plot( # noqa: D102
17431747 screenshot : str | None = None ,
17441748 use_trame : bool | None = None ,
17451749 use_service_colors : bool | None = None ,
1750+ show_options : dict | None = {},
17461751 ** plotting_options : dict | None ,
17471752 ) -> None :
17481753 # lazy import here to improve initial module load time
@@ -1774,7 +1779,7 @@ def plot( # noqa: D102
17741779 )
17751780 pl = GeometryPlotter (use_trame = use_trame , use_service_colors = use_service_colors )
17761781 pl .plot (mesh_object , ** plotting_options )
1777- pl .show (screenshot = screenshot , ** plotting_options )
1782+ pl .show (screenshot = screenshot , ** show_options )
17781783
17791784 def intersect (self , other : Union ["Body" , Iterable ["Body" ]], keep_other : bool = False ) -> None : # noqa: D102
17801785 if self ._template ._grpc_client .backend_version < __TEMPORARY_BOOL_OPS_FIX__ :
0 commit comments