neurotools.graphics.matplotlib module

Collected utilities for direct pixel rendering via matplotlib

It is difficult to write pixels directly in python.

One trick is to let Matplotlib do the heavy lifting for you. At the cost of reverse-engineering how to access pixels in a Matplotlib plot, you have Matplotlib handle all th Tk/Qt/Agg backend stuff, so you get a common interface for multiple platforms.

neurotools.graphics.matplotlib.hide_toolbar(fig)[source]

Command to hide toolabr changes across versions and backends. This uses try/catch to hide the toolbar.

neurotools.graphics.matplotlib.start(w, h, title='untitled')[source]

http://stackoverflow.com/questions/ 9295026/matplotlib-plots-removing-axis-legends-and-white-spaces

neurotools.graphics.matplotlib.draw_array(screen, rgbdata)[source]