The problem still persists and when running the provided code I get the error stream:
#######
ernesto@Woodchuck:fenics_code$ python poisson_modified.py
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Solving linear variational problem.
Traceback (most recent call last):
File "poisson_modified.py", line 31, in <module>
plot(u, interactive=True)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/dolfin/common/plotting.py", line 121, in dolfin_plot
return viper_dolfin.plot(make_viper_object(object, mesh=mesh), *args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 452, in plot
fig = _plotter.plot(data, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 401, in plot
return self.autoplot(plot_object, *args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 415, in autoplot
plotter = Viper(plot_object, *args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 60, in __init__
self.plot(data, *args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 85, in plot
plot_method(data, *args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper_dolfin.py", line 165, in plot_genericfunction
vmax=kwargs.get("vmax", None))
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper.py", line 1299, in plot_xy
renWin.SetSize(self.window_size)
TypeError: function takes exactly 2 arguments (1 given)
According to the Question linked above the error was solved in the current release of FEniCS. Despite this, I am running the most current release for OSX and the error persists. Is it possible that the .dmg file does not have the most up to date build of the plot function?
The problem still persists and when running the provided code I get the error stream:
####### Woodchuck: fenics_ code$ python poisson_modified.py modified. py", line 31, in <module> FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ dolfin/ common/ plotting. py", line 121, in dolfin_plot plot(make_ viper_object( object, mesh=mesh), *args, **kwargs) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 452, in plot FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 401, in plot plot_object, *args, **kwargs) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 415, in autoplot FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 60, in __init__ FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 85, in plot method( data, *args, **kwargs) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper_ dolfin. py", line 165, in plot_genericfun ction kwargs. get("vmax" , None)) FEniCS. app/Contents/ Resources/ lib/python2. 6/site- packages/ viper/viper. py", line 1299, in plot_xy SetSize( self.window_ size)
ernesto@
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Solving linear variational problem.
Traceback (most recent call last):
File "poisson_
plot(u, interactive=True)
File "/Applications/
return viper_dolfin.
File "/Applications/
fig = _plotter.plot(data, **kwargs)
File "/Applications/
return self.autoplot(
File "/Applications/
plotter = Viper(plot_object, *args, **kwargs)
File "/Applications/
self.plot(data, *args, **kwargs)
File "/Applications/
plot_
File "/Applications/
vmax=
File "/Applications/
renWin.
TypeError: function takes exactly 2 arguments (1 given)
According to the Question linked above the error was solved in the current release of FEniCS. Despite this, I am running the most current release for OSX and the error persists. Is it possible that the .dmg file does not have the most up to date build of the plot function?
Thanks for your efforts thus far,
Ernesto