sphericolor 0.2.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.
Files changed (30) hide show
  1. sphericolor-0.2.0/.gitignore +11 -0
  2. sphericolor-0.2.0/CHANGELOG.md +8 -0
  3. sphericolor-0.2.0/CITATION.cff +36 -0
  4. sphericolor-0.2.0/LICENSE +22 -0
  5. sphericolor-0.2.0/PKG-INFO +214 -0
  6. sphericolor-0.2.0/README.md +161 -0
  7. sphericolor-0.2.0/docs/teaser.png +0 -0
  8. sphericolor-0.2.0/pyproject.toml +76 -0
  9. sphericolor-0.2.0/src/sphericolor/__init__.py +8 -0
  10. sphericolor-0.2.0/src/sphericolor/api.py +257 -0
  11. sphericolor-0.2.0/src/sphericolor/colors.py +47 -0
  12. sphericolor-0.2.0/src/sphericolor/data/__init__.py +0 -0
  13. sphericolor-0.2.0/src/sphericolor/data/srgb_cam16ucs.ply +6443 -0
  14. sphericolor-0.2.0/src/sphericolor/diagnostics.py +24 -0
  15. sphericolor-0.2.0/src/sphericolor/distances.py +24 -0
  16. sphericolor-0.2.0/src/sphericolor/embedding.py +31 -0
  17. sphericolor-0.2.0/src/sphericolor/gamut.py +42 -0
  18. sphericolor-0.2.0/src/sphericolor/methods/__init__.py +0 -0
  19. sphericolor-0.2.0/src/sphericolor/methods/bivariate.py +38 -0
  20. sphericolor-0.2.0/src/sphericolor/methods/hsluv.py +18 -0
  21. sphericolor-0.2.0/src/sphericolor/methods/ray.py +77 -0
  22. sphericolor-0.2.0/src/sphericolor/methods/simplex.py +93 -0
  23. sphericolor-0.2.0/src/sphericolor/result.py +50 -0
  24. sphericolor-0.2.0/src/sphericolor/validation.py +108 -0
  25. sphericolor-0.2.0/tests/test_baselines.py +43 -0
  26. sphericolor-0.2.0/tests/test_distances.py +16 -0
  27. sphericolor-0.2.0/tests/test_package.py +18 -0
  28. sphericolor-0.2.0/tests/test_ray.py +79 -0
  29. sphericolor-0.2.0/tests/test_simplex.py +28 -0
  30. sphericolor-0.2.0/tests/test_validation.py +60 -0
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .coverage
5
+ .mypy_cache/
6
+ .pytest_cache/
7
+ .ruff_cache/
8
+ .venv/
9
+ build/
10
+ dist/
11
+
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Initial Python package.
6
+ - Add Ray, Simplex, HSLuv, and six bivariate mappings.
7
+ - Add latitude-longitude and distance-matrix APIs.
8
+
@@ -0,0 +1,36 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use SpheriColor in academic work, please cite the associated paper."
3
+ title: "SpheriColor"
4
+ type: software
5
+ version: 0.2.0
6
+ date-released: 2026-11-11
7
+ license: MIT
8
+ authors:
9
+ - family-names: Rauscher
10
+ given-names: Julius
11
+ orcid: "https://orcid.org/0000-0003-1318-9642"
12
+ - family-names: Fuchs
13
+ given-names: Johannes
14
+ - family-names: Keim
15
+ given-names: Daniel A.
16
+ orcid: "https://orcid.org/0000-0001-7966-9740"
17
+ - family-names: Dennig
18
+ given-names: Frederik L.
19
+ orcid: "https://orcid.org/0000-0003-1116-8450"
20
+ preferred-citation:
21
+ type: conference-paper
22
+ title: "SpheriColor: Colormaps for Spherical Geospatial Input Topographies"
23
+ authors:
24
+ - family-names: Rauscher
25
+ given-names: Julius
26
+ orcid: "https://orcid.org/0000-0003-1318-9642"
27
+ - family-names: Fuchs
28
+ given-names: Johannes
29
+ - family-names: Keim
30
+ given-names: Daniel A.
31
+ orcid: "https://orcid.org/0000-0001-7966-9740"
32
+ - family-names: Dennig
33
+ given-names: Frederik L.
34
+ orcid: "https://orcid.org/0000-0003-1116-8450"
35
+ collection-title: "EuroVis 2026 Short Papers"
36
+ year: 2026
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 University of Konstanz and the SpheriColor authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,214 @@
1
+ Metadata-Version: 2.5
2
+ Name: sphericolor
3
+ Version: 0.2.0
4
+ Summary: Dataset-specific color mappings for spherical geographic data
5
+ Project-URL: Repository, https://github.com/dbvis-ukon/sphericolor
6
+ Author: Julius Rauscher, Johannes Fuchs, Daniel A. Keim, Frederik L. Dennig
7
+ License: MIT License
8
+
9
+ Copyright (c) 2026 University of Konstanz and the SpheriColor authors
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ License-File: LICENSE
30
+ Keywords: CAM16-UCS,colormap,geospatial,visualization
31
+ Classifier: Development Status :: 3 - Alpha
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Classifier: Topic :: Scientific/Engineering :: Visualization
39
+ Requires-Python: <3.14,>=3.10
40
+ Requires-Dist: coloraide>=3.3
41
+ Requires-Dist: hsluv>=5
42
+ Requires-Dist: numpy>=1.24
43
+ Requires-Dist: pycolormap-2d>=1.1.7
44
+ Requires-Dist: scikit-learn>=1.4
45
+ Requires-Dist: scipy>=1.10
46
+ Provides-Extra: build
47
+ Requires-Dist: build>=1.2; extra == 'build'
48
+ Provides-Extra: test
49
+ Requires-Dist: mypy>=1.10; extra == 'test'
50
+ Requires-Dist: pytest>=8; extra == 'test'
51
+ Requires-Dist: ruff>=0.6; extra == 'test'
52
+ Description-Content-Type: text/markdown
53
+
54
+ # SpheriColor
55
+
56
+ [![PyPI](https://img.shields.io/pypi/v/sphericolor.svg)](https://pypi.org/project/sphericolor/)
57
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
58
+
59
+ SpheriColor is a Python implementation of the techniques introduced in the paper
60
+ *SpheriColor: Colormaps for Spherical Geospatial Input Topographies*.
61
+
62
+
63
+ ![Comparison of SpheriColor and baseline colormap methods](https://raw.githubusercontent.com/dbvis-ukon/sphericolor/main/docs/teaser.png)
64
+
65
+ Its generation pipeline computes pairwise great-circle distances, embeds them in three dimensions with metric MDS, and
66
+ maps the embedding into the displayable sRGB gamut represented in CAM16-UCS. Ray and Simplex are
67
+ the two available gamut-mapping strategies, designed to preserve distances while maximizing
68
+ color-space utilization. This can be useful for visual analytics dashboards with juxtaposed views,
69
+ where color similarity helps reveal geographic proximity across different visualizations.
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ pip install sphericolor
75
+ ```
76
+
77
+ SpheriColor supports Python 3.10 through 3.13.
78
+
79
+ ## Geographic coordinates
80
+
81
+ ```python
82
+ from sphericolor import from_latlon
83
+
84
+ labels = [
85
+ "London", "New York", "Mexico City", "São Paulo", "Cape Town", "Nairobi",
86
+ "Cairo", "Mumbai", "Singapore", "Tokyo", "Sydney", "Auckland",
87
+ ]
88
+ latitudes = [
89
+ 51.5074, 40.7128, 19.4326, -23.5505, -33.9249, -1.2921,
90
+ 30.0444, 19.0760, 1.3521, 35.6762, -33.8688, -36.8509,
91
+ ]
92
+ longitudes = [
93
+ -0.1278, -74.0060, -99.1332, -46.6333, 18.4241, 36.8219,
94
+ 31.2357, 72.8777, 103.8198, 139.6503, 151.2093, 174.7645,
95
+ ]
96
+
97
+ mapping = from_latlon(
98
+ latitudes=latitudes,
99
+ longitudes=longitudes,
100
+ labels=labels,
101
+ method="ray",
102
+ )
103
+
104
+ print(dict(zip(mapping.labels, mapping.hex)))
105
+ ```
106
+
107
+ Coordinate input uses great-circle distances in kilometers for Ray and Simplex.
108
+
109
+ ### Visualization of Colors
110
+
111
+ To visually check the generated colors in their geographic context, install the optional plotting
112
+ dependencies with `pip install geopandas matplotlib`:
113
+
114
+ ```python
115
+ import geopandas as gpd
116
+ import matplotlib.pyplot as plt
117
+
118
+ world = gpd.read_file(
119
+ "https://naturalearth.s3.amazonaws.com/110m_cultural/"
120
+ "ne_110m_admin_0_countries.zip"
121
+ ).to_crs("+proj=robin")
122
+ cities = gpd.GeoDataFrame(
123
+ {"city": labels, "color": mapping.hex},
124
+ geometry=gpd.points_from_xy(longitudes, latitudes),
125
+ crs="EPSG:4326",
126
+ ).to_crs(world.crs)
127
+
128
+ ax = world.plot(color="#eeeeee", edgecolor="#aaaaaa", figsize=(13, 7))
129
+ cities.plot(ax=ax, color=cities["color"], edgecolor="black", markersize=90)
130
+ ax.set_axis_off()
131
+ plt.show()
132
+ ```
133
+
134
+ ## Precomputed distances
135
+
136
+ Since SpheriColor constructs a distance matrix from geographic coordinates for Ray and Simplex,
137
+ you can bypass this step and provide a precomputed distance matrix directly:
138
+
139
+ ```python
140
+ import numpy as np
141
+ from sphericolor import from_distance_matrix
142
+
143
+ distances = np.array([
144
+ [0.0, 1.0, 2.0, 1.0],
145
+ [1.0, 0.0, 1.0, 2.0],
146
+ [2.0, 1.0, 0.0, 1.0],
147
+ [1.0, 2.0, 1.0, 0.0],
148
+ ])
149
+ mapping = from_distance_matrix(distances, method="simplex")
150
+ ```
151
+
152
+ HSLuv and bivariate mappings require geographic coordinates because they use latitude and
153
+ longitude orientation directly.
154
+
155
+ ## Methods
156
+
157
+ ```python
158
+ ray = from_latlon(latitudes, longitudes, method="ray")
159
+ simplex = from_latlon(latitudes, longitudes, method="simplex")
160
+ hsluv = from_latlon(latitudes, longitudes, method="hsluv")
161
+ bivariate = from_latlon(
162
+ latitudes,
163
+ longitudes,
164
+ method="bivariate",
165
+ bivariate_map="steiger",
166
+ )
167
+ ```
168
+
169
+ Available bivariate maps are `bremm`, `cube_diagonal`, `schumann`, `steiger`, `teuling2`, and
170
+ `ziegler`.
171
+
172
+ Set `diagnostics=True` to include condensed input and output distances plus intermediate MDS
173
+ embeddings. Diagnostics require quadratic memory and are disabled by default.
174
+
175
+ Set `mds_seed_trials` above one to evaluate multiple deterministic MDS initializations for Ray or
176
+ Simplex. The selected run maximizes the
177
+ equal-weight mean of global distance correlation and sRGB gamut-volume coverage. Candidate scores
178
+ and `selected_mds_seed` are available in `mapping.metadata`.
179
+
180
+ ```python
181
+ mapping = from_latlon(
182
+ latitudes,
183
+ longitudes,
184
+ method="ray",
185
+ random_state=42,
186
+ mds_seed_trials=20,
187
+ )
188
+ ```
189
+
190
+ ### Stability
191
+
192
+ Ray and Simplex derive their colors from an MDS embedding of the complete input set. Because MDS
193
+ is sensitive to the point configuration, changing the entity set may produce a different color
194
+ mapping. HSLuv and the bivariate methods provide dataset-independent alternatives when consistent
195
+ colors across datasets are needed.
196
+
197
+ ## License and citation
198
+
199
+ SpheriColor and its bundled gamut asset are MIT licensed. If you use SpheriColor in academic
200
+ work, please cite the associated paper:
201
+
202
+ > Julius Rauscher, Johannes Fuchs, Daniel A. Keim, and Frederik L. Dennig. “SpheriColor:
203
+ > Colormaps for Spherical Geospatial Input Topographies.” IEEE Visualization Conference (VIS), 2026.
204
+
205
+ ```bibtex
206
+ @inproceedings{rauscher2026sphericolor,
207
+ title = {{SpheriColor}: Colormaps for Spherical Geospatial Input Topographies},
208
+ author = {Rauscher, Julius and Fuchs, Johannes and Keim, Daniel A. and Dennig, Frederik L.},
209
+ booktitle = {IEEE Visualization Conference (VIS)},
210
+ year = {2026}
211
+ }
212
+ ```
213
+
214
+ See `CITATION.cff` for machine-readable software and paper citation metadata.
@@ -0,0 +1,161 @@
1
+ # SpheriColor
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/sphericolor.svg)](https://pypi.org/project/sphericolor/)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
+
6
+ SpheriColor is a Python implementation of the techniques introduced in the paper
7
+ *SpheriColor: Colormaps for Spherical Geospatial Input Topographies*.
8
+
9
+
10
+ ![Comparison of SpheriColor and baseline colormap methods](https://raw.githubusercontent.com/dbvis-ukon/sphericolor/main/docs/teaser.png)
11
+
12
+ Its generation pipeline computes pairwise great-circle distances, embeds them in three dimensions with metric MDS, and
13
+ maps the embedding into the displayable sRGB gamut represented in CAM16-UCS. Ray and Simplex are
14
+ the two available gamut-mapping strategies, designed to preserve distances while maximizing
15
+ color-space utilization. This can be useful for visual analytics dashboards with juxtaposed views,
16
+ where color similarity helps reveal geographic proximity across different visualizations.
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ pip install sphericolor
22
+ ```
23
+
24
+ SpheriColor supports Python 3.10 through 3.13.
25
+
26
+ ## Geographic coordinates
27
+
28
+ ```python
29
+ from sphericolor import from_latlon
30
+
31
+ labels = [
32
+ "London", "New York", "Mexico City", "São Paulo", "Cape Town", "Nairobi",
33
+ "Cairo", "Mumbai", "Singapore", "Tokyo", "Sydney", "Auckland",
34
+ ]
35
+ latitudes = [
36
+ 51.5074, 40.7128, 19.4326, -23.5505, -33.9249, -1.2921,
37
+ 30.0444, 19.0760, 1.3521, 35.6762, -33.8688, -36.8509,
38
+ ]
39
+ longitudes = [
40
+ -0.1278, -74.0060, -99.1332, -46.6333, 18.4241, 36.8219,
41
+ 31.2357, 72.8777, 103.8198, 139.6503, 151.2093, 174.7645,
42
+ ]
43
+
44
+ mapping = from_latlon(
45
+ latitudes=latitudes,
46
+ longitudes=longitudes,
47
+ labels=labels,
48
+ method="ray",
49
+ )
50
+
51
+ print(dict(zip(mapping.labels, mapping.hex)))
52
+ ```
53
+
54
+ Coordinate input uses great-circle distances in kilometers for Ray and Simplex.
55
+
56
+ ### Visualization of Colors
57
+
58
+ To visually check the generated colors in their geographic context, install the optional plotting
59
+ dependencies with `pip install geopandas matplotlib`:
60
+
61
+ ```python
62
+ import geopandas as gpd
63
+ import matplotlib.pyplot as plt
64
+
65
+ world = gpd.read_file(
66
+ "https://naturalearth.s3.amazonaws.com/110m_cultural/"
67
+ "ne_110m_admin_0_countries.zip"
68
+ ).to_crs("+proj=robin")
69
+ cities = gpd.GeoDataFrame(
70
+ {"city": labels, "color": mapping.hex},
71
+ geometry=gpd.points_from_xy(longitudes, latitudes),
72
+ crs="EPSG:4326",
73
+ ).to_crs(world.crs)
74
+
75
+ ax = world.plot(color="#eeeeee", edgecolor="#aaaaaa", figsize=(13, 7))
76
+ cities.plot(ax=ax, color=cities["color"], edgecolor="black", markersize=90)
77
+ ax.set_axis_off()
78
+ plt.show()
79
+ ```
80
+
81
+ ## Precomputed distances
82
+
83
+ Since SpheriColor constructs a distance matrix from geographic coordinates for Ray and Simplex,
84
+ you can bypass this step and provide a precomputed distance matrix directly:
85
+
86
+ ```python
87
+ import numpy as np
88
+ from sphericolor import from_distance_matrix
89
+
90
+ distances = np.array([
91
+ [0.0, 1.0, 2.0, 1.0],
92
+ [1.0, 0.0, 1.0, 2.0],
93
+ [2.0, 1.0, 0.0, 1.0],
94
+ [1.0, 2.0, 1.0, 0.0],
95
+ ])
96
+ mapping = from_distance_matrix(distances, method="simplex")
97
+ ```
98
+
99
+ HSLuv and bivariate mappings require geographic coordinates because they use latitude and
100
+ longitude orientation directly.
101
+
102
+ ## Methods
103
+
104
+ ```python
105
+ ray = from_latlon(latitudes, longitudes, method="ray")
106
+ simplex = from_latlon(latitudes, longitudes, method="simplex")
107
+ hsluv = from_latlon(latitudes, longitudes, method="hsluv")
108
+ bivariate = from_latlon(
109
+ latitudes,
110
+ longitudes,
111
+ method="bivariate",
112
+ bivariate_map="steiger",
113
+ )
114
+ ```
115
+
116
+ Available bivariate maps are `bremm`, `cube_diagonal`, `schumann`, `steiger`, `teuling2`, and
117
+ `ziegler`.
118
+
119
+ Set `diagnostics=True` to include condensed input and output distances plus intermediate MDS
120
+ embeddings. Diagnostics require quadratic memory and are disabled by default.
121
+
122
+ Set `mds_seed_trials` above one to evaluate multiple deterministic MDS initializations for Ray or
123
+ Simplex. The selected run maximizes the
124
+ equal-weight mean of global distance correlation and sRGB gamut-volume coverage. Candidate scores
125
+ and `selected_mds_seed` are available in `mapping.metadata`.
126
+
127
+ ```python
128
+ mapping = from_latlon(
129
+ latitudes,
130
+ longitudes,
131
+ method="ray",
132
+ random_state=42,
133
+ mds_seed_trials=20,
134
+ )
135
+ ```
136
+
137
+ ### Stability
138
+
139
+ Ray and Simplex derive their colors from an MDS embedding of the complete input set. Because MDS
140
+ is sensitive to the point configuration, changing the entity set may produce a different color
141
+ mapping. HSLuv and the bivariate methods provide dataset-independent alternatives when consistent
142
+ colors across datasets are needed.
143
+
144
+ ## License and citation
145
+
146
+ SpheriColor and its bundled gamut asset are MIT licensed. If you use SpheriColor in academic
147
+ work, please cite the associated paper:
148
+
149
+ > Julius Rauscher, Johannes Fuchs, Daniel A. Keim, and Frederik L. Dennig. “SpheriColor:
150
+ > Colormaps for Spherical Geospatial Input Topographies.” IEEE Visualization Conference (VIS), 2026.
151
+
152
+ ```bibtex
153
+ @inproceedings{rauscher2026sphericolor,
154
+ title = {{SpheriColor}: Colormaps for Spherical Geospatial Input Topographies},
155
+ author = {Rauscher, Julius and Fuchs, Johannes and Keim, Daniel A. and Dennig, Frederik L.},
156
+ booktitle = {IEEE Visualization Conference (VIS)},
157
+ year = {2026}
158
+ }
159
+ ```
160
+
161
+ See `CITATION.cff` for machine-readable software and paper citation metadata.
Binary file
@@ -0,0 +1,76 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.25"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sphericolor"
7
+ version = "0.2.0"
8
+ description = "Dataset-specific color mappings for spherical geographic data"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10,<3.14"
11
+ license = { file = "LICENSE" }
12
+ authors = [
13
+ { name = "Julius Rauscher" },
14
+ { name = "Johannes Fuchs" },
15
+ { name = "Daniel A. Keim" },
16
+ { name = "Frederik L. Dennig" },
17
+ ]
18
+ keywords = ["colormap", "geospatial", "visualization", "CAM16-UCS"]
19
+ classifiers = [
20
+ "Development Status :: 3 - Alpha",
21
+ "License :: OSI Approved :: MIT License",
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Topic :: Scientific/Engineering :: Visualization",
28
+ ]
29
+ dependencies = [
30
+ "numpy>=1.24",
31
+ "scipy>=1.10",
32
+ "scikit-learn>=1.4",
33
+ "coloraide>=3.3",
34
+ "hsluv>=5",
35
+ "pycolormap-2d>=1.1.7",
36
+ ]
37
+
38
+ [project.optional-dependencies]
39
+ test = ["mypy>=1.10", "pytest>=8", "ruff>=0.6"]
40
+ build = ["build>=1.2"]
41
+
42
+ [project.urls]
43
+ Repository = "https://github.com/dbvis-ukon/sphericolor"
44
+
45
+ [tool.hatch.build.targets.wheel]
46
+ packages = ["src/sphericolor"]
47
+
48
+ [tool.hatch.build.targets.sdist]
49
+ include = [
50
+ "/src",
51
+ "/tests",
52
+ "/docs",
53
+ "/README.md",
54
+ "/LICENSE",
55
+ "/CITATION.cff",
56
+ "/CHANGELOG.md",
57
+ ]
58
+
59
+ [tool.pytest.ini_options]
60
+ addopts = "-ra"
61
+ testpaths = ["tests"]
62
+
63
+ [tool.ruff]
64
+ line-length = 100
65
+ target-version = "py310"
66
+
67
+ [tool.ruff.lint]
68
+ select = ["E", "F", "I", "UP", "B", "SIM"]
69
+
70
+ [tool.mypy]
71
+ python_version = "3.10"
72
+ strict = true
73
+ packages = ["sphericolor"]
74
+ mypy_path = "src"
75
+ exclude = ["tests"]
76
+ ignore_missing_imports = true
@@ -0,0 +1,8 @@
1
+ """Spherical geographic color mappings."""
2
+
3
+ from .api import from_distance_matrix, from_latlon
4
+ from .result import ColorMapping, Diagnostics
5
+
6
+ __all__ = ["ColorMapping", "Diagnostics", "from_distance_matrix", "from_latlon"]
7
+ __version__ = "0.2.0"
8
+