Skip to content

Commit 8ccf301

Browse files
fix: Bug in show function (#1255)
Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com>
1 parent 9491fd0 commit 8ccf301

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

doc/changelog.d/1255.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: Bug in `show` function

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
dependencies = [
2727
"ansys-api-geometry==0.4.4",
2828
"ansys-tools-path>=0.3,<1",
29-
"ansys-tools-visualization-interface>=0.2.1,<1",
29+
"ansys-tools-visualization-interface>=0.2.4,<1",
3030
"beartype>=0.11.0,<0.19",
3131
"grpcio>=1.35.0,<2",
3232
"grpcio-health-checking>=1.45.0,<2",
@@ -50,7 +50,7 @@ all = [
5050
tests = [
5151
"ansys-platform-instancemanagement==1.1.2",
5252
"ansys-tools-path==0.6.0",
53-
"ansys-tools-visualization-interface==0.2.3",
53+
"ansys-tools-visualization-interface==0.2.4",
5454
"beartype==0.18.5",
5555
"docker==7.1.0",
5656
"grpcio==1.64.1",
@@ -77,7 +77,7 @@ tests-minimal = [
7777
]
7878
doc = [
7979
"ansys-sphinx-theme[autoapi]==0.16.5",
80-
"ansys-tools-visualization-interface==0.2.3",
80+
"ansys-tools-visualization-interface==0.2.4",
8181
"beartype==0.18.5",
8282
"docker==7.1.0",
8383
"ipyvtklink==0.2.3",

src/ansys/geometry/core/plotting/plotter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,6 @@ def show(
389389
Keyword arguments for the plotter. Arguments depend of the backend implementation
390390
you are using.
391391
"""
392-
self._backend.show(object=plotting_object, screenshot=screenshot, **plotting_options)
392+
if plotting_object is not None:
393+
self.plot(plotting_object, **plotting_options)
394+
self._backend.show(screenshot=screenshot, **plotting_options)

0 commit comments

Comments
 (0)