Plotly.jl icon indicating copy to clipboard operation
Plotly.jl copied to clipboard

[discussion] combining with Plotly&PlotlyJS

Open mmikhasenko opened this issue 2 years ago • 6 comments

Thank you so much for the package. I just posted my plotly figure online, finally, after several days of struggling. The posting functionality was very hard to find since I started from plotlyjs.

Is there a reason to keep the package separate from plotlyjs? Interestingly the plotting script that I wrote with using PlotlyJS just worked once I replaced the input using Plotly

mmikhasenko avatar Sep 27 '21 08:09 mmikhasenko

Hi there!

Many folks are very concerned about data privacy and would be very concerned if the code that does the plotting and the code that does the uploading to the cloud were in the same package, so we keep them separate :)

nicolaskruchten avatar Sep 27 '21 12:09 nicolaskruchten

Thanks @nicolaskruchten -- that's right!

The Plotly.jl package (this one!) imports and reexports everything from PlotlyJS and then adds just the post functionality to interact with the chart studio servers.

There are no additional plot creating methods here -- all of that lives in PlotlyJS

sglyon avatar Sep 27 '21 13:09 sglyon

Now it is getting clear for me, thanks a lot for the clarification. Could it be added to the documentation? From the outside, it looked to me that PlotlyJS is the newer version of Plotly and the latter is getting unmaintained (build:error)

mmikhasenko avatar Sep 27 '21 14:09 mmikhasenko

Also, concerning the documentation of the Plotly.jl. I did not get what the end_point is good for. I did not need it to post a plot (sorry for the ignorance). A sentence of the use case in the doc would help

mmikhasenko avatar Sep 27 '21 14:09 mmikhasenko

One more edition to README.md. I just figured out how to post Plots.jl plot:

using Plots
import Plotly: post, signin
#
plotlyjs()
p = plot(rand(10))
plt_o = Plots.plotlyjs_syncplot(p) # that is what I was looking for
signin("...","...")
remote_plot = post(plt_o)

If you post it somewhere, you save someone a lot of time

mmikhasenko avatar Oct 12 '21 15:10 mmikhasenko

Just created #63 . It would close this issue

mmikhasenko avatar Oct 15 '21 14:10 mmikhasenko