ialdev-vis 0.1.0__tar.gz

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.
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: ialdev-vis
3
+ Version: 0.1.0
4
+ Summary: iad.vis — visualization utilities (image grids, viewers, colormaps, matplotlib helpers)
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Dist: ialdev-core
15
+ Requires-Dist: ialdev-io
16
+ Requires-Dist: matplotlib>=3.5.0
17
+ Requires-Dist: numpy>=1.20.0
18
+ Requires-Dist: regex>=2021.0.0
19
+ Requires-Dist: open3d>=0.15.0 ; extra == "3d"
20
+ Requires-Dist: ipyvolume>=0.6.0 ; extra == "3d"
21
+ Requires-Dist: ialdev-vis[qt, jupyter, 3d, dev] ; extra == "all"
22
+ Requires-Dist: pytest>=7.0.0 ; extra == "dev"
23
+ Requires-Dist: pytest-cov>=3.0.0 ; extra == "dev"
24
+ Requires-Dist: ipywidgets>=7.0.0 ; extra == "jupyter"
25
+ Requires-Dist: IPython>=7.0.0 ; extra == "jupyter"
26
+ Requires-Dist: PyQt5>=5.15.0 ; extra == "qt"
27
+ Requires-Dist: scikit-image>=0.19.0 ; extra == "qt"
28
+ Provides-Extra: 3d
29
+ Provides-Extra: all
30
+ Provides-Extra: dev
31
+ Provides-Extra: jupyter
32
+ Provides-Extra: qt
33
+
34
+ # ialdev-vis
35
+
36
+ `iad.vis` — visualization utilities (image grids, viewers, colormaps, matplotlib helpers).
37
+
38
+ Install: `pip install ialdev-vis`
39
+
@@ -0,0 +1,5 @@
1
+ # ialdev-vis
2
+
3
+ `iad.vis` — visualization utilities (image grids, viewers, colormaps, matplotlib helpers).
4
+
5
+ Install: `pip install ialdev-vis`
@@ -0,0 +1,63 @@
1
+ [build-system]
2
+ requires = ["flit_core>=3.11,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "ialdev-vis"
7
+ version = "0.1.0"
8
+ description = "iad.vis — visualization utilities (image grids, viewers, colormaps, matplotlib helpers)"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "MIT"}
12
+ classifiers = [
13
+ "Development Status :: 4 - Beta",
14
+ "Intended Audience :: Developers",
15
+ "Intended Audience :: Science/Research",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ ]
21
+
22
+ dependencies = [
23
+ "ialdev-core",
24
+ "ialdev-io",
25
+ "matplotlib>=3.5.0",
26
+ "numpy>=1.20.0",
27
+ "regex>=2021.0.0",
28
+ ]
29
+
30
+ [project.optional-dependencies]
31
+ qt = [
32
+ "PyQt5>=5.15.0",
33
+ "scikit-image>=0.19.0",
34
+ ]
35
+ jupyter = [
36
+ "ipywidgets>=7.0.0",
37
+ "IPython>=7.0.0",
38
+ ]
39
+ "3d" = [
40
+ "open3d>=0.15.0",
41
+ "ipyvolume>=0.6.0",
42
+ ]
43
+ dev = [
44
+ "pytest>=7.0.0",
45
+ "pytest-cov>=3.0.0",
46
+ ]
47
+ all = [
48
+ "ialdev-vis[qt,jupyter,3d,dev]",
49
+ ]
50
+
51
+ [tool.flit.module]
52
+ name = "iad.vis"
53
+
54
+ [tool.pytest.ini_options]
55
+ testpaths = ["tests"]
56
+ python_files = ["test_*.py"]
57
+ python_classes = ["Test*"]
58
+ python_functions = ["test_*"]
59
+
60
+ [tool.black]
61
+ line-length = 100
62
+ target-version = ["py310", "py311", "py312"]
63
+ include = '\.pyi?$'
@@ -0,0 +1,6 @@
1
+ """Flow analysis package
2
+ Evaluation scripts, Data Transfromation & Analysis
3
+ Visualization, Metrics, Reports
4
+ """
5
+
6
+ from .insight import imgrid, imhist
File without changes
@@ -0,0 +1,18 @@
1
+ _hex_colors = [0x2c5d86, 0x2d6088, 0x2d6389, 0x2e668b, 0x2f688c, 0x2f6b8e, 0x306d8f, 0x317090, 0x327291,
2
+ 0x337592, 0x347793, 0x357a94, 0x367c95, 0x387e96, 0x398197, 0x3b8398, 0x3c8598, 0x3e8799,
3
+ 0x408999, 0x418b9a, 0x438d9a, 0x458f9a, 0x47919a, 0x49939b, 0x4b959b, 0x4d969b, 0x4f989b,
4
+ 0x519a9a, 0x539c9a, 0x559d9a, 0x579f99, 0x5aa099, 0x5ca299, 0x5ea398, 0x60a497, 0x63a696,
5
+ 0x65a796, 0x67a895, 0x69a994, 0x6cab93, 0x6eac92, 0x70ad90, 0x72ae8f, 0x75af8e, 0x77af8c,
6
+ 0x79b08b, 0x7bb189, 0x7eb288, 0x80b286, 0x82b384, 0x84b482, 0x87b480, 0x89b57e, 0x8bb57c,
7
+ 0x8db67a, 0x8fb678, 0x91b676, 0x93b673, 0x95b771, 0x97b76e, 0x99b76b, 0x9bb768, 0x9db766,
8
+ 0x9fb763, 0xa1b760, 0xa4b75f, 0xa6b75d, 0xa8b75c, 0xabb75a, 0xadb759, 0xafb758, 0xb1b756,
9
+ 0xb4b755, 0xb6b653, 0xb8b652, 0xbab650, 0xbcb54f, 0xbeb54d, 0xc0b54c, 0xc2b44a, 0xc4b449,
10
+ 0xc6b347, 0xc8b246, 0xc9b244, 0xcbb143, 0xcdb041, 0xcfaf40, 0xd1af3e, 0xd2ae3d, 0xd4ad3b,
11
+ 0xd6ac3a, 0xd7ab38, 0xd9aa37, 0xdaa835, 0xdca734, 0xdea633, 0xdfa531, 0xe1a330, 0xe2a22e,
12
+ 0xe3a02d, 0xe59f2b, 0xe69d2a, 0xe79c28, 0xe99a27, 0xea9825, 0xeb9724, 0xec9523, 0xee9321,
13
+ 0xef9120, 0xf08f1e, 0xf18d1d, 0xf28a1c, 0xf3881a, 0xf48619, 0xf58318, 0xf68116, 0xf77e15,
14
+ 0xf87c14, 0xf97913, 0xfa7611, 0xfa7310, 0xfb700f, 0xfc6d0e, 0xfd690d, 0xfd660c, 0xfe620b,
15
+ 0xfe501a, 0xff4b29]
16
+
17
+ cm_data = [*map(lambda x: [((x >> sh) & 0xff)/0xff for sh in (16, 8, 0)],
18
+ _hex_colors)]
@@ -0,0 +1,280 @@
1
+ from matplotlib.colors import ListedColormap
2
+
3
+ # Used to reconstruct the colormap in viscm
4
+ parameters = {'xp': [-16.253504798878453, -21.443303138142994, -12.880135878356498, 22.18399130749728, 22.18399130749728, 63.43565133405767, 43.10032596885182, 2.6892591394370697, -3.380417723047202, 49.137954275854639, -19.107893885473942, -51.02515367195079, -42.202496495201103, -12.101666127466842, 9.9549768144074164],
5
+ 'yp': [-13.812277580071168, -21.337485172004733, -38.204329774614465, -38.74501992031871, -22.767264276228417, 25.74701195219123, 25.456507304116855, 6.9469157769869696, 61.18857901726426, -13.552787663107949, 71.040925266903912, 33.933867141162523, -9.1414590747330919, 25.111209964412808, 12.655693950177948],
6
+ 'min_Jp': 57.5,
7
+ 'max_Jp': 80.3125}
8
+
9
+ cm_data = [[ 0.26416192, 0.56519848, 0.65345367],
10
+ [ 0.24702777, 0.56781828, 0.66297905],
11
+ [ 0.23008782, 0.57012064, 0.6730557 ],
12
+ [ 0.21380132, 0.57207798, 0.68354781],
13
+ [ 0.19869516, 0.57367423, 0.69431641],
14
+ [ 0.18533134, 0.5749048 , 0.70523844],
15
+ [ 0.17433945, 0.57577423, 0.71616419],
16
+ [ 0.16623584, 0.57629598, 0.72700658],
17
+ [ 0.16143655, 0.57648758, 0.73767881],
18
+ [ 0.16014921, 0.57637282, 0.74808254],
19
+ [ 0.1622909 , 0.57597464, 0.75817083],
20
+ [ 0.16755163, 0.57531543, 0.7679058 ],
21
+ [ 0.17546303, 0.57441838, 0.77724978],
22
+ [ 0.18549281, 0.57330638, 0.78617259],
23
+ [ 0.19710922, 0.57200518, 0.79463971],
24
+ [ 0.20988767, 0.57053074, 0.80265333],
25
+ [ 0.22346653, 0.56890212, 0.81020225],
26
+ [ 0.23756147, 0.56713731, 0.81727925],
27
+ [ 0.2519545 , 0.56525317, 0.8238806 ],
28
+ [ 0.26648103, 0.56326556, 0.83000549],
29
+ [ 0.28101798, 0.56118929, 0.83565577],
30
+ [ 0.29547395, 0.55903818, 0.84083559],
31
+ [ 0.30978147, 0.55682512, 0.84555118],
32
+ [ 0.32389118, 0.55456202, 0.84981067],
33
+ [ 0.33776738, 0.55225991, 0.85362382],
34
+ [ 0.35138483, 0.54992885, 0.85700192],
35
+ [ 0.36472624, 0.54757804, 0.85995753],
36
+ [ 0.37778051, 0.54521578, 0.86250431],
37
+ [ 0.39054131, 0.54284949, 0.86465688],
38
+ [ 0.40300608, 0.54048574, 0.86643056],
39
+ [ 0.41517518, 0.5381303 , 0.86784124],
40
+ [ 0.42705132, 0.53578813, 0.86890519],
41
+ [ 0.43863899, 0.53346345, 0.86963892],
42
+ [ 0.44994413, 0.53115977, 0.87005896],
43
+ [ 0.46096238, 0.52888354, 0.87018292],
44
+ [ 0.47170869, 0.52663492, 0.87002723],
45
+ [ 0.48219641, 0.52441403, 0.86960747],
46
+ [ 0.49243477, 0.52222193, 0.86893913],
47
+ [ 0.50243329, 0.52005918, 0.86803716],
48
+ [ 0.51220168, 0.51792595, 0.86691594],
49
+ [ 0.52174971, 0.51582199, 0.86558921],
50
+ [ 0.53107179, 0.51375222, 0.86407476],
51
+ [ 0.54019353, 0.5117103 , 0.86238094],
52
+ [ 0.54912577, 0.50969466, 0.86051883],
53
+ [ 0.55787809, 0.50770392, 0.85849909],
54
+ [ 0.56645981, 0.50573651, 0.85633158],
55
+ [ 0.57487135, 0.50379403, 0.85402928],
56
+ [ 0.58312689, 0.50187275, 0.85159866],
57
+ [ 0.59124058, 0.49996861, 0.84904469],
58
+ [ 0.5992207 , 0.4980796 , 0.84637393],
59
+ [ 0.60707517, 0.49620369, 0.84359218],
60
+ [ 0.61480285, 0.49434243, 0.84070954],
61
+ [ 0.62242153, 0.49248957, 0.83772465],
62
+ [ 0.6299389 , 0.49064276, 0.83464049],
63
+ [ 0.63736148, 0.48880006, 0.83145981],
64
+ [ 0.64469241, 0.48696087, 0.82818671],
65
+ [ 0.65193996, 0.48512236, 0.82482109],
66
+ [ 0.65911271, 0.48328146, 0.82136153],
67
+ [ 0.66621564, 0.48143659, 0.81780809],
68
+ [ 0.67325283, 0.47958653, 0.81416065],
69
+ [ 0.68022961, 0.47772949, 0.81041734],
70
+ [ 0.68715174, 0.47586344, 0.80657503],
71
+ [ 0.69402257, 0.47398743, 0.8026316 ],
72
+ [ 0.7008453 , 0.47210057, 0.79858433],
73
+ [ 0.70762567, 0.47020078, 0.79442746],
74
+ [ 0.71436483, 0.46828816, 0.79015844],
75
+ [ 0.72106446, 0.4663626 , 0.78577362],
76
+ [ 0.72772586, 0.46442422, 0.78126913],
77
+ [ 0.734356 , 0.4624703 , 0.77663477],
78
+ [ 0.74095225, 0.46050299, 0.77186905],
79
+ [ 0.74751395, 0.45852353, 0.76696817],
80
+ [ 0.75404083, 0.45653303, 0.76192754],
81
+ [ 0.76053668, 0.45453057, 0.75673755],
82
+ [ 0.76700232, 0.45251677, 0.75139099],
83
+ [ 0.77343183, 0.45049597, 0.7458882 ],
84
+ [ 0.77982344, 0.44847043, 0.74022461],
85
+ [ 0.78617515, 0.44644267, 0.73439574],
86
+ [ 0.79249264, 0.44441105, 0.72838655],
87
+ [ 0.79876913, 0.44238088, 0.72219752],
88
+ [ 0.80499858, 0.44035729, 0.71582865],
89
+ [ 0.81117762, 0.43834407, 0.70927631],
90
+ [ 0.81730267, 0.43634531, 0.70253714],
91
+ [ 0.82337269, 0.43436379, 0.69560357],
92
+ [ 0.82938841, 0.43240142, 0.68846432],
93
+ [ 0.83533757, 0.43046779, 0.68112912],
94
+ [ 0.84121532, 0.42856845, 0.67359631],
95
+ [ 0.84701652, 0.42670932, 0.66586474],
96
+ [ 0.8527358 , 0.42489669, 0.65793374],
97
+ [ 0.85836748, 0.42313723, 0.64980322],
98
+ [ 0.86390563, 0.42143799, 0.6414737 ],
99
+ [ 0.86934866, 0.41980373, 0.632936 ],
100
+ [ 0.87468576, 0.41824482, 0.62420053],
101
+ [ 0.87990867, 0.41677035, 0.61527316],
102
+ [ 0.8850102 , 0.415389 , 0.60615785],
103
+ [ 0.8899829 , 0.41410979, 0.59685944],
104
+ [ 0.89481906, 0.41294206, 0.58738376],
105
+ [ 0.89951073, 0.41189543, 0.5777377 ],
106
+ [ 0.90404977, 0.4109797 , 0.56792923],
107
+ [ 0.90842789, 0.41020482, 0.55796748],
108
+ [ 0.91263669, 0.40958078, 0.54786271],
109
+ [ 0.91666774, 0.4091175 , 0.53762639],
110
+ [ 0.92051264, 0.40882469, 0.52727113],
111
+ [ 0.92416313, 0.40871173, 0.51681068],
112
+ [ 0.92761116, 0.40878753, 0.5062598 ],
113
+ [ 0.93084904, 0.4090603 , 0.49563425],
114
+ [ 0.93387046, 0.40953733, 0.48494415],
115
+ [ 0.93666851, 0.41022541, 0.47420532],
116
+ [ 0.93923579, 0.41113026, 0.46344315],
117
+ [ 0.94156694, 0.41225598, 0.45267597],
118
+ [ 0.94365747, 0.41360531, 0.44192211],
119
+ [ 0.94550385, 0.41517951, 0.4311997 ],
120
+ [ 0.94710354, 0.41697839, 0.42052599],
121
+ [ 0.94845506, 0.41900186, 0.40990329],
122
+ [ 0.94955721, 0.42124548, 0.39936434],
123
+ [ 0.95041058, 0.42370456, 0.38892417],
124
+ [ 0.95101675, 0.42637313, 0.37859651],
125
+ [ 0.95137764, 0.42924536, 0.36838695],
126
+ [ 0.95149637, 0.43231295, 0.35830909],
127
+ [ 0.95137745, 0.43556588, 0.34837797],
128
+ [ 0.95102559, 0.43899453, 0.33860117],
129
+ [ 0.95044498, 0.44259039, 0.32897897],
130
+ [ 0.94964181, 0.44634197, 0.31952112],
131
+ [ 0.94862239, 0.45023819, 0.31023309],
132
+ [ 0.94739247, 0.45426898, 0.30111564],
133
+ [ 0.94595754, 0.4584248 , 0.29216768],
134
+ [ 0.94432471, 0.46269429, 0.28339327],
135
+ [ 0.94249991, 0.46706787, 0.27479128],
136
+ [ 0.9404884 , 0.47153692, 0.26635853],
137
+ [ 0.93829641, 0.47609192, 0.25809501],
138
+ [ 0.93592926, 0.4807246 , 0.2499983 ],
139
+ [ 0.93339202, 0.48542716, 0.24206588],
140
+ [ 0.9306896 , 0.49019216, 0.23429551],
141
+ [ 0.92782621, 0.49501307, 0.22668416],
142
+ [ 0.92480607, 0.49988345, 0.21922975],
143
+ [ 0.92163384, 0.50479671, 0.21193178],
144
+ [ 0.91831186, 0.50974853, 0.20478637],
145
+ [ 0.91484297, 0.51473422, 0.19779187],
146
+ [ 0.91123259, 0.519747 , 0.19095178],
147
+ [ 0.90748135, 0.5247844 , 0.18426274],
148
+ [ 0.90359086, 0.52984313, 0.17772446],
149
+ [ 0.89956415, 0.53491882, 0.17133997],
150
+ [ 0.89540575, 0.54000606, 0.1651152 ],
151
+ [ 0.8911137 , 0.54510473, 0.15904857],
152
+ [ 0.88668917, 0.55021215, 0.15314441],
153
+ [ 0.88213497, 0.55532452, 0.14741036],
154
+ [ 0.87745572, 0.56043688, 0.1418571 ],
155
+ [ 0.87264749, 0.56555057, 0.1364872 ],
156
+ [ 0.86771091, 0.57066354, 0.13131024],
157
+ [ 0.86264647, 0.57577386, 0.12633733],
158
+ [ 0.85745826, 0.58087727, 0.12158439],
159
+ [ 0.8521472 , 0.58597179, 0.11706552],
160
+ [ 0.8467094 , 0.59105852, 0.11279244],
161
+ [ 0.84114477, 0.59613601, 0.10878193],
162
+ [ 0.83545305, 0.60120293, 0.10505191],
163
+ [ 0.8296338 , 0.60625805, 0.1016212 ],
164
+ [ 0.82368637, 0.61130025, 0.09850911],
165
+ [ 0.81761338, 0.61632654, 0.09573692],
166
+ [ 0.8114123 , 0.62133694, 0.09332224],
167
+ [ 0.80507912, 0.62633215, 0.09128143],
168
+ [ 0.798612 , 0.63131157, 0.08963048],
169
+ [ 0.79200875, 0.6362747 , 0.08838298],
170
+ [ 0.78526681, 0.64122114, 0.08754948],
171
+ [ 0.77838323, 0.64615062, 0.08713702],
172
+ [ 0.7713546 , 0.65106297, 0.08714877],
173
+ [ 0.76417708, 0.6559581 , 0.08758399],
174
+ [ 0.75684629, 0.66083604, 0.08843809],
175
+ [ 0.74935737, 0.66569688, 0.08970298],
176
+ [ 0.74170487, 0.67054078, 0.0913676 ],
177
+ [ 0.73388276, 0.67536797, 0.09341855],
178
+ [ 0.72588437, 0.68017875, 0.09584081],
179
+ [ 0.71770236, 0.68497341, 0.09861845],
180
+ [ 0.70932869, 0.68975231, 0.10173534],
181
+ [ 0.70075457, 0.6945158 , 0.10517576],
182
+ [ 0.69197038, 0.69926421, 0.10892491],
183
+ [ 0.68296567, 0.70399787, 0.11296936],
184
+ [ 0.67372905, 0.70871707, 0.11729734],
185
+ [ 0.66424819, 0.71342201, 0.12189902],
186
+ [ 0.65450966, 0.71811282, 0.12676664],
187
+ [ 0.64449896, 0.72278954, 0.13189469],
188
+ [ 0.63420038, 0.72745204, 0.13727991],
189
+ [ 0.62359693, 0.73210001, 0.14292145],
190
+ [ 0.61267034, 0.73673292, 0.14882085],
191
+ [ 0.60140092, 0.74134997, 0.15498213],
192
+ [ 0.58976762, 0.74595 , 0.1614119 ],
193
+ [ 0.57774806, 0.75053141, 0.1681194 ],
194
+ [ 0.5653186 , 0.75509202, 0.17511671],
195
+ [ 0.55245472, 0.759629 , 0.18241885],
196
+ [ 0.53913143, 0.76413856, 0.19004406],
197
+ [ 0.52532418, 0.7686158 , 0.19801402],
198
+ [ 0.51099732, 0.77305715, 0.20636044],
199
+ [ 0.49611186, 0.7774581 , 0.21512338],
200
+ [ 0.48067184, 0.78180377, 0.22433017],
201
+ [ 0.46467587, 0.78608012, 0.23402213],
202
+ [ 0.44814485, 0.79026854, 0.2442458 ],
203
+ [ 0.43107446, 0.7943545 , 0.25508744],
204
+ [ 0.41354117, 0.79830927, 0.26663104],
205
+ [ 0.3958256 , 0.80207595, 0.27890191],
206
+ [ 0.37809514, 0.80561975, 0.29209357],
207
+ [ 0.36109178, 0.80883683, 0.30618484],
208
+ [ 0.34559944, 0.81163462, 0.32136001],
209
+ [ 0.33317888, 0.81385174, 0.33750258],
210
+ [ 0.32569459, 0.8153205 , 0.35436957],
211
+ [ 0.32483652, 0.8159077 , 0.37139886],
212
+ [ 0.33105845, 0.81560091, 0.38780411],
213
+ [ 0.34317709, 0.81453069, 0.40293234],
214
+ [ 0.35910534, 0.81291342, 0.41641254],
215
+ [ 0.37708636, 0.81092595, 0.42831625],
216
+ [ 0.39585101, 0.80871209, 0.43877739],
217
+ [ 0.4147635 , 0.80634577, 0.4480356 ],
218
+ [ 0.43325163, 0.80392001, 0.45619216],
219
+ [ 0.45117894, 0.80146229, 0.46343571],
220
+ [ 0.46849334, 0.79899057, 0.46990609],
221
+ [ 0.48515608, 0.79652394, 0.47570041],
222
+ [ 0.50117159, 0.79407394, 0.48090054],
223
+ [ 0.51656733, 0.79164709, 0.4855746 ],
224
+ [ 0.5313285 , 0.78926 , 0.48976677],
225
+ [ 0.54548205, 0.78691906, 0.49352366],
226
+ [ 0.55913683, 0.78460796, 0.49689986],
227
+ [ 0.572339 , 0.78232422, 0.49992779],
228
+ [ 0.58513026, 0.78006521, 0.50263393],
229
+ [ 0.59742227, 0.77786452, 0.50502515],
230
+ [ 0.60935688, 0.77569009, 0.50713862],
231
+ [ 0.62099847, 0.77352921, 0.50899416],
232
+ [ 0.63229911, 0.77140195, 0.51060087],
233
+ [ 0.64329368, 0.76930343, 0.51197622],
234
+ [ 0.65409054, 0.76720409, 0.51313748],
235
+ [ 0.664623 , 0.76512875, 0.51409599],
236
+ [ 0.67495644, 0.7630597 , 0.51486731],
237
+ [ 0.6851651 , 0.76097437, 0.51546379],
238
+ [ 0.6951461 , 0.75890943, 0.51590594],
239
+ [ 0.70504283, 0.75681717, 0.51620464],
240
+ [ 0.71481733, 0.75471111, 0.51638105],
241
+ [ 0.72448373, 0.75258649, 0.5164558 ],
242
+ [ 0.73410277, 0.75042063, 0.51644598],
243
+ [ 0.74360211, 0.74823951, 0.516385 ],
244
+ [ 0.75307844, 0.74600553, 0.51628923],
245
+ [ 0.76247525, 0.74373861, 0.51619463],
246
+ [ 0.77183314, 0.74142105, 0.51612729],
247
+ [ 0.78113723, 0.73905659, 0.51612147],
248
+ [ 0.79038148, 0.73664558, 0.51621145],
249
+ [ 0.79957674, 0.73418117, 0.51643087],
250
+ [ 0.80868843, 0.731676 , 0.51681788],
251
+ [ 0.81773714, 0.72911902, 0.51740695],
252
+ [ 0.82667802, 0.72652836, 0.51823588],
253
+ [ 0.83552438, 0.72389641, 0.51934042],
254
+ [ 0.84424002, 0.72123868, 0.5207559 ],
255
+ [ 0.85281922, 0.71855699, 0.52251752],
256
+ [ 0.86123717, 0.71586282, 0.52465808],
257
+ [ 0.86947152, 0.71316731, 0.52720817],
258
+ [ 0.87751183, 0.71047596, 0.53019957],
259
+ [ 0.88531421, 0.70781291, 0.53365053],
260
+ [ 0.89289294, 0.70517135, 0.53759748],
261
+ [ 0.9001721 , 0.70259592, 0.54203027],
262
+ [ 0.90720584, 0.70005729, 0.54700442],
263
+ [ 0.91387569, 0.69762949, 0.55245368],
264
+ [ 0.92028844, 0.69524994, 0.55847851]]
265
+
266
+ test_cm = ListedColormap(cm_data, name=__file__)
267
+
268
+
269
+ if __name__ == "__main__":
270
+ import matplotlib.pyplot as plt
271
+ import numpy as np
272
+
273
+ try:
274
+ from viscm import viscm
275
+ viscm(test_cm)
276
+ except ImportError:
277
+ print("viscm not found, falling back on simple display")
278
+ plt.imshow(np.linspace(0, 100, 256)[None, :], aspect='auto',
279
+ cmap=test_cm)
280
+ plt.show()
@@ -0,0 +1,62 @@
1
+ {
2
+ "content-type": "application/vnd.matplotlib.colormap-v1+json",
3
+ "name": "new cm",
4
+ "license": "http://creativecommons.org/publicdomain/zero/1.0/",
5
+ "usage-hints": [
6
+ "red-green-colorblind-safe",
7
+ "greyscale-safe",
8
+ "sequential"
9
+ ],
10
+ "colorspace": "sRGB",
11
+ "domain": "continuous",
12
+ "colors": "10204b14204c18204d1b204e1e204f212050232051261f52281f542b1f562d1e592f1d5d311c61321b6534196a34186f35177436157936147f37138437118937108e360e93360d98350c9d340ba1330aa6320aab300aaf2e0ab32c0bb8290dbb2510be2015c01a1bbf1222bc0928b6042eaf0232a90435a306389e0a3a990d3c94103e90133f8c1541881743851944821a457f1a477c1a487a194a78194b76184c75184d73174f7216507115516f14526e13536d13546c14556a1556691757681958661b59651d5a641f5b62215b61235c60255d5f265e5d285e5c2a5f5b2b605a2d61592f62573062563263553464543764533a64513d655141655044655048654f4b65504e65505165505465515765525a66525c66535f66546166556466566666576866586b66596d665a70665b72665c74655e77655f7965617b65627d656480656582656684656787646989646a8c646b8e636c91636d93626e96626f9961709c60719f6072a25f72a55e73a85d73ab5c73ae5b73b15a72b45971b75870ba576ebd566cbf566ac15667c35665c55662c7565fc9565cca575acc5757cd5854cf5951d05a4ed15b4bd25c48d25d46d35e43d36040d4613ed4633bd46539d56637d56834d56a32d46c30d46e2ed4702cd3722bd37429d27628d27827d17a27d07c27cf7f27ce8127cc8328cb8529ca872ac88a2cc78c2dc58e2fc49031c29233c19436bf9638bd993abb9b3dba9d3fb89f42b6a145b4a347b2a54ab0a64daea850acaa52aaac55a8ae57a5b059a3b25ba1b45d9eb65f9cb7609ab96297bb6394bd6491bf658ec1668bc36688c56684c76681c9657dcb6479cd6375cf6172d05e6ed25b6bd45768d65365d84f62d94a61db4462dc3d66dc376bdd3072dd2b79dd2680dd2287dd1f8ddc1b93dc1799dc149fdc11a5db0daadb0bafdb09b4da08b9da08beda09c3d90bc8d90dccd910d0d813d5d816d9d819ddd81ce1d720e5d724e8d728ecd62cefd631f2d637f4d63df6d744f8d74bf9d852fad959fad960fbda66fcdb6cfcdc73fcdd79fdde7ffddf85fde08bfee190fee296fee39cffe4a2",
13
+ "extensions": {
14
+ "https://matplotlib.org/viscm": {
15
+ "min_Jp": 16,
16
+ "max_Jp": 93,
17
+ "xp": [
18
+ -3.5551119583642787,
19
+ 7.31888559498627,
20
+ 5.341795130740721,
21
+ -6.644315808747962,
22
+ -6.520747654732602,
23
+ -9.362815197085595,
24
+ -15.417654743837602,
25
+ -14.799813973760877,
26
+ 24.00058638705815,
27
+ 27.584062853503212,
28
+ 11.520202831508072,
29
+ -17.641881516113855,
30
+ -28.268742761433714,
31
+ -18.753994902251975,
32
+ -8.003565502916771,
33
+ -1.2073170320726803,
34
+ 1.1404778942189182
35
+ ],
36
+ "yp": [
37
+ -18.936201762081865,
38
+ -19.801178840189294,
39
+ -29.81019931543242,
40
+ -36.730015940291864,
41
+ -24.249632384741794,
42
+ -19.67761068617395,
43
+ -11.645680675176386,
44
+ 10.225882585540063,
45
+ -3.119478048117429,
46
+ 15.16860874615395,
47
+ 27.772560455719358,
48
+ 16.774994748353464,
49
+ 26.536878915565893,
50
+ 32.09744584625652,
51
+ 32.715286616333245,
52
+ 30.367491690041646,
53
+ 16.89856290236881
54
+ ],
55
+ "fixed": -1,
56
+ "filter_k": 100,
57
+ "cmtype": "linear",
58
+ "uniform_colorspace": "CAM02-UCS",
59
+ "spline_method": "CatmulClark"
60
+ }
61
+ }
62
+ }