From cabbb5b4e8790fe55e10949bdebce08d0a35127c Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <lars@6xq.net>
Date: Thu, 26 Sep 2019 17:14:21 +0200
Subject: plot: Style plots
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Well, it’s not that easy.
---
 lulua/plot.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lulua/plot.py b/lulua/plot.py
index 885500a..13077e0 100644
--- a/lulua/plot.py
+++ b/lulua/plot.py
@@ -89,9 +89,15 @@ def letterfreq (args):
     p.line ('letters', 'cumRel', source=source, y_range_name='cum', line_width=2)
     p.add_layout(LinearAxis(y_range_name="cum"), 'right')
 
+    # styling
     p.xgrid.grid_line_color = None
-    p.xaxis.major_label_text_font_size = "2em"
-    p.xaxis.major_label_text_font_size = "2em"
+    p.xaxis.major_label_text_font_size = "1.5em"
+    p.xaxis.major_label_text_font_size = "1.5em"
+    p.xaxis.major_label_text_font = 'IBM Plex Arabic'
+    p.yaxis.major_label_text_font = 'IBM Plex Arabic'
+    # no border fill
+    p.border_fill_color = None
+    p.background_fill_alpha = 0.5
 
     json.dump (json_item (p), sys.stdout)
 
-- 
cgit v1.2.3