Skip to content

Commit 7497579

Browse files
Merge branch 'feat/plotly' of https://github.com/ansys/ansys-tools-visualization-interface into feat/plotly
2 parents 2e5fdc9 + 9d0d1c3 commit 7497579

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/changelog.d/378.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Feat: Add Plotly as backend

src/ansys/tools/visualization_interface/backends/plotly/plotly_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ def show(self,
142142
if plottable_object is not None:
143143
self.plot(plottable_object)
144144

145+
145146
# Only show in browser if no screenshot is being taken
146147
if not screenshot:
147148
self._fig.show(**kwargs)
148149

150+
149151
if screenshot:
150152
screenshot_str = str(screenshot)
151153
if screenshot_str.endswith('.html'):

0 commit comments

Comments
 (0)