igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] tla .listing


From: Vincent Matossian
Subject: Re: [igraph] tla .listing
Date: Thu, 26 Jul 2007 13:42:16 -0400

 
 Thanks Gabor,

Would it be possible to add (at any convenient point in time) plotting symbols other than circles in the R interface ? I have code that uses those for a cellular automata type grid display,

if it's of any use here's a diff of what I have been using to do it,

Cheers, Vincent


--- igraph--main--0.5--patch-58/interfaces/R/igraph/R/plot.R    2007-07-26 13:26:35.000000000 -0400
+++ igraph--main--0.5--patch-plot/interfaces/R/igraph/R/plot.R   2007-07-26 13:35:44.000000000 -0400
@@ -36,6 +36,7 @@
   vertex.color       <- params("vertex", "color")
   vertex.frame.color <- params("vertex", "frame.color")
   vertex.size        <- (1/200) * params("vertex", "size")
+  vertex.symbol     <- params("vertex","symbol")
   label.family       <- params("vertex", " label.family")
   label.font         <- params("vertex", "label.font")
   label.cex          <- params("vertex", "label.cex")
@@ -228,9 +229,14 @@

   # add the vertices
   if (length(vertex.size)==1) { vertex.size <- rep(vertex.size, nrow(layout)) }
-  symbols(x=layout[,1], y=layout[,2], bg=vertex.color, fg=vertex.frame.color,
-          circles=vertex.size, add=TRUE, inches=FALSE)
+    if(vertex.symbol=="squares")
+    symbols(x=layout[,1], y=layout[,2], bg=vertex.color, fg=vertex.frame.color,
+            squares=vertex.size, add=TRUE, inches=FALSE)
+  else if(vertex.symbol== "circles")
+    symbols(x=layout[,1], y=layout[,2], bg=vertex.color, fg=vertex.frame.color,
+            circles=vertex.size, add=TRUE, inches=FALSE)

+
   # add the labels
   par(xpd=TRUE)
   x <- layout[,1]+label.dist*cos(-label.degree)*


On 7/26/07, Csardi Gabor <address@hidden> wrote:
Vincent,

the web server was moved to another machine, this caused
the problem. Now i did some configuration changes and it should
work again. Sorry about that.

Gabor

On Thu, Jul 26, 2007 at 12:44:57PM -0400, Vincent Matossian wrote:
>  Hi all,
>
> My attempts at getting the latest igraph main branch from tla has been
> failing in the last few weeks with the following error:
>
> >tla get igraph--main--0.5
> unable to access URL: /arch/address@hidden/.listing
> webdav error: 301 Moved Permanently
>
> the archive was registered as mentioned on the igraph webpage but it appears
> that something has changed...
>
> Please let me know if you know what I'm missing,
>
> Thanks!
>
>    Vincent

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


--
Csardi Gabor <address@hidden>    MTA RMKI, ELTE TTK


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


reply via email to

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