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: Gábor Csárdi
Subject: Re: [igraph] kind of a zoom problem with plotting
Date: Wed, 9 May 2012 10:44:07 -0400

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



reply via email to

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