-
Notifications
You must be signed in to change notification settings - Fork 370
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
saving Vis images #335
Comments
Hi @deepikamittal, Thank you for your question! Currently, the save_as_html feature can only be called on the dataframe. The reason why we did this is that when it is called on the dataframe, we export all the visualizations into a presentable HTML. But when you have a single Vis, it is much easier to save the visualization directly into HTML, PNG, or whichever format you like. The easiest way to do this is by right-clicking on the figure and save the image as a PNG. Then using the code written in those libraries, you should be able to save in whichever format you like. Here is an example of how you can export your visualization to code. Let us know if this solves the problem for you. |
Hi @dorisjlee . Thank you for your response. |
Hi @deepikamittal, Thanks for clarifying the details. To convert to matplotlib code, you can do |
Hi @dorisjlee . Thank you for your response. It is working now. |
@dorisjlee - Also there is a difference in the visualizations created by lux and created by code through matplotlib. May be the scaling issue is there. Can you please help me on this. |
Hi @deepikamittal, Thanks for raising this issue. @caitlynachen will be taking a look at why the output code looks different from the code from the widget. In addition, based on your feedback that
followed by the setup instructions. |
Hi @dorisjlee . Thanks for the update. |
Hi @caitlynachen . Did you saw why the output visualization is different from the widget visualization. Please help me. |
Hi @deepikamittal, Could you specify the code that you ran and the dataset that you used to reproduce the |
Hi @dorisjlee , Please find attached the code. I am not able to attach the dataset. However, any dataset can e taken. |
Hi Doris Lee,
I am not able to attach the dataset and .py file on Github. Please find
attached the code and dataset..
Thanks
Deepika
…On Wed, Apr 28, 2021 at 6:45 PM Doris Lee ***@***.***> wrote:
Hi @deepikamittal <https://github.com/deepikamittal>, Could you specify
the code that you ran and the dataset that you used to reproduce the
unique error? This will help us debug the issue that you are looking at.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHA6EQYU6ZKBCMCYEJRTR3TLAC6HANCNFSM42EEMF7A>
.
|
Hi @dorisjlee, the images are saved at a particular path, however, integrating same thing on flask, i am not getting visualizations displayed on html. Is this some issue with lux or it a problem of html or flask. Please help me. |
Hi @deepikamittal, Thanks for attaching this info. It's a bit difficult to debug what went wrong, whether this is an issue with Lux or something that is an issue with Flask. Could you send me an email at dorisjunglinlee@gmail.com so that we hop on a call to debug this? I might be more help after understanding what your current setup is like and what might be causing the issue. |
Hi @deepikamittal, We're closing this for now, but please let us know if you run into any other issues! |
I am using lux library for visualizations.
I have a Vis object and want to save the image.
I tried using save_as_html but i am getting the following error:
'Vis' object has no attribute 'save_as_html'.
How can i save the image?
Below attached the screenshot of the code.
The text was updated successfully, but these errors were encountered: