Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best practices for plotting #13

Open
santisoler opened this issue Jan 4, 2022 · 0 comments
Open

Best practices for plotting #13

santisoler opened this issue Jan 4, 2022 · 0 comments

Comments

@santisoler
Copy link
Contributor

I noticed that some of the plots that are created on the Session 3 Notebook (the one that introduces matplotlib) lack of some elements like axes labels detailing what's being plotted, the units of the axes, etc.

I would suggest that every plot we make during the sessions might need to satisfy some basic requirements in order to encourage students to produce communicative plots from day one.
For example:

  • always add axes labels expliciting what's being plotted.
  • axes labels must also have units (if any).
  • if more than one element is being showed on the same plot, add a legend.
  • use a proper colormap
    • perceptually uniform colormaps are usually the best, unless diverging colormap is needed (Choosing Colormaps),
    • avoid using jet, rainbow or similar.
  • keep plots accessible: watch for low contrast, small fonts, color blindness related issues, etc.
  • titles are encouraged, but not mandatory.

Let me know what do you think and feel free to add any requirement that I might have missed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant