Skip to content

gid="sth" get lost if rasterized=True is set in hexbin #2816

Closed as not planned

Description

@mjamroz

Fragment below will write id="element" into the svg

plt.hexbin(x,y, cmap=plt.cm.YlOrRd_r,gid="element")
plt.savefig("img.svg")

which is as we could expect, but

plt.hexbin(x,y, cmap=plt.cm.YlOrRd_r,gid="element",rasterized=True)
plt.savefig("img.svg")

results in <image tag with different id (something like id="image9f9a4ebdcc")

(i am submitting new issue as tcaswell@stackoverflow suggested

Activity

  1. added this to the v1.4.x milestone on Jul 12, 2014
  2. modified the milestones: v1.4.x, on Jan 13, 2015
  3. modified the milestones: , on Oct 3, 2017
  4. QuLogic commented on Apr 22, 2020

    @QuLogic
    Member

    The gid is added to something, a group that appears to contain one path definition and a lot of clip path groups. There doesn't seem to be anything in that group, so it seems to be wasting space for what should be the image.

  5. QuLogic commented on Apr 22, 2020

    @QuLogic
    Member

    So when set to rasterized, there appears to be both the rasterized image and that other group with the actual gid is the vector one underneath.

  6. mjamroz commented on Apr 22, 2020

    @mjamroz
    Author

    @QuLogic thanks for commenting on this issue, it reminded me what i was working on 6 years ago :)

  7. github-actions commented on Mar 4, 2023

    @github-actions

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions