diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-09-26 17:14:21 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-09-26 17:14:21 +0200 |
commit | cabbb5b4e8790fe55e10949bdebce08d0a35127c (patch) | |
tree | 2e006dd2c95cd5d17a3ab93cf2c539a76baead2c | |
parent | 37841eb414de3865d237ae634a40c6f9846e42c2 (diff) | |
download | lulua-cabbb5b4e8790fe55e10949bdebce08d0a35127c.tar.gz lulua-cabbb5b4e8790fe55e10949bdebce08d0a35127c.tar.bz2 lulua-cabbb5b4e8790fe55e10949bdebce08d0a35127c.zip |
plot: Style plots
Well, it’s not that easy.
-rw-r--r-- | lulua/plot.py | 10 |
1 files 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) |