Skip to content

Commit a4e590a

Browse files
committed
use Plotly.purge in test-dashboard
1 parent d30bd1c commit a4e590a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devtools/test_dashboard/buttons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ function plotButtons(plots, figDir) {
3131
image.innerHTML = '';
3232
image.appendChild(myImage);
3333

34+
var currentGraphDiv = Tabs.getGraph();
35+
if(currentGraphDiv) Plotly.purge(currentGraphDiv);
36+
3437
gd = document.createElement('div');
3538
gd.id = 'graph';
3639

0 commit comments

Comments
 (0)