Hi Kevin!
You aren't doing anything wrong. This happens to us too.
One (really bad) workaround is to put a line of code in your script
that asks for
user input (like "Please hit Return...") right after you create the
viewer window.
When the code is paused make adjustments to the window locations, then
continue running the script.
This allows you to put the window where you want it so you can see the
data.
The down side is that you can't interact with the window.
After some point, though, the display of data in real time is not
worthwhile. We've
resorted to writing data files and visualizing other ways...
With clever file naming conventions and an input filter on OpenDX you
can
make movies from the files without opening each one...
Good luck!
For example:
*** beginning stuff clipped ***
import fipy.viewers
viewer = fipy.viewers.make(vars = (c1,c2),
limits = {'datamin': 0., 'datamax': 1.})
viewer.plot()
# Mess with the window here.
raw_input("Initial condition. Press <return> to proceed...")
*** other stuff clipped***
# Don't touch the window after this point!
if __name__ == '__main__':
for step in range(steps):
c1.updateOld()
c2.updateOld()
eqn1.solve(c1, boundaryConditions = boundaryConditions, dt =
timeStepDuration)
eqn2.solve(c2, boundaryConditions = boundaryConditions, dt =
timeStepDuration)
viewer.plot()
raw_input('finished')
On Nov 7, 2009, at 3:12 PM, Kevin Buckman wrote:
I installed Enthought recently along with FiPy in order to do some
PDE’s work for some research. I am on Windows Vista, but may move
to a Linux setup so my advisor and I are on the same system and if
it might eliminate some of these problems. We think the problem has
to do with matplotlib, but when I run the examples that come with
enthought, they run flawlessly. I have run some code he has written
and after a bit of work, they ran fine as well. But when I run the
fipy examples, the figure window is not operable. The icons at the
bottom are whited out and if you click on the figure, it goes white
and freezes. If I even click off of it to hit return to continue
examples it will freeze some times. I’m normally fairly good with
computers so it is bothering me that I can’t resolve this problem.
As of now, I can only solve PDE’s with FiPy and have to write
separate code to plot, which is not that bad. I am going to work on
some examples out of the manual, but if they don’t work as well,
then I would hope to be able to get it fixed.
Thanks,
Kevin Buckman