-
Notifications
You must be signed in to change notification settings - Fork 48
Add Image support 2 #274
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 Image support 2 #274
Conversation
I didn't get how to do documentation test. It seems Plotly documentation has moved to another repository. See here: https://github.com/plotly/documentation. Also, I can't find |
It seems there are some image examples in the plotly documentation, under But it seems images are added in the layout in these examples. Is it what you expected? The |
Just looked at layout/images as well. Looks like these are to display images from PNG using URL to that image. This is a bit different use-case than Traces/Image that I have added in this PR. The last one allows to draw a 2D image from pixels array on the plot. Think of MNIST dataset visualization where you have grey-scaled or RGB images as 2D matrix of integers (1 - 3). We can create such pixels array programmatically and draw any rasters. As for documentation path, I would expect some JS examples here: https://github.com/plotly/graphing-library-docs/tree/master/_posts/plotly_js/basic , but there is no basic/image :-( The only piece of documentation I have found on the subject is here: https://plotly.com/javascript/reference/image/ |
da47b81
to
49dd1fb
Compare
what else needs to be done to merge this PR? |
Sorry, meant to come back at this earlier... Just adding a simple non regression tests would be fine. Rather than relying on snippets from the plotly documentation, we could just write our own. A test could be added at the end of |
@alexarchambault just added such test. Please have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@novakov-alexey I squashed some commits manually, and pushed that directly to |
@alexarchambault perfect, thanks! |
I have created new PR, previous #271 was created from old fork state.
This issue is still relevant: #271 (comment)