[Matplotlib-users] Animated Arrows

2014-04-25 Thread claudef
Dear colleagues, Is there a artist function or routine available in matplotlib for drawing animated arrows following lines (like streamplot) in a 2D space, or even better in a 3D space? Thanks in advance for any hint, or sample code. Regards, Claude Claude Falbriard Certified IT Special

Re: [Matplotlib-users] Composing image from hex tiles using RegularPolyCollection

2014-04-25 Thread Eric Firing
On 2014/04/24 11:40 PM, Tom Grydeland wrote: > Hi all, > > I will explain what I’m trying to achieve first, then the approaches I’ve > attempted so far, with results. > > I have data on a 2D grid which I want to present as an image — a la > pyplot.imshow() — except that the grid is hexagonal, not

Re: [Matplotlib-users] Entropy calculation incorrect?

2014-04-25 Thread Eric Firing
Nathan, Thanks for bringing this up. It looks like the short-term fix is to make the documentation match the code. Longer term, it seems to me like this is the sort of thing that should be deprecated; it doesn't belong in matplotlib any more. Would you open an issue on Github, please? Even

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Paul Hobson
You might have more luck reading in that data (dates with mixed format) with pandas than numpy. On Fri, Apr 25, 2014 at 2:37 AM, Mark Bakker wrote: > Thanks, Andreas, but it doesn't quite work. > > This works for me (I manually changed all dates to 'day-month-year' for > testing): > > a = load

[Matplotlib-users] Entropy calculation incorrect?

2014-04-25 Thread Nathan Lindop
Hello, I have been using the matplotlib.mlab.entropy function and have noticed that it may be incorrect. I have posted a question on stackoverflow here: http://stackoverflow.com/questions/23291576/matplotlib-mlab-entropy-calculation-incorrect I thought I would should it on the mailing list too.

[Matplotlib-users] Composing image from hex tiles using RegularPolyCollection

2014-04-25 Thread Tom Grydeland
Hi all, I will explain what I’m trying to achieve first, then the approaches I’ve attempted so far, with results. I have data on a 2D grid which I want to present as an image — a la pyplot.imshow() — except that the grid is hexagonal, not rectangular. The grid can be represented in multiple w

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
Thanks, Andreas, but it doesn't quite work. This works for me (I manually changed all dates to 'day-month-year' for testing): a = loadtxt('test.csv',converters={2:strpdate2num('%d-%m-%Y')}) But when I define the same function in a separate function, as you suggested: def conv_date(s): retu

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Andreas Hilboll
On 25.04.2014 11:02, Mark Bakker wrote: > OK, I figured out I can use: > converters={0:strpdate2num('%d-%m-%y')} > > What now if part of my dates are given as 'day-month-year' and part as > 'day/month/year' in the same file (I know, who does that, an I could do > a replace first and then read it i

Re: [Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
OK, I figured out I can use: converters={0:strpdate2num('%d-%m-%y')} What now if part of my dates are given as 'day-month-year' and part as 'day/month/year' in the same file (I know, who does that, an I could do a replace first and then read it in). Can I specify both formats for the converter? I

[Matplotlib-users] datestr2num for day/month/year

2014-04-25 Thread Mark Bakker
Hello List, datestr2num works great when dates are stored as month/day/year (as American like). Europeans store them as day/month/year. Any quick function to convert a day/month/year string do a date? Is there an eu version: datestr2numeu? Thanks, Mark -