Re: [matplotlib-devel] handling labeled data

2015-07-29 Thread Jouni K . Seppänen
Thomas Caswell writes: > The general approach follows R / seaborn / panadas and allows users to pass > in a `data` kwarg which if present, any data fields which are strings are > replaced by a call to `data[key]`. In code > >ax.plot(labeled_data['a'], labeled_data['b']) > > and > > ax.plot

Re: [matplotlib-devel] handling labeled data

2015-07-25 Thread Benjamin Root
A couple immediate thoughts: what if the data is spread across a mix of objects? Also, I think "labeled" might be a better kwarg name. Less likely to conflict with apis. I'll give this a careful look-see tomorrow. Ben Root On Jul 25, 2015 7:03 PM, "Thomas Caswell" wrote: > Hey all, > > Everyone

[matplotlib-devel] handling labeled data

2015-07-25 Thread Thomas Caswell
Hey all, Everyone should be aware of https://github.com/matplotlib/matplotlib/pull/4787 which is both a very simple, but very important change to the mpl API by providing a minimal API to pass labeled data (that is anything that `foo[key]` return an array-like object) into mpl plotting functions.