diff options
author | Christian C <cc@localhost> | 2024-11-11 12:29:32 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2024-11-11 12:29:32 -0800 |
commit | b85ee9d64a536937912544c7bbd5b98b635b7e8d (patch) | |
tree | cef7bc17d7b29f40fc6b1867d0ce0a742d5583d0 /code/sunlab/__init__.py |
Initial commit
Diffstat (limited to 'code/sunlab/__init__.py')
-rw-r--r-- | code/sunlab/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/code/sunlab/__init__.py b/code/sunlab/__init__.py new file mode 100644 index 0000000..0ccac86 --- /dev/null +++ b/code/sunlab/__init__.py @@ -0,0 +1,17 @@ +from .common import * + +font = {"family": "DejaVu Sans", "weight": "regular", "size": 20} +import matplotlib + +matplotlib.rc("font", **font) + + +def set_font(ptsize=10): + font = {"family": "DejaVu Sans", "weight": "regular", "size": ptsize} + import matplotlib + + matplotlib.rc("font", **font) + + +def set_font_l(ptsize=20): + set_font(ptsize) |