On Tue, Jan 27, 2015 at 1:48 PM, 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.
>
> Ubuntu binary?

That will work with the python-soya package, but you are stuck with FEniCS 1.5.

> Sent from my iPhone
>
> On Jan 27, 2015, at 5:01 AM, "Anders Logg" <[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.

We can add it to HashDist but it should also work when using
FENICS_INSTALL_USE_HOST_PYTHON=1 with fenics-install.sh. It didn't
work when I tried it now, but I'm looking into it.

Johannes

> --
> Andeers
>
>
> Mon Jan 26 2015 at 9:42:57 PM skrev Robert Kirby <[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]
>> http://fenicsproject.org/mailman/listinfo/fenics
>
>
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to