datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
87 stars 12 forks source link

How to Matplotlib #34

Closed beamalsky closed 4 years ago

beamalsky commented 5 years ago

Continued from https://github.com/datamade/data-analysis-guidelines/issues/13

After spending some hours with Matplotlib for https://github.com/datamade/nyu-journo, I don't absolutely love it but I see some paths forward for a standard DataMade approach to static charts. Two blog posts I found very helpful and would recommend adding to our documentation:

  1. Effectively Using Matplotlib by Chris Moffitt
  2. "Artist" in Matplotlib by skotaro

A couple of the high-level takeaways:

matplotlib-pbpython-example-header

Something I could have done a better job with for the NYU project was separating data processing and charting into fully separate steps. This would allow us to create some handy chart helpers that can be used between projects (h/t @hancush!).

I don't know if there are any immediate next steps for this, as static charting is not something we've been doing very often. I'd be happy to write the above points into a brief .md file for this repo, or someone else could pick it up for R&D.

jeancochrane commented 5 years ago

I think it'd be great if you wrote these docs. We'll work to try to set aside some time for you to work on this.

jeancochrane commented 4 years ago

In lieu of full docs, let's add a link to this issue to the Data Analysis Guidelines.

hancush commented 4 years ago

Done in https://github.com/datamade/data-analysis-guidelines/pull/16!