|
From: <zu...@zu...> - 2005-08-03 17:50:24
|
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: import pylab, vtkpython pylab.ylabel('Frequency\n', multialignment='center', rotation=90) n, bins, patches = pylab.hist([1,1,1,2,2,3,4,5,5,5,8,8,8,8], 5) pylab.show() If however vtk is imported first: import vtkpython, pylab pylab.ylabel('Frequency\n', multialignment='center', rotation=90) n, bins, patches = pylab.hist([1,1,1,2,2,3,4,5,5,5,8,8,8,8], 5) pylab.show() then the Y axis label is positioned incorrectly on the plots. James Phillips http://zunzun.com |