Skip to content

Legend groups: legend for ridgeplots with multiple traces per line #315

Open

Description

@tpvasconcelos

Discussed in #314

Originally posted by abrahme February 3, 2025
I was wondering if there was a way to add a legend for each color present in a ridge-plot? For example,
https://ridgeplot.readthedocs.io/en/stable/getting_started/getting_started.html the last example with min and max temperature densities per month are blue and red respectively. However, it would be nice to have a legend on the side indicating that red is max temperature and blue is min temperature. Is it as simple as adding a legend for a typical plotly graph?

Activity

  1. tpvasconcelos commented on Feb 6, 2025

    @tpvasconcelos
    OwnerAuthor

    @abrahme could you provide an example of what you want to achieve to make sure I understand exactly what you mean? Is it something like this maybe? If so, this is definitely something we should support!

    Image

    Image

    Image

    Image

  2. abrahme commented on Feb 7, 2025

    @abrahme

    @abrahme could you provide an example of what you want to achieve to make sure I understand exactly what you mean? Is it something like this maybe? If so, this is definitely something we should support!

    Yes, this is exactly what I was referring to! Thank you

  3. tpvasconcelos commented on Feb 8, 2025

    @tpvasconcelos
    OwnerAuthor

    @abrahme let me know if you are interested in contributing. From my side, I agree that this is something we want to allow users to easily configure 

  4. Secantwave commented on Jun 17, 2025

    @Secantwave

    Is this issue still open?

  5. tpvasconcelos commented on Aug 26, 2025

    @tpvasconcelos
    OwnerAuthor

    @Secantwave Sorry I didn't notice your comment. Yes the issue is still open, would you be interested in contributing?

  6. linked a pull request that will close this issue[315] Legend groups #349on Oct 13, 2025
  7. changed the title [-]Legend for ridgeplots with multiple traces per line[/-] [+]Legend groups: legend for ridgeplots with multiple traces per line[/+] on Oct 13, 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions