[SciPy-user] Plotting in matplotlib (was:What is missing inscipy to be a top notch environment for signal processing)

Chris Bartley chris at edc.com.au
Tue Nov 21 02:35:15 CST 2006


> If you want to plot your data as little dots (i.e. single 
> pixels), there is a trick which works extremely well. Set up 
> an integer array of reasonable size (say, 800x800) and put 
> 1's at the appropriate place in the array using fancy 
> indexing. Then plot the whole array via imshow().
> 
> Of course you can make it more sophisticated, e.g. use an 
> NxNx3 array representing RGB values. I wrote a nice class for 
> this which also supports blending several pixels over each 
> other and anti-aliasing pixels (slower), if you like I can 
> post it here.
> 
> Johannes
> _______________________________________________

Johannes, 

Thanks for that idea. I would like to see that class of yours...

Chris 




More information about the SciPy-user mailing list