# How to replace the current plot in the same browser tab?

**URL:** https://discourse.julialang.org/t/how-to-replace-the-current-plot-in-the-same-browser-tab/6757
**Category:** Visualization
**Created:** [October 29, 2017, 6:53pm UTC](https://discourse.julialang.org/t/how-to-replace-the-current-plot-in-the-same-browser-tab/6757 "2017-10-29T18:53:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://discourse.julialang.org/u/turtle)
#### Post date: [October 29, 2017, 6:53pm UTC](https://discourse.julialang.org/t/how-to-replace-the-current-plot-in-the-same-browser-tab/6757/1 "2017-10-29T18:53:09Z")

</div>

With `Plots + Plotly` each new plot is created in a new browser tab.  
Is it possible to replace the current plot in the same tab?

---

<div class="post-metadata">

### Author: ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)
#### Post date: [October 30, 2017, 7:20am UTC](https://discourse.julialang.org/t/how-to-replace-the-current-plot-in-the-same-browser-tab/6757/2 "2017-10-30T07:20:08Z")

</div>

Not that I know of, but there are lots of other backends that have a smoother way of showing the plots than saving an image and asking the browser to open it. You could try PlotlyJS, which plots to an electron window (or your IDE’s plot pane or your jupyter notebook, if you work in those environments).

---

<div class="post-metadata">

### Author: ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://discourse.julialang.org/u/turtle)
#### Post date: [October 30, 2017, 9:02am UTC](https://discourse.julialang.org/t/how-to-replace-the-current-plot-in-the-same-browser-tab/6757/3 "2017-10-30T09:02:17Z")

</div>

Thank you for your suggestion.

Actually I arrived at the simplest `Plots+Plotly` solution only  
because it works, while the installation of my preferred backends  
(`Pyplot` and `PlotlyJS`) now fails for Windows users.

(I think it is due to some `Conda` problem that is solved for OSX users.)
