← Back to team overview

dolfin team mailing list archive

Re: Plotting works for elasticity demo

 

Garth N. Wells skrev den 26/04-2007 følgende:
> I get the error
> 
> Reading function from elasticity.xml.
> Reading vector from file elasticity.xml.
> Reading mesh from file elasticity.xml.
> Traceback (most recent call last):
>    File "plot.py", line 4, in ?
>      plot(u, mode="displacement")
> TypeError: plot() got an unexpected keyword argument 'mode'
> 
> when trying to plot.
> 
> Garth

Sure, you'll need to pull and install the newest version of viper.
Anders had a similar problem (after pulling) yesterday, but we couldn't 
figure out the error.

Ola

 
> Anders Logg wrote:
> > After som bug fixes and some improvements to Viper, plotting the
> > solution of the elasticity demo now works:
> > 
> >   from dolfin import *
> > 
> >   u = Function("elasticity.xml")
> >   plot(u, mode="displacement")
> > 
> > /Anders
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
> > 
> 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


Follow ups

References