Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to render plot into html or image #8

Open
giomf opened this issue Sep 1, 2024 · 3 comments
Open

Add feature to render plot into html or image #8

giomf opened this issue Sep 1, 2024 · 3 comments

Comments

@giomf
Copy link

giomf commented Sep 1, 2024

It would be helpful if it were possible to render a plot in html or an image format directly in Plotlars as it is currently possible in plotly.

As a workaround Im using this code:

use plotly::Plot as PlotlyPlot;
let mut plot = PlotlyPlot::new();
plot.set_layout(lineplot.get_layout().clone());
plot.add_traces(lineplot.get_traces().clone());
plot.write_html("./data.html");
@alceal
Copy link
Owner

alceal commented Sep 1, 2024

Thank you for comment. I've just added the chance to write into html. The other option will be added in a future version.

@giomf
Copy link
Author

giomf commented Sep 1, 2024

Ah I was just about to open a pull request. I will check it out. Thanks!

@alceal
Copy link
Owner

alceal commented Nov 9, 2024

plotly/plotly.rs#241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants