# How to save plotly to png and is it possible to save to LaTex?

**URL:** https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509
**Category:** General Usage
**Tags:** plotting
**Created:** [January 18, 2020, 12:06am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509 "2020-01-18T00:06:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [January 18, 2020, 12:06am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/1 "2020-01-18T00:06:35Z")

</div>

How to save plotly to png and is it possible to save to LaTe?

Thank you.

---

<div class="post-metadata">

### Author: ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)
#### Post date: [January 18, 2020, 1:12am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/2 "2020-01-18T01:12:53Z")

</div>

Plotly generates javascript for interactive plots not static image like png.

Most simply, you can try this:

```julia
using Plots

plotly()

p = plot(sin)

savefig(p, "p") # generates p.html file.

```

and push the camera button in the hovering toolbar to save the plot as a .png image file.

There are several other ways to produce plotly plots using Julia:

- PlotlyJS.jl
- [Plotly julia graphing library in Julia](https://plot.ly/julia/)
- using PyCall; pl = pyimport(“plotly”)

---

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [January 18, 2020, 1:15am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/3 "2020-01-18T01:15:03Z")

</div>

> [@Sijun](#):
>
> using Plots plotly() p = plot(sin) savefig(p, “p”)

Unfortunately, it’s not png file

---

<div class="post-metadata">

### Author: ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)
#### Post date: [January 18, 2020, 1:16am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/4 "2020-01-18T01:16:05Z")

</div>

open up p.html file and push the camera button in the hovering toolbar to save the plot as a .png image file.

---

<div class="post-metadata">

### Author: ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)
#### Post date: [January 18, 2020, 1:16am UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/5 "2020-01-18T01:16:49Z")

</div>

Thank you.  
But I don’t know how to push the button from Julia. 🙂 It’s joke. :).  
I mean, how to save to png from Julia.

---

<div class="post-metadata">

### Author: ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)
#### Post date: [January 18, 2020, 3:14pm UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/7 "2020-01-18T15:14:11Z")

</div>

PlotlyJS’s [docs](http://spencerlyon.com/PlotlyJS.jl/manipulating_plots/#saving-figures) suggests to use the [ORCA.jl package](https://github.com/sglyon/ORCA.jl)

---

<div class="post-metadata">

### Author: ![Tsegev123](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tsegev123/32/30789_2.png) [@Tsegev123](https://discourse.julialang.org/u/Tsegev123)
#### Post date: [March 23, 2023, 3:03pm UTC](https://discourse.julialang.org/t/how-to-save-plotly-to-png-and-is-it-possible-to-save-to-latex/33509/8 "2023-03-23T15:03:20Z")

</div>

Hey,  
äter I downloaded the package all I need to do is to save fig ?
