Skip to content

[ENH]: Accessibility for SVG hyperlinks #21477

Open

Description

@jonblatho

Problem

Currently matplotlib supports adding hyperlinks in SVGs, but (I believe) it lacks support for setting an aria-label attribute on links to improve accessibility.

Proposed solution

Alongside existing functionality to provide URLs for SVG hyperlinks (like the url= arg and set_urls()), a user should be able to provide corresponding aria-label attributes to be set for <a> tags.

Additional context and prior art

An example use case for this is adding links to an SVG scatter plot for use on the web where the points are too densely packed to make text labeling feasible.

Activity

  1. story645 commented on Oct 27, 2021

    @story645
    Member

    I think this would be a follow on to #21328, which adds aria attributes to artist objects.

  2. github-actions commented on Nov 7, 2025

    @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!

  3. added
    keepItems to be ignored by the “Stale” Github Action
    and removed
    status: inactiveMarked by the “Stale” Github Action
    on Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions