[tor-commits] [metrics-web/master] Increase right margin on graphs.

karsten at torproject.org karsten at torproject.org
Fri Oct 27 12:20:52 UTC 2017


commit 9470e4b70e7ec2285fbb56939388503171517307
Author: Karsten Loesing <karsten.loesing at gmx.net>
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))



More information about the tor-commits mailing list