figuratively 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- figuratively/__init__.py +34 -0
- figuratively/_rootcolor_table.py +22 -0
- figuratively/auto.py +908 -0
- figuratively/checks.py +153 -0
- figuratively/cli.py +106 -0
- figuratively/colors.py +217 -0
- figuratively/data.py +518 -0
- figuratively/explore.py +134 -0
- figuratively/figuratively.h +76 -0
- figuratively/options.py +157 -0
- figuratively/plot.py +1139 -0
- figuratively/py.typed +0 -0
- figuratively/style.py +75 -0
- figuratively-1.0.0.dist-info/METADATA +364 -0
- figuratively-1.0.0.dist-info/RECORD +18 -0
- figuratively-1.0.0.dist-info/WHEEL +4 -0
- figuratively-1.0.0.dist-info/entry_points.txt +3 -0
- figuratively-1.0.0.dist-info/licenses/LICENSE +21 -0
figuratively/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Figuratively: publication-quality plots straight from ROOT files (uproot only, no ROOT needed)."""
|
|
2
|
+
from .auto import config_path, configure, plot, root_tex
|
|
3
|
+
from .checks import check, summary
|
|
4
|
+
from .colors import palette, root_color
|
|
5
|
+
from .data import H1, H2, G, list_objects, load, load_all
|
|
6
|
+
from .explore import init, inspect
|
|
7
|
+
from .options import options
|
|
8
|
+
from .plot import Plot
|
|
9
|
+
from .style import THESIS_RC, use_style
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"H1",
|
|
13
|
+
"H2",
|
|
14
|
+
"THESIS_RC",
|
|
15
|
+
"G",
|
|
16
|
+
"Plot",
|
|
17
|
+
"check",
|
|
18
|
+
"config_path",
|
|
19
|
+
"configure",
|
|
20
|
+
"init",
|
|
21
|
+
"inspect",
|
|
22
|
+
"list_objects",
|
|
23
|
+
"load",
|
|
24
|
+
"load_all",
|
|
25
|
+
"options",
|
|
26
|
+
"palette",
|
|
27
|
+
"plot",
|
|
28
|
+
"root_color",
|
|
29
|
+
"root_tex",
|
|
30
|
+
"summary",
|
|
31
|
+
"use_style",
|
|
32
|
+
]
|
|
33
|
+
__version__ = "1.0.0"
|
|
34
|
+
__author__ = "Abhishek Bohare"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""ROOT's fixed colour table (indices 0-10, 11-50, 201-..., 390-..., 406-..., 590-..., 791-..., 920-...).
|
|
2
|
+
|
|
3
|
+
The values are the standard ROOT TColor definitions; they were extracted programmatically from the
|
|
4
|
+
public JSROOT source (https://github.com/root-project/jsroot) so that no number is typed by hand.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
# colour 0..10 (white, black, red, green, blue, yellow, magenta, cyan, then two extras)
|
|
8
|
+
BASIC = ["ffffff", "000000", "ff0000", "00ff00", "0000ff", "ffff00", "ff00ff", "00ffff", "59d454", "5954d9", "ffffff"]
|
|
9
|
+
|
|
10
|
+
# (first index, concatenated 6-digit hex colours)
|
|
11
|
+
BLOCKS = [
|
|
12
|
+
(11, "c1b7ad4d4d4d6666668080809a9a9ab3b3b3cdcdcde6e6e6f3f3f3cdc8accdc8acc3c0a9bbb6a4b3a697b8a49cae9a8d9c8f83886657b1cfc885c3a48aa9a1839f8daebdc87b8f9a768a926983976e7b857d9ad280809caca6c0d4cf88dfbb88bd9f83c89a7dc08378cf5f61ac8f94a6787b946971d45a549300ff7b00ff6300ff4b00ff3300ff1b00ff0300ff0014ff002cff0044ff005cff0074ff008cff00a4ff00bcff00d4ff00ecff00fffd00ffe500ffcd00ffb500ff9d00ff8500ff6d00ff5500ff3d00ff2600ff0e0aff0022ff003aff0052ff006aff0082ff009aff00b1ff00c9ff00e1ff00f9ff00ffef00ffd700ffbf00ffa700ff8f00ff7700ff6000ff4800ff3000ff18006f2da8a52a2ab2beb55790fcf89c20e42536964a8b9c9ca17a21dd1845fbff5e02c91f16c849a9adad7d86c8dd578dff6563643f90daffa90ebd1f0194a4a2832db6a96b59e76300b9ac7071758192daddb2b2b2"),
|
|
13
|
+
(201, "5c5c5c7b7b7bb8b8b8d7d7d78a0f0fb81414ec4848f176760f8a0f14b81448ec4876f1760f0f8a1414b84848ec7676f18a8a0fb8b814ecec48f1f1768a0f8ab814b8ec48ecf176f10f8a8a14b8b848ecec76f1f1"),
|
|
14
|
+
(390, "ffffcdffff9acdcd9affff66cdcd669a9a66ffff33cdcd339a9a33666633ffff00cdcd009a9a00666600333300"),
|
|
15
|
+
(406, "cdffcd9aff9a9acd9a66ff6666cd66669a6633ff3333cd33339a3333663300ff0000cd00009a00006600003300"),
|
|
16
|
+
(422, "cdffff9affff9acdcd66ffff66cdcd669a9a33ffff33cdcd339a9a33666600ffff00cdcd009a9a006666003333"),
|
|
17
|
+
(590, "cdcdff9a9aff9a9acd6666ff6666cd66669a3333ff3333cd33339a3333660000ff0000cd00009a000066000033"),
|
|
18
|
+
(606, "ffcdffff9affcd9acdff66ffcd66cd9a669aff33ffcd33cd9a339a663366ff00ffcd00cd9a009a660066330033"),
|
|
19
|
+
(622, "ffcdcdff9a9acd9a9aff6666cd66669a6666ff3333cd33339a3333663333ff0000cd00009a0000660000330000"),
|
|
20
|
+
(791, "ffcd9acd9a669a66339a6600cd9a33ffcd66ff9a00ffcd33cd9a00ffcd00ff9a33cd66006633009a3300cd6633ff9a66ff6600ff6633cd3300ff33009aff3366cd00336600339a0066cd339aff6666ff0066ff3333cd0033ff00cdff9a9acd66669a33669a009acd33cdff669aff00cdff339acd00cdff009affcd66cd9a339a66009a6633cd9a66ffcd00ff6633ffcd00cd9a00ffcd33ff9a00cd66006633009a3333cd6666ff9a00ff9a33ff6600cd3300ff339acdff669acd33669a00339a3366cd669aff0066ff3366ff0033cd0033ff339aff0066cd00336600669a339acd66cdff009aff33cdff009acd00cdffcd9aff9a66cd66339a66009a9a33cdcd66ff9a00ffcd33ff9a00cdcd00ff9a33ff6600cd33006633009a6633cd9a66ff6600ff6633ff3300cd3300ffff339acd00666600339a0033cd3366ff669aff0066ff3366cd0033ff0033ff9acdcd669a9a33669a0066cd339aff66cdff009acd009aff33cdff009a"),
|
|
21
|
+
(920, "cdcdcd9a9a9a666666333333"),
|
|
22
|
+
]
|