I'm using Compose (and Color), on which Gadfly is built. I tried
Gadfly itself, but there were some inefficiencies -- I tried to
compose an image consisting of many different edges, and this many
independent graphs (I'm using the wrong terminology here) was not
handled well.

I've copy-and-pasted my plot routines at
<https://gist.github.com/eschnett/a9e7f70e4910e4ba2768> to give you an
example.

"circle" draws a filled circle (a vertex), and "line" draws a line (an
edge). I'm choosing colours depending on the z coordinate. The code
isn't self-contained, but should serve as example to see how
easy/complex this approach is.

-erik


On Mon, Nov 10, 2014 at 9:09 PM, Simon Kornblith <[email protected]> wrote:
> Is there an easy way to display a polygon mesh in Julia, i.e., vertices and
> faces loaded from an STL file or created by marching tetrahedra using
> Meshes.jl? So far, I see:
>
> PyPlot/matplotlib, which seems to be surprisingly difficult to convince to
> do this.
> GLPlot, which doesn't currently work for me on 0.4. (I haven't tried very
> hard yet.)
> ihnorton's VTK bindings, which aren't registered in METADATA.jl.
>
> Is there another option I'm missing? If not, can I convince one of these
> packages to show my mesh with minimal time investment, or should I use a
> separate volume viewer (or maybe a Python package via PyPlot)?
>
> Thanks,
> Simon



-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to