Hello, Is there a simple argument to pass to matshow so that
> it'll print 0 as white and 1 as black, and not the opposite
> as it defaults to ?
You can do this by passing a custom colormap to the matshow function.
See the following threads on the mailing list archive for more
information on creating custom colormaps
See also the user's guide section 6.4.4 "Defining your own colormap"
You might also want to spend a little time looking at the src code of
the matplotlib modules cm and colors for inspiration on how to define
Hopefully we can improve the documentation and example code in this
area in the not too distant future...
Hope this helps,