python - Graphically represent lists -


is there quick way (without overhead of using gui or graphics module) visually render 2d , 3d lists.

for example if have 2d array of zeros , ones, draw black , white grid according array.

i looking module allows me these thing in simple ways. similar easiness of matplotlib allows drawing graphs.

the command matshow in matplotlib displays matrix:

import pylab p p.matshow(p.array([[0,1],[1,1]]),cmap="greys") ; p.show() 

this work 2d lists. 3d lists, i'm not sure understand how you're planning on visualising them.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -