igraph-help
[Top][All Lists]
Advanced

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

## Re: [igraph] kind of a zoom problem with plotting

 From: Yannick Rochat Subject: Re: [igraph] kind of a zoom problem with plotting Date: Mon, 14 May 2012 13:55:00 +0200

Thanks a lot !

Was a bit difficult to understand how it works, but now everything's fine. I've dealt with the fact that the layout coordinate boundary values change at every computation by including them as factors when computing the vertex sizes.

Thanks again.

Best,

Yannick

2012/5/9 Gábor Csárdi
Hi Yannick,

you can use the 'rescale' argument of plot (plot.igraph really), see
?igraph.plotting. If you set this to FALSE, then the plot is not
rescaled to (-1,1).

You'll need to adjust vertex sizes and xlim and ylim, but it should
work after that.

Hope this helps, Best,
Gabor

On Tue, May 8, 2012 at 12:12 PM, Yannick Rochat <address@hidden> wrote:
> Hi there ! (long time no see…)
>
> I've got a problem when trying to plot a graph two times, with the same
> layout but different vertex sizes. The following code will reproduce this
> problem :
>
> g1 <- erdos.renyi.game(25,.2)
> g1\$layout <- layout.fruchterman.reingold(g1)
> g2 <- g1
> V(g2)\$size <- 15
> V(g2)[0:4]\$size <- 45
> plot(g1)
> quartz()
> plot(g2)
>
> In fact, I'm plotting the network of a twitter debate every minute, and then
> I merge them into a video. I use the layout of the network with all the
> edges for every previous network. I've decided to highlight the last
> contributing vertices by doubling their size for a few frames, but this
> causes the plot (or frame ?) size to get slightly modified and in the end,
> we can observe some frenetic zooming/dezooming.
>
> It seems that the vertex sizes, or other arguments, are able to modify the
> plotting values. Would you know how I can fix that ?
>
> Best regards,
>
>
> Yannick
>
>
> ------------------------------------------------------
> IP - Université de Lausanne
> https://sites.google.com/site/yannickrochat/
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

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

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

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