jarvisplot 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.

Potentially problematic release.


This version of jarvisplot might be problematic. Click here for more details.

Files changed (42) hide show
  1. jarvisplot/Figure/adapters.py +773 -0
  2. jarvisplot/Figure/cards/std_axes_adapter_config.json +23 -0
  3. jarvisplot/Figure/data_pipelines.py +87 -0
  4. jarvisplot/Figure/figure.py +1573 -0
  5. jarvisplot/Figure/helper.py +217 -0
  6. jarvisplot/Figure/load_data.py +252 -0
  7. jarvisplot/__init__.py +0 -0
  8. jarvisplot/cards/a4paper/1x1/ternary.json +6 -0
  9. jarvisplot/cards/a4paper/2x1/rect.json +106 -0
  10. jarvisplot/cards/a4paper/2x1/rect5x1.json +344 -0
  11. jarvisplot/cards/a4paper/2x1/rect_cmap.json +181 -0
  12. jarvisplot/cards/a4paper/2x1/ternary.json +139 -0
  13. jarvisplot/cards/a4paper/2x1/ternary_cmap.json +189 -0
  14. jarvisplot/cards/a4paper/4x1/rect.json +106 -0
  15. jarvisplot/cards/a4paper/4x1/rect_cmap.json +174 -0
  16. jarvisplot/cards/a4paper/4x1/ternary.json +139 -0
  17. jarvisplot/cards/a4paper/4x1/ternary_cmap.json +189 -0
  18. jarvisplot/cards/args.json +50 -0
  19. jarvisplot/cards/colors/colormaps.json +140 -0
  20. jarvisplot/cards/default/output.json +11 -0
  21. jarvisplot/cards/gambit/1x1/ternary.json +6 -0
  22. jarvisplot/cards/gambit/2x1/rect_cmap.json +200 -0
  23. jarvisplot/cards/gambit/2x1/ternary.json +139 -0
  24. jarvisplot/cards/gambit/2x1/ternary_cmap.json +205 -0
  25. jarvisplot/cards/icons/JarvisHEP.png +0 -0
  26. jarvisplot/cards/icons/gambit.png +0 -0
  27. jarvisplot/cards/icons/gambit_small.png +0 -0
  28. jarvisplot/cards/style_preference.json +23 -0
  29. jarvisplot/cli.py +64 -0
  30. jarvisplot/client.py +6 -0
  31. jarvisplot/config.py +69 -0
  32. jarvisplot/core.py +237 -0
  33. jarvisplot/data_loader.py +441 -0
  34. jarvisplot/inner_func.py +162 -0
  35. jarvisplot/utils/__init__.py +0 -0
  36. jarvisplot/utils/cmaps.py +258 -0
  37. jarvisplot/utils/interpolator.py +377 -0
  38. jarvisplot-1.0.0.dist-info/METADATA +93 -0
  39. jarvisplot-1.0.0.dist-info/RECORD +42 -0
  40. jarvisplot-1.0.0.dist-info/WHEEL +5 -0
  41. jarvisplot-1.0.0.dist-info/entry_points.txt +2 -0
  42. jarvisplot-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,189 @@
