[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Add 0.2.5 to known versions, change color palette.



commit e51bd2b036fabba330115483562508d110bc7f3c
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Dec 9 07:07:09 2013 +0100

    Add 0.2.5 to known versions, change color palette.
    
    The Accent palette only supports up to 8 different colors, but by now we
    have 9 Tor versions which could, in theory, all be displayed in a single
    graph.  Paired supports up to 12 different colors.
---
 rserve/graphs.R |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rserve/graphs.R b/rserve/graphs.R
index b862584..bf6f8c7 100644
--- a/rserve/graphs.R
+++ b/rserve/graphs.R
@@ -385,9 +385,9 @@ plot_versions <- function(start, end, path) {
   s <- data.frame(date = as.Date(s$date, "%Y-%m-%d"), version = s$version,
                   relays = s$relays)
   known_versions <- c("0.1.0", "0.1.1", "0.1.2", "0.2.0", "0.2.1",
-        "0.2.2", "0.2.3", "0.2.4")
+        "0.2.2", "0.2.3", "0.2.4", "0.2.5")
   colours <- data.frame(breaks = known_versions,
-    values = brewer.pal(length(known_versions), "Accent"),
+    values = brewer.pal(length(known_versions), "Paired"),
     stringsAsFactors = FALSE)
   versions <- s[s$version %in% known_versions, ]
   visible_versions <- sort(unique(versions$version))

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits