[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Add 0.2.8 to known versions.
commit bdea2001c1c2b12c33b2607add79e767d68fa197
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Sun Jan 10 09:35:23 2016 +0100
Add 0.2.8 to known versions.
We have run out of colors in the palette, so we'll have to "recycle"
colors for new versions that we already used for very old versions.
---
website/rserve/graphs.R | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/website/rserve/graphs.R b/website/rserve/graphs.R
index 75680b6..bbb2561 100644
--- a/website/rserve/graphs.R
+++ b/website/rserve/graphs.R
@@ -374,9 +374,12 @@ 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("Other", "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.5", "0.2.6", "0.2.7")
+ "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7",
+ "0.2.8")
+ getPalette = colorRampPalette(brewer.pal(12, "Paired"))
colours <- data.frame(breaks = known_versions,
- values = brewer.pal(length(known_versions), "Paired"),
+ values = rep(brewer.pal(min(12, length(known_versions)), "Paired"),
+ len = length(known_versions)),
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