Have you thought about writing a backend for matplotlib that would display the plot in the console (no X)? It could use the linux framebuffer or the SVGALib, just like Links.
It would make it much more portable.
Flávio Codeço Coelho, PhD
Programa de Computação Científica
Fundação Oswaldo Cruz
Rio de Janeiro – Brasil