1
+ {
2
+ "Frame": {
3
+ "figure": {
4
+ "figsize": [
5
+ 3.3,
6
+ 2.75
7
+ ]
8
+ },
9
+ "axes": {
10
+ "axlogo": {
11
+ "rect": [
12
+ 0.01,
13
+ 0.01,
14
+ 0.06,
15
+ 0.072
16
+ ],
17
+ "frameon": false,
18
+ "yticks": [],
19
+ "xticks": [],
20
+ "xlim": [
21
+ 0,
22
+ 1024
23
+ ],
24
+ "ylim": [
25
+ 1024,
26
+ 0
27
+ ]
28
+ },
29
+ "axtri": {
30
+ "rect": [
31
+ 0.173,
32
+ 0.168,
33
+ 0.745,
34
+ 0.775
35
+ ],
36
+ "xlim": [
37
+ 0.0,
38
+ 1.0
39
+ ],
40
+ "ylim": [
41
+ 0.0,
42
+ 1.0
43
+ ],
44
+ "clip_on": false,
45
+ "frameon": false,
46
+ "yticks": [],
47
+ "xticks": []
48
+ },
49
+ "axc": {
50
+ "rect": [
51
+ 0.100,
52
+ 0.400,
53
+ 0.036,
54
+ 0.528
55
+ ],
56
+ "xticks": []
57
+ }
58
+ },
59
+ "axtri": {
60
+ "frame": {
61
+ "linewidth": 0.8,
62
+ "solid_capstyle": "projecting",
63
+ "solid_joinstyle": "miter",
64
+ "clip_on": false,
65
+ "c": "#21171A",
66
+ "zorder": 5
67
+ },
68
+ "grid": {
69
+ "sep": 0.1,
70
+ "style": {
71
+ "color": "#C2C2C269",
72
+ "linewidth": 0.3,
73
+ "linestyle": "--"
74
+ }
75
+ },
76
+ "ticks": {
77
+ "majorsep": 0.1,
78
+ "minorsep": 0.025,
79
+ "majorlength": 0.02,
80
+ "minorlength": 0.008,
81
+ "majorstyle": {
82
+ "color": "#21171A",
83
+ "linestyle": "-",
84
+ "linewidth": 0.6,
85
+ "clip_on": false,
86
+ "zorder": 4
87
+ },
88
+ "bottomticklables": {
89
+ "ha": "center",
90
+ "va": "top",
91
+ "fontsize": 6,
92
+ "fontfamily": "Fira code"
93
+ },
94
+ "leftticklables": {
95
+ "ha": "center",
96
+ "va": "center",
97
+ "fontsize": 6,
98
+ "fontfamily": "Fira code"
99
+ },
100
+ "rightticklables": {
101
+ "ha": "left",
102
+ "va": "center",
103
+ "fontsize": 6,
104
+ "fontfamily": "Fira code"
105
+ },
106
+ "minorstyle": {
107
+ "color": "grey",
108
+ "linestyle": "-",
109
+ "linewidth": 0.4,
110
+ "clip_on": false,
111
+ "zorder": 3
112
+ }
113
+ },
114
+ "labels": {
115
+ "leftstyle": {
116
+ "x": 0.1375,
117
+ "y": 0.575,
118
+ "rotation": 60,
119
+ "fontsize": 12,
120
+ "fontfamily": "STIXGeneral",
121
+ "ha": "center",
122
+ "va": "center"
123
+ },
124
+ "bottomstyle": {
125
+ "x": 0.5,
126
+ "y": -0.12,
127
+ "fontsize": 12,
128
+ "fontfamily": "STIXGeneral",
129
+ "ha": "center",
130
+ "va": "center"
131
+ },
132
+ "rightstyle": {
133
+ "x": 0.8625,
134
+ "y": 0.575,
135
+ "rotation": -60,
136
+ "fontsize": 12,
137
+ "fontfamily": "STIXGeneral",
138
+ "ha": "center",
139
+ "va": "center"
140
+ }
141
+ }
142
+ },
143
+ "axc": {
144
+ "label": {
145
+ "ylabel": "",
146
+ "loc": "top",
147
+ "fontsize": 12,
148
+ "fontfamily": "STIXGeneral"
149
+ },
150
+ "ticks": {
151
+ "both": {
152
+ "labelsize": 6,
153
+ "direction": "in",
154
+ "labelfontfamily": "sans",
155
+ "top": false,
156
+ "left": true,
157
+ "right": false,
158
+ "bottom": false,
159
+ "which": "both"
160
+ },
161
+ "major": {
162
+ "which": "major",
163
+ "length": 4,
164
+ "width": 0.4,
165
+ "color": "black"
166
+ },
167
+ "minor": {
168
+ "which": "minor",
169
+ "length": 2,
170
+ "width": 0.4,
171
+ "color": "black"
172
+ }
173
+ }
174
+ },
175
+ "axlogo": {
176
+ "file": "&JP/jarvisplot/cards/icons/jarvisHEP.png"
177
+ }
178
+ },
179
+ "Style": {
180
+ "scatter": {
181
+ "s": 1.0,
182
+ "marker": "^",
183
+ "linewidths": 0.02,
184
+ "alpha": 1.0,
185
+ "zorder": 30,
186
+ "edgecolor": "white"
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "positionals": [
3
+ {
4
+ "name": "file",
5
+ "help": "path of the input file, in yaml format"
6
+ }
7
+ ],
8
+ "options": [
9
+ {
10
+ "short": "-v",
11
+ "long": "--version",
12
+ "dest": "version",
13
+ "help": "show JarvisPLOT version",
14
+ "action": "version"
15
+ },
16
+ {
17
+ "short": "-d",
18
+ "long": "--debug",
19
+ "dest": "debug",
20
+ "help": "Run JarvisPLOT in debug mode",
21
+ "action": "store_true"
22
+ },
23
+ {
24
+ "long": "--parse-data",
25
+ "dest": "parse_data",
26
+ "help": "Parse datasets (CSV/HDF5), sanitize column names, and write Variables/ColumnMap back to YAML",
27
+ "action": "store_true"
28
+ },
29
+ {
30
+ "long": "--out",
31
+ "dest": "out",
32
+ "help": "Output YAML path (used with --parse-data). If omitted and --inplace not set, prints to stdout",
33
+ "action": "store",
34
+ "metavar": "YAML_FILE"
35
+
36
+ },
37
+ {
38
+ "long": "--inplace",
39
+ "dest": "inplace",
40
+ "help": "Modify the input YAML file in place (used with --parse-data)",
41
+ "action": "store_true"
42
+ },
43
+ {
44
+ "long": "--print",
45
+ "dest": "no_logo",
46
+ "help": "Disable the Jarvis-HEP logo panel (axlogo)",
47
+ "action": "store_true"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "colormaps": [
3
+ {
4
+ "name": "qual22",
5
+ "type": "listed",
6
+ "colors": [
7
+ "#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd",
8
+ "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf",
9
+ "#393b79", "#637939", "#8c6d31", "#843c39", "#7b4173",
10
+ "#a55194", "#6b6ecf", "#b5cf6b", "#cedb9c", "#bd9e39",
11
+ "#ad494a", "#d6616b"
12
+ ]
13
+ },
14
+ {
15
+ "name": "gambit_cmap",
16
+ "type": "linear",
17
+ "colors": [
18
+ [0.00000 , "#000000"],
19
+ [0.04599 , "#000000"],
20
+ [0.31700 , "#3333ff"],
21
+ [0.50000 , "#00ffff"],
22
+ [1.00000 , "#ffff00"]
23
+ ]
24
+ },
25
+ {
26
+ "name": "jarvis_rainbow",
27
+ "type": "linear",
28
+ "colors": [
29
+ [0.0, "#74129B"],
30
+ [0.2, "#3E64FA"],
31
+ [0.4, "#25F1FF"],
32
+ [0.6, "#8CFFAC"],
33
+ [0.8, "#F8BB66"],
34
+ [1.0, "#FF2914"]
35
+ ]
36
+ },
37
+ {
38
+ "name": "jarvis_rainbow2",
39
+ "type": "linear",
40
+ "colors":[
41
+ [0.0, "#970944"],
42
+ [0.02127659574468085, "#A11447"],
43
+ [0.0425531914893617, "#AC1E4A"],
44
+ [0.06382978723404255, "#B5294D"],
45
+ [0.0851063829787234, "#C0344F"],
46
+ [0.10638297872340426, "#D14851"],
47
+ [0.1276595744680851, "#D8524F"],
48
+ [0.14893617021276595, "#DE5B4D"],
49
+ [0.1702127659574468, "#E4664A"],
50
+ [0.19148936170212766, "#EA6F49"],
51
+ [0.2127659574468085, "#ED7B4E"],
52
+ [0.23404255319148937, "#EF8754"],
53
+ [0.2553191489361702, "#F19459"],
54
+ [0.2765957446808511, "#F3A15F"],
55
+ [0.2978723404255319, "#F6AE64"],
56
+ [0.3191489361702128, "#F6B76B"],
57
+ [0.3404255319148936, "#F7C375"],
58
+ [0.3617021276595745, "#F9CC7E"],
59
+ [0.3829787234042553, "#FAD685"],
60
+ [0.40425531914893614, "#FAE08D"],
61
+ [0.425531914893617, "#FBE697"],
62
+ [0.44680851063829785, "#FDF2AB"],
63
+ [0.46808510638297873, "#FDF8B5"],
64
+ [0.48936170212765956, "#FEFFBF"],
65
+ [0.5106382978723404, "#F9FDB8"],
66
+ [0.5319148936170213, "#F5FBB0"],
67
+ [0.5531914893617021, "#F0F9A8"],
68
+ [0.574468085106383, "#EBF7A1"],
69
+ [0.5957446808510638, "#E6F599"],
70
+ [0.6170212765957447, "#DBF09B"],
71
+ [0.6382978723404256, "#D1EC9E"],
72
+ [0.6595744680851063, "#C6E79F"],
73
+ [0.6808510638297872, "#B9E0A2"],
74
+ [0.7021276595744681, "#AFDCA4"],
75
+ [0.723404255319149, "#A2D6A4"],
76
+ [0.7446808510638298, "#97D1A4"],
77
+ [0.7659574468085106, "#8ACCA5"],
78
+ [0.7872340425531915, "#7FC6A4"],
79
+ [0.8085106382978723, "#73C1A4"],
80
+ [0.8297872340425532, "#6AB6A9"],
81
+ [0.851063829787234, "#5EA9AE"],
82
+ [0.8723404255319149, "#559EB3"],
83
+ [0.8936170212765957, "#4C92B8"],
84
+ [0.9148936170212766, "#4487BB"],
85
+ [0.9361702127659575, "#487CB6"],
86
+ [0.9574468085106383, "#4C71B1"],
87
+ [0.9787234042553191, "#5265AC"],
88
+ [1.0, "#575AA6"]
89
+ ]
90
+ },
91
+ {
92
+ "name": "SpectralB",
93
+ "type": "linear",
94
+ "colors": [
95
+ [0.0, "#191A1C"],
96
+ [0.001, "#9e0142"],
97
+ [0.1, "#d43d4f"],
98
+ [0.2, "#f46d43"],
99
+ [0.3, "#fdad60"],
100
+ [0.4, "#fee08b"],
101
+ [0.5, "#ffffbe"],
102
+ [0.6, "#e6f598"],
103
+ [0.7, "#aadca4"],
104
+ [0.8, "#66c2a5"],
105
+ [0.9, "#3387bc"],
106
+ [1.0, "#5e4fa2"]
107
+ ]
108
+ },
109
+ {
110
+ "name": "RdBuB",
111
+ "type": "linear",
112
+ "colors": [
113
+ [0.0, "#191A1C"],
114
+ [0.001, "#67001f"],
115
+ [0.1, "#b1182b"],
116
+ [0.2, "#d6604d"],
117
+ [0.3, "#f3a481"],
118
+ [0.4, "#fddbc7"],
119
+ [0.5, "#f6f7f7"],
120
+ [0.6, "#d1e5f0"],
121
+ [0.7, "#90c4dd"],
122
+ [0.8, "#4393c3"],
123
+ [0.9, "#2065ab"],
124
+ [1.0, "#053061"]
125
+ ]
126
+ },
127
+ {
128
+ "name": "chrisB",
129
+ "type": "linear",
130
+ "colors": [
131
+ [0.0, "#000000"],
132
+ [0.001, "#68011E"],
133
+ [0.2, "#D05A50"],
134
+ [0.5, "#FFFFFF"],
135
+ [0.8, "#187FE2"],
136
+ [1.0, "#04224C"]
137
+ ]
138
+ }
139
+ ]
140
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "output": {
3
+ "savefig": {
4
+ "dpi": 150
5
+ },
6
+ "format": [
7
+ "pdf"
8
+ ]
9
+ }
10
+
11
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "Figure": {
3
+ "figsize": []
4
+ },
5
+ "Style": {}
6
+ }
@@ -0,0 +1,200 @@
1
+ {
2
+ "Frame": {
3
+ "figure": {
4
+ "figsize": [
5
+ 3.3,
6
+ 2.75
7
+ ]
8
+ },
9
+ "axes": {
10
+ "axlogo": {
11
+ "rect": [
12
+ 0.67,
13
+ 0.168,
14
+ 0.15,
15
+ 0.09
16
+ ],
17
+ "frameon": false,
18
+ "yticks": [],
19
+ "xticks": [],
20
+ "xlim": [
21
+ 0,
22
+ 1024
23
+ ],
24
+ "ylim": [
25
+ 512,
26
+ 0
27
+ ]
28
+ },
29
+ "ax": {
30
+ "rect": [
31
+ 0.140,
32
+ 0.168,
33
+ 0.680,
34
+ 0.775
35
+ ],
36
+ "facecolor": "#808080"
37
+ },
38
+ "axc": {
39
+ "rect": [
40
+ 0.835,
41
+ 0.193,
42
+ 0.042,
43
+ 0.725
44
+ ],
45
+ "xticks": []
46
+ }
47
+ },
48
+ "ax": {
49
+ "frame": {
50
+ "linewidth": 0.8,
51
+ "solid_capstyle": "projecting",
52
+ "solid_joinstyle": "miter",
53
+ "clip_on": false,
54
+ "c": "#21171A",
55
+ "zorder": 100
56
+ },
57
+ "xaxis": {
58
+ "min_endpoints": {
59
+ "tick": false,
60
+ "label": true
61
+ },
62
+ "max_endpoints": {
63
+ "tick": false,
64
+ "label": true
65
+ }
66
+ },
67
+ "yaxis": {
68
+ "min_endpoints": {
69
+ "tick": false,
70
+ "label": false
71
+ },
72
+ "max_endpoints": {
73
+ "tick": false,
74
+ "label": true
75
+ }
76
+ },
77
+ "grid": {
78
+ "sep": 0.1,
79
+ "style": {
80
+ "color": "#C2C2C269",
81
+ "linewidth": 0.3,
82
+ "linestyle": "--"
83
+ }
84
+ },
85
+ "ticks": {
86
+ "both": {
87
+ "labelsize": 7,
88
+ "direction": "in",
89
+ "labelfontfamily": "sans",
90
+ "top": true,
91
+ "left": true,
92
+ "right": true,
93
+ "bottom": true,
94
+ "which": "both",
95
+ "zorder": 1000
96
+ },
97
+ "major": {
98
+ "which": "major",
99
+ "length": 8,
100
+ "width": 0.8,
101
+ "color": "white",
102
+ "zorder": 1000
103
+ },
104
+ "minor": {
105
+ "which": "minor",
106
+ "length": 4,
107
+ "width": 0.8,
108
+ "color": "white",
109
+ "zorder": 1000
110
+ }
111
+ },
112
+ "labels": {
113
+ "zorder": 1000,
114
+ "xlabel": {
115
+ "loc": "center",
116
+ "fontsize": 13,
117
+ "fontfamily": "STIXGeneral"
118
+ },
119
+ "ylabel": {
120
+ "loc": "center",
121
+ "fontsize": 13,
122
+ "fontfamily": "STIXGeneral"
123
+ },
124
+ "ylabel_coords": {
125
+ "x": -0.1,
126
+ "y": 0.5
127
+ }
128
+ },
129
+ "text": [
130
+ {
131
+ "x": 1.0,
132
+ "y": 1.002,
133
+ "s": "GAMBIT 2.7",
134
+ "ha": "right",
135
+ "va": "bottom",
136
+ "color": "black",
137
+ "fontfamily": "Fira Code",
138
+ "fontsize": "xx-small",
139
+ "fontstyle": "normal",
140
+ "fontweight": "normal",
141
+ "transform": true
142
+ }
143
+ ],
144
+ "spines": {
145
+ "color": "none"
146
+ }
147
+ },
148
+ "axlogo": {
149
+ "file": "&JP/jarvisplot/cards/icons/gambit_small.png",
150
+ "text": []
151
+ },
152
+ "axc": {
153
+ "label": {
154
+ "ylabel": "",
155
+ "loc": "center",
156
+ "fontsize": 12,
157
+ "fontfamily": "STIXGeneral"
158
+ },
159
+ "ylabel_coords": {
160
+ "x": 2.4,
161
+ "y": 0.5
162
+ },
163
+ "ticks": {
164
+ "ticks_position": "right",
165
+ "both": {
166
+ "labelsize": 7,
167
+ "direction": "in",
168
+ "labelfontfamily": "sans",
169
+ "top": false,
170
+ "left": false,
171
+ "right": true,
172
+ "bottom": false,
173
+ "which": "both"
174
+ },
175
+ "major": {
176
+ "which": "major",
177
+ "length": 8,
178
+ "width": 0.8,
179
+ "color": "black"
180
+ },
181
+ "minor": {
182
+ "which": "minor",
183
+ "length": 4,
184
+ "width": 0.8,
185
+ "color": "black"
186
+ }
187
+ }
188
+ }
189
+ },
190
+ "Style": {
191
+ "scatter": {
192
+ "s": 1.0,
193
+ "marker": ",",
194
+ "linewidths": 0.02,
195
+ "alpha": 1.0,
196
+ "zorder": 30,
197
+ "edgecolor": "None"
198
+ }
199
+ }
200
+ }