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

save plot as image #18

Open
rafaelmizrahi opened this issue Apr 19, 2022 · 3 comments
Open

save plot as image #18

rafaelmizrahi opened this issue Apr 19, 2022 · 3 comments

Comments

@rafaelmizrahi
Copy link

Hi, is it possible to save the plot as an image.
I could not find any clear example for that.
thanks.

@rafaelmizrahi
Copy link
Author

I see that the draw function returns a reference to a buffer.
I have successfully saved it as an image.
I managed so by changing view_ into public and mimicking part of the code inside Figure::show

please let me know your official answer of how to support saving plots as images.

@leovandriel
Copy link
Owner

Hi @rafaelmizrahi, thank you for opening an issue. I added Figure::drawFile in #27, which draws the figure on a Mat of given size and writes it as PNG. See FigureTest for an example. Is this what you were looking for?

@PRIZV0
Copy link

PRIZV0 commented Apr 17, 2023

Can we save the whole Window as image instead of single Figure?

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

3 participants