-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support for raster graphics #332
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
Comments
As far as I can tell, this would be fairly straightforward as far as the actual graphics part goes. The interface and having things play nicely with axes, ranges etc. might be trickier just because of the structure and codepaths that exist as of now. Adding a canvas layer for images or raw raster data would be a fairly efficient draw provided the data doesn't require much processing, but I can't really think of any intensive processing that would slow down a draw. |
Seems like this would be a great way to make geographic contour maps like this too:
Plotly user But they would be unpractically slow to load for most users compared to the PlanetOS ones. It would be awesome to provide fast, interactive weather maps to Plotly's users, but I don't know whether this or the |
Not sure if things like ⬆️ fit in best with a raster type - they're much more applicable as contours/heatmaps in my mind. For raster data however (that is, values consistent/regular in their distribution across a width and height) we should be able to handle up to ~4 megapixels before it becomes too slow. http://jsbin.com/vuzipisema/1/edit?js,output You can safely increase the width/height on that to 2000 and 2000 before it starts to be really slow. |
Yes as both of you guys say a contour plot would be a first candidate. |
I see "raster image support coming up soon" referenced in the current code. Wondering how soon and how to contribute. I need a transparent background image for a heatmap plot. Have been hacking the SVG output to insert an image layer, see |
The raster type will likely be used more for raw raster data rather than images - you can add images however using |
I just wanted to plug my use-case for visualizing matrices as raster plots. I do audio DSP research using Jupyter and spend a lot of time looking at spectrograms like this: I've been using |
I think this can be closed now? Thanks to |
I'm still hoping for support for raw raster data, e.g. if I have a 2D matrix of floats I want to visualize them as a colorscaled grid with axes. Most of my data are not huge (~1000x1000) but visualizing them as a heatmap slows down my notebooks quite a bit. Is there a better way to do this? (using the javascript API) |
@ssfr have you tried using |
@jackparmer strangely the GL versions seems to perform about the same, maybe worse. I'm going to a little digging to see where the issues are. |
Thanks @ssfrr . If you have a link to a chart (both an SVG and GL version), that would help to debug. Here's a link to a GL audio spectrogram for example: https://plot.ly/~PythonPlotBot/829 |
To support something like
annotation_raster()
in our R package, which would lead to awesomeness such as conversion of ggmap (people have been asking for this for a long time), I need support for displaying a matrix of arbitrary color codes. Using a heatmap seems out of the question since we can't generate a sensible colorscale, and drawing a marker for each cell seems inefficient. Any thoughts on how to approach this?The text was updated successfully, but these errors were encountered: