Skip to content

[Doc]: bar examples should probably not have "score by ... gender" in them... #23352

Closed

Description

@jklymak

Documentation Link

https://matplotlib.org/devdocs/gallery/index

Problem

Our very first examples have "scores by gender" in them. I don't think this adds anything to the examples and is easy to make more generic.

Suggested improvement

No response

Activity

  1. Shubham-100 commented on Jun 28, 2022

    @Shubham-100

    Hey @jklymak, I am a newcomer, I would like to take this up. Do you want "scores by gender" to be removed or...?

  2. jklymak commented on Jun 28, 2022

    @jklymak
    MemberAuthor

    Yes, come up with some other binary identifier that ideally is not related to intrinsic human characteristics, and recast the examples. Bonus points if its something obvious, intuitive, and fun....

  3. jklymak commented on Jun 28, 2022

    @jklymak
    MemberAuthor

    I would also highlight this one as needlessly political: https://matplotlib.org/devdocs/gallery/showcase/bachelors_degrees_by_gender.html, though that would take some more research to find nice time series...

  4. mwaskom commented on Jul 9, 2022

    @mwaskom

    I would also highlight this one as needlessly political: https://matplotlib.org/devdocs/gallery/showcase/bachelors_degrees_by_gender.html

    I've always thought this was a funny one — when this dataset came out it was interesting for showing that growth in CS was on trend up to the early 80s before suddenly reversing as an outlier. But in the matplotlib example, CS is drawn in a light gray and very easy to miss. Redrawing the example like in the NPR article (showing fewer majors and emphasizing CS) would be a more interesting example ... though also political I suppose.

  5. story645 commented on Jul 12, 2022

    @story645
    Member

    though also political I suppose.

    I like this example cause I'm a data point (CS or engineering depending on how they coded), which is why I find calling it political a bit I dunno depressing. The example should probably be updated to include more recent data, and possibly contextualized w/ the numbers for men and folks of other genders (if that data is available) but I dunno if it's inherently controversial and I really don't think it's saying anything that's out of line w/ Matplotlib values.

  6. jklymak commented on Jul 12, 2022

    @jklymak
    MemberAuthor

    I think the examples should show folks how to use matplotlib and maybe tentatively wade into the controversial subject of how to effectively and pleasingly portray data. Any other commentary should be put somewhere else.

  7. SourajitaDewasi commented on Jul 19, 2022

    @SourajitaDewasi
    Contributor

    Hi @jklymak
    I am a beginner and I wanted to contribute to open source specifically to Matplotlib that I use regularly in my data analysis projects. I think an example that is not political or not controversial could be five groups from different countries: G1, G2, G3, G4, G5 and if they like tea or coffee.

    Or five age groups and if they are comfortable with in-person communication or online communication.

  8. SourajitaDewasi commented on Jul 24, 2022

    @SourajitaDewasi
    Contributor

    Hi @jklymak and @scottshambaugh
    With the following code I was able to obtain this result. I am inserting both the images below. This is just for the bar_label_demo example. Can you please guide me how to move from here?
    Stacked Bar Graph Demo Code
    Stacked Bar Graph

    Thanks in advance!

  9. jklymak commented on Jul 24, 2022

    @jklymak
    MemberAuthor

    This seems fine, though who knows how controversial Tea/Coffee will be ;-)

    https://matplotlib.org/stable/devel/index.html describes how to make pull requests...

  10. SourajitaDewasi commented on Jul 25, 2022

    @SourajitaDewasi
    Contributor

    Thank you @jklymak . I will complete this as soon as possible!

  11. story645 commented on Sep 22, 2022

    @story645
    Member

    I think was closed w/ #23590

  12. added this to the v3.7.0 milestone on Sep 22, 2022
  13. QuLogic commented on Sep 22, 2022

    @QuLogic
    Member

    Seems like it.

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