4 ms·
what advantages does this offer in comparison to matplotlib? Are the points they describe (easy faceting, bulk application of aesthetic and visual parameters a
by schabernakk 14y ago
what advantages does this offer in comparison to matplotlib?
Are the points they describe (easy faceting, bulk application of aesthetic and visual parameters across categorical variables, pleasing default color palettes for categorical data, etc.) really that much of a pain point with matplotlib?
I used it for two or three projects but not really extensively and especially not for complex statistical plotting, thats why I ask.
- darkarmani 14y ago> what advantages does this offer in comparison to matplotlib? "Although it is a Python library, its primary output backend is HTML5 Canvas."
- pwang 14y ago(Bokeh developer here) The core goals of the project are to offer: interactive, easy-to-specify, powerful novel graphics, with good support for statistical plots, in a web browser. That's quite a handful of things to balance, but we are picking up the best ideas from already existing projects: matplotlib, chaco, ggplot, protovis, stencil. The project is still nacent but we have promising results so far. (For instance, here is an ipython notebook export with interactive ggplot-style faceted plots of a Pandas DataFrame: http://htmlpreview.github.com/?https://github.com/ContinuumIO/Bokeh/blob/master/tests/web/bokeh-facets.html http://htmlpreview.github.com/?https://github.com/ContinuumI...) This kind of composite plot is a one-liner in the grammar of graphics. It would be much more with Matplotlib or Chaco. There are also marvelous novel graphics that are possible with Protovis-style Marks & Glyphs: http://mbostock.github.com/protovis/ex/ http://mbostock.github.com/protovis/ex/ Although these are technically possible with existing libraries, the amount of programming skill required to create them is outside the capability of most data analysts. Our goal with Bokeh is to make these all accessible to that larger audience.
- hadley 14y agoTo add to pwang's comment, to me the problem with matplotlib is that it makes an assumption that I believe to be untrue: the majority of data analysis tasks only need a pre-set list of plots. In my experience, most data analysis tasks need some novel combination of existing components, that may not have a specific name (e.g. pie chart, bar chart).