diff --git a/examples/00-mapdl-examples/pressure_vessel.py b/examples/00-mapdl-examples/pressure_vessel.py index e118bc33f0..fc8e05a6c3 100644 --- a/examples/00-mapdl-examples/pressure_vessel.py +++ b/examples/00-mapdl-examples/pressure_vessel.py @@ -53,7 +53,7 @@ # Generate a cylindrical volume by rotating an area pattern about an axis mapdl.vrotat(a_comb, pax1=6, arc=90) -mapdl.vplot(color="grey", background="w", show_area_numbering=True, cpos="zy") +mapdl.vplot(background="w") ############################################################################### diff --git a/src/ansys/mapdl/core/mapdl.py b/src/ansys/mapdl/core/mapdl.py index aa789cb64a..311556459b 100644 --- a/src/ansys/mapdl/core/mapdl.py +++ b/src/ansys/mapdl/core/mapdl.py @@ -1719,8 +1719,7 @@ def vplot( points = [] labels = [] - # kwargs.setdefault("return_plotter", True) - kwargs["return_plotter"] = True + return_plotter = kwargs.pop("return_plotter", False) color_areas = True for each_volu in volumes: @@ -1733,7 +1732,8 @@ def vplot( quality=quality, show_area_numbering=show_area_numbering, show_line_numbering=show_line_numbering, - show_lines=False, + show_lines=show_lines, + return_plotter=True, **kwargs, ) @@ -1749,7 +1749,9 @@ def vplot( self.cmsel("S", cm_name_area, "AREA", mute=True) self.cmsel("S", cm_name_volu, "VOLU", mute=True) - return general_plotter(meshes, points, labels, **kwargs) + return general_plotter( + meshes, points, labels, return_plotter=return_plotter, **kwargs + ) else: with self._enable_interactive_plotting(): diff --git a/src/ansys/mapdl/core/misc.py b/src/ansys/mapdl/core/misc.py index ff6a123269..5a6f165046 100644 --- a/src/ansys/mapdl/core/misc.py +++ b/src/ansys/mapdl/core/misc.py @@ -1157,7 +1157,11 @@ def wrapper(self, *args, **kwargs): orig_entity_sel_function(self, "all") plotting_function = getattr(self, plot_function) - pl = plotting_function(return_plotter=True) + if entity == "area": + # To overwrite the quality argument + pl = plotting_function(return_plotter=True, quality=1) + else: + pl = plotting_function(return_plotter=True) vmin = self._enable_picking_entities( entity, pl, type_, previous_picked_entities, **kwargs