@Eric: thanks, i see the point
@Jody: thanks for the trick, I'll first try Eric's approach
2013/7/18 Eric Firing :
> On 2013/07/17 11:25 PM, Gregorio Bastardo wrote:
>> Thanks Mike, it's hard to spot, but still better than nothing. Anyway,
>> could it be the default behaviour of plotting masked a
Or make a stairstep, if each time has a finite duration. like the following
(though I am sure there are some inelegant code in there.
data = np.arange(10)
mask = [0,0,0,1,1,0,1,0,0,0]
x = np.ma.masked_array(data, mask)
t = arange(-0.5,shape(x)[0]-0.5,1.)
xx=ma.zeros((2,10))
xx[0,:]=x
xx[1,:]=
On 2013/07/17 11:25 PM, Gregorio Bastardo wrote:
> Thanks Mike, it's hard to spot, but still better than nothing. Anyway,
> could it be the default behaviour of plotting masked arrays (single
> pixel for an isolated element)?
Gregorio,
I don't think this would be a good idea. It adds quite a bit
Thanks Mike, it's hard to spot, but still better than nothing. Anyway,
could it be the default behaviour of plotting masked arrays (single
pixel for an isolated element)?
2013/7/17 Michael Droettboom :
> You could use a single pixel for a marker (','), I guess. But as you
> say, you need at least
You could use a single pixel for a marker (','), I guess. But as you
say, you need at least two points for a line segment.
Mike
On 07/17/2013 10:45 AM, Gregorio Bastardo wrote:
> Hi,
>
> The following example demonstrates the problem, value 5 could not be
> seen w/o marker:
>
> data = np.arange
Hi,
The following example demonstrates the problem, value 5 could not be
seen w/o marker:
data = np.arange(10)
mask = [0,0,0,1,1,0,1,0,0,0]
x = np.ma.masked_array(data, mask)
plot(x)
plot(x, '+')
In my datasets, isolated unmasked values are rare, but placing a
marker to spot them makes the whole