Skip to content

[Doc]: Erroneous Legend in Radar Chart Example #22535

Closed

Description

@ugGit

Documentation Link

https://matplotlib.org/stable/api/figure_api.html?highlight=figure#module-matplotlib.figure

Problem

Disclaimer: not sure if doc was the right tag

I'm currently trying to implement a radar chart. It works as intended in the example from the docs. However, already the example contains a bug: the legend is wrong.
image

As visible on the screenshot above, the color/icons of the legend are not corresponding to the graph. It looks like the lines and the content (fill) of the polygons are treated separately and therefore listed as single elements in the legend.

Suggested improvement

Show for each data either the line color or filling color.

Activity

  1. oscargus commented on Feb 22, 2022

    @oscargus
    Member

    For whoever wants to take a dig at it:

    It should be possible to add a proxy artist here that has an outline and a filling, see the penultimate example of https://matplotlib.org/stable/tutorials/intermediate/legend_guide.html

    This is the direct link to the radar example: https://matplotlib.org/stable/gallery/specialty_plots/radar_chart.html

  2. added
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Feb 22, 2022
  3. anntzer commented on Feb 22, 2022

    @anntzer
    Contributor
  4. added this to the v3.6.0 milestone on Feb 22, 2022
  5. tacaswell commented on Feb 22, 2022

    @tacaswell
    Member

    Do we need / want to backport the fix to this for 3.5.x?

  6. anntzer commented on Feb 22, 2022

    @anntzer
    Contributor

    It's a doc only fix, see #22458.

  7. modified the milestones: v3.6.0, v3.5-doc on Feb 22, 2022
  8. QuLogic commented on Feb 22, 2022

    @QuLogic
    Member

    That PR was already backported to 3.5.x.

  9. changed the title [-][Doc]: Erroneous legend[/-] [+][Doc]: Erroneous Legend in Radar Chart Example[/+] on Feb 23, 2022
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

    Documentation🌱 Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions