-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SVG Heatmaps #4149
Comments
Thanks @zbjornson. I guess you mean rendering each brick as a separate solid-color rectangle? This could be an interesting mode to have available, but we wouldn't want it to always turn to SVG when @etpinard what do you think, another |
Yes, this. :) Thanks for the prompt reply. I didn't realize there are possibly issues with aligning SVG shapes, good to know. |
The problem is not with aligning them, it's that antialiasing can produce subpixel artifacts (can look like gaps or overdrawing, depending on the circumstance) even on perfectly-aligned shapes. Normally the solution to this is to disable antialiasing ( |
I wanted a heatmap with a clearly visible grid. But enabling gaps between the tiles produces antialiasing artifacts, and the resulting grid doesn't look publication-ready, unfortunately. I guess "rects" mode for the heatmap trace would have solved that. @zbjornson Can you publish your patch, please? That would be really helpful, at least for me! |
An additional consideration why "rects" would be very useful: it's not possible to edit the pixel-based heatmap. E.g. if we want to manually introduce bigger gaps between the groups of X or Y axis categories in AdobeIllustrator. |
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson |
Currently the color brick area of heatmaps is rendered using
data:
URLs. This makes it harder to produce high-quality exported images (especially for print) unless you're careful with how the image is resampled after exporting (difficult to do given that it's a PNG embedded in an SVG).Would you consider using SVG instead, at least for
zsmooth=false
?I made a quick patch to try this out. With a 50 x 200 brick heatmap, performance seems pretty close. I could turn this into a PR if it would be accepted.
The text was updated successfully, but these errors were encountered: