[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Increase right margin on graphs.
commit 9470e4b70e7ec2285fbb56939388503171517307
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Fri Oct 27 14:20:09 2017 +0200
Increase right margin on graphs.
The goal is to avoid cutting off axis labels in some edge cases.
---
website/rserve/graphs.R | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/website/rserve/graphs.R b/website/rserve/graphs.R
index 149ddd5..62cc028 100644
--- a/website/rserve/graphs.R
+++ b/website/rserve/graphs.R
@@ -273,7 +273,8 @@ formatter <- function(x, ...) {
format(x, ..., scientific = FALSE, big.mark = ' ')
}
-theme_update(plot.title = element_text(hjust = 0.5))
+theme_update(plot.title = element_text(hjust = 0.5),
+ plot.margin = margin(5.5, 11, 5.5, 5.5))
plot_networksize <- function(start, end, path) {
end <- min(end, as.character(Sys.Date() - 2))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits