2010/8/9 Pierre GM <[email protected]>: > OK, mind opening a ticket ? I'll try to take care of that tmw and I don't > want the bug report to fall between the cracks.
Done. http://projects.scipy.org/numpy/ticket/1576. Thank you for your very prompt and helpful response. I wasn't aware of the ticket system previously. > Mmh, tuples are nicer than slices... We'll see. O.K. I'm fairly new to NumPy and Matplotlib, so I'll leave the design decision to the experts, but I did find segments = np.ma.flatnotmasked_contiguous (am) print am[segments[0]], am[segments[1]] easier than segments1 = matplotlib.mlab.contiguous_regions (am) print am[slice (*segments1[0])], am[slice (*segments1[1])] but perhaps there are more elegant ways of dealing with tuples representing slices? > print numpy.version.version Thanks. _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
