igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] vertex shape: triangle


From: Gábor Csárdi
Subject: Re: [igraph] vertex shape: triangle
Date: Mon, 21 May 2012 10:51:54 -0400

Not very easy, as there is no API for this. You'll need to write code
(1) to plot the triangles, that is easy, and (2) to calculate where
the arrows should be plotted, this is a bit harder, but probably not
very bad. Then you need to unlock some igraph data structures to add
your new shapes.

Here is an example on how to do it:
http://lists.gnu.org/archive/html/igraph-help/2009-09/msg00016.html
This defines the "circle2" shape, which is the same as "circle", but
you can change the frame width.

Gabor

On Mon, May 21, 2012 at 9:54 AM, Simone Gabbriellini
<address@hidden> wrote:
> dear all,
>
> I'd like to plot some vertices in my graph according to different shapes and 
> sice I have already used circle, rectangle and square, I'd like to use 
> triangle shape... any hint how to produce it?
>
> best,
> simone
>
> Sent from my iPhone
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]