|
From: Thomas G. <hv...@tb...> - 2008-10-23 13:23:09
|
Hi, I use the API of matplotlib and have a basic problem: Up to now I am used to gather my data into a list of tuples. But matplotlib uses serveral lists instead. Example: me: [(date1, count1), (date2, count2), ...] matplotlib: ax.plot_date(dates, counts) Finally I use something like this quite often: method([item[0] for item in items], [item[1] for item in items]) But I think thats to much looping. That's my personal problem, but I think a more pythonic API would be nice... Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de |