On Oct 8, 2009, at 7:55 PM, kenji wrote:
In my computer environment, the viewr plot command doesn't redraw
for a mouse
click or alt+tab key operations. viewer.plot can redraw data but
don't change
the Z order. The redrawn window is keeping under other windows.
Are there another reports like this or counter measures to avoid
this problem.
I'm not entirely sure what behavior you are expecting for a mouse
click or alt+tab in this situation (we try to support Windows, but we
don't use it).
If I understand your situation, though, the behavior you are seeing is
not surprising. There is only a single thread of execution when FiPy
is running, so being able to interact with the Viewer (change display
range, color scheme, etc.) is not possible[*] while FiPy is solving a
problem.
As to whether you can even move the Viewer window or bring it to the
front, this depends on a number of factors, but it does not surprise
me that you cannot. X windowing systems handle this pretty well.
Different viewers on Mac OS X behave differently; some can be moved
around and some cannot. With matplotlib, which you are using, it can
depend on which backend you are using. On the Mac, I have to set the
backend to "MacOSX"; there may be something you can do on Windows, but
I don't know it. See http://matplotlib.sourceforge.net/faq/installing_faq.html#backends
for a partial discussion of your options.
Perhaps some on the list who use FiPy on Windows regularly can offer
advise?
[*] Because viewing 3D models without being able to manipulate them is
essentially useless, I am working on getting the MayaVi viewer to
launch a separate process. This is not without its issues, but it
seems to work OK. We *may* try to generalize the mechanism to the
other viewers (matplotlib, etc.) but the need is much less severe and
it's not easy, so this will not be a high priority.