This is James Phillips of http://zunzun.com, I'm in the
> process of switching the site graphics from DISLIN to
> matplotlib. I had some trouble pinning down why the Y
> axis on my plots ws always in the wrong place, and thought
> I'd pass along my findings to the mailing list.
> If pylab is imported before vtk, everything works fine:
pylab starts the default backend GUI mainloop (if there is one) when
you call "show", and this may be conflicting with vtkpython. The
default matplotlib GUI for the src distribution is GTKAgg and
vtkpython may start tk??? This is a wild guess.
For something like zunzun, a web app server, I suggest not using pylab
at all, but the matplotlib API, which avoids all the magical things
that pylab does that can just be a pain in an app server.
See for example
Let me know if this helps.
If you really want to use pylab, make sure you set Agg or some other
image backend as your default backend in your matplotlibrc file
(http://matplotlib.sf.net/matplotlibrc) or do the following before
Hope this helps. zunzun is amazing!!