|
From: Oliver K. <oli...@gm...> - 2012-12-06 16:06:08
|
Hi Luke, > I been able to use the bitwise_and() and right_shift() on the data to > get individual arrays which are populated with only 0's and1's. > > What I'm not clear on is now how to get the solid filled rectangle for > areas where the bit is high and nothing when the bit is low. > > Is there already this functionality somewhere in matplotlib? I looked > in the gallery and couldn't find anything quite like what I'm looking > for, though I may have simply missed it. If there isn't, I'm sure > there is a way to do it, does anybody have any recommendations as to > the path of least resistance? How about using imshow()? Turn your individual arrays into a three-dimensional array of (r,g,b,a) values (MxNx4 array). You can then overwrite the axis labels (pixel numbers) with the boolean state descriptors and the time stamps. Cheers, Oliver |