-
-
Notifications
You must be signed in to change notification settings - Fork 452
Use Bokeh for plotting instead of Matplotlib #27
Copy link
Copy link
Closed
Labels
help wantedLooking for ContributorsLooking for Contributorsstatus:refer to cacCurriculum Advisory Committee input neededCurriculum Advisory Committee input neededtype:discussionDiscussion or feedback about the lessonDiscussion or feedback about the lessontype:feedbackIssue to provide feedback on lessonIssue to provide feedback on lesson
Milestone
Metadata
Metadata
Assignees
Labels
help wantedLooking for ContributorsLooking for Contributorsstatus:refer to cacCurriculum Advisory Committee input neededCurriculum Advisory Committee input neededtype:discussionDiscussion or feedback about the lessonDiscussion or feedback about the lessontype:feedbackIssue to provide feedback on lessonIssue to provide feedback on lesson
Matplot lib is so 2002 - if you want to give the students a 'wow' feeling and teach them the new normal how about Bokeh?
I would say the library is becoming mature now, currently at 0.11, and to make nice-looking high-level interactive plots the interface is very simple. At least no more cognitive load than starting with matplotlib in my opinion. Plus, if you are already planning on Pandas (which I fully +1) this already ties in perfectly to Bokeh, which understands how to deal with pandas objects.
You could use the code here from the Bokeh Gapminder example (https://anaconda.org/bokeh/gapminder/notebook) to perhaps create a simpler version for the lesson. (Without some of the formatting, the background year text, and the legend, it could be simple-ish, and perhaps even still have the slider widget and hover tool?)
If that is more for an intermediate to advanced level, you could use grid-plot to show a couple of snap-shots in time from the dataset, rendering them together with linked axes and a hover tool (quite easy in Bokeh). See grid plot examples here http://bokeh.pydata.org/en/0.10.0/docs/user_guide/layout.html