On Tue, 27 Jan 2015 12:48:17 +0000
"Kirby, Rob" <[email protected]> wrote:

> Is there a version that supports element plotting, and to file?
> 
> The Mac binary doesn't have soya either, and a slightly out of date
> dorsal didn't get the hardcopy_prefix keyword.

'hardcopy_prefix' has been renamed to 'prefix' by 44369fe nevertheless
it only applies to DOLFIN plotting. FFC plotting does not seem to
support hardcopying and elements in the book seem to be produced by
running <dolfin>/scripts/dolfin-plot/plot_book_elements.sh and taking 
screenshots manually.

Jan

> 
> Ubuntu binary?
> 
> Sent from my iPhone
> 
> On Jan 27, 2015, at 5:01 AM, "Anders Logg"
> <[email protected]<mailto:[email protected]>> wrote:
> 
> This is a known problem, that the FEniCS HashDist installation does
> not include all possible Python packages. I don't know what the best
> solution is: either to add Soya3D to the HashDist installation, or
> putting it back into the path. Others (Johannes) will know better.
> 
> --
> Andeers
> 
> 
> Mon Jan 26 2015 at 9:42:57 PM skrev Robert Kirby
> <[email protected]<mailto:[email protected]>>: I am
> trying to dump plots of FiniteElement objects to file (much like in
> the nifty periodic table) to slurp into a document.
> 
> I am on Ubuntu 14.04, and just installed the latest dev version via
> hashdist.  Two problems.
> 
> #1: Hashdist doesn't seem to install soya in its python interpreter
> (so apt-getting doesn't help here):
> 
>  >>> U = FiniteElement("Lagrange", triangle, 2)
>  >>> plot(U)
> Unable to plot element, Soya3D not available (install package
> python-soya).
> 
> Second, the documentation says a keyword argument hardcopy_prefix is
> needed, at least for function plotting.
> 
> But it doesn't seem to recognize that keyword:
> 
>  >>> plot(U, hardcopy_prefix="lagrange")
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File
> "/home/rkirby/.hashdist/bld/profile/gswdsngrlm3e/lib/python2.7/site-packages/dolfin/common/plotting.py",
> line 105, in plot
>      return ffc.plot(object, *args, **kwargs)
> TypeError: plot() got an unexpected keyword argument 'hardcopy_prefix'
> 
> 
> Am I doing something wrong here?
> 
> Thanks,
> Rob Kirby
> 
> _______________________________________________
> fenics mailing list
> [email protected]<mailto:[email protected]>
> http://fenicsproject.org/mailman/listinfo/fenics

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to