Re: [Matplotlib-users] plotting an array with gaps

2010-07-24 Thread John Hunter
On Sat, Jul 24, 2010 at 4:26 PM, mdekauwe wrote: > > Hi, > > Is there a nice way to plot an array where there are say missing days and > you wouldn't want the line to join over these data gaps, i.e. show the gaps. > > E.g. > > 1 4.5 > 2 4.6 > 4 6.7 > 8 5.7 > 9 1.2 > > The only way I could think to

[Matplotlib-users] plotting an array with gaps

2010-07-24 Thread mdekauwe
Hi, Is there a nice way to plot an array where there are say missing days and you wouldn't want the line to join over these data gaps, i.e. show the gaps. E.g. 1 4.5 2 4.6 4 6.7 8 5.7 9 1.2 The only way I could think to get around this involved appending NaNs and then masking the array, but I