Comment 5 for bug 914880

Revision history for this message
Ernesto Ismail (ernesto-ismail) wrote :

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?

Thanks for your efforts thus far,

Ernesto