kplot 1.1.8__tar.gz → 1.1.10__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.
- {kplot-1.1.8 → kplot-1.1.10}/PKG-INFO +1 -1
- {kplot-1.1.8 → kplot-1.1.10}/pyproject.toml +1 -1
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/__init__.py +1 -1
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/cmaps.py +1 -1
- {kplot-1.1.8 → kplot-1.1.10}/README.md +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/axes.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/hist.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/image.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/movie.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/plot.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/styles/example.mpl +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/styles/publication.mpl +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/threeD/__init__.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/threeD/slider_images.py +0 -0
- {kplot-1.1.8 → kplot-1.1.10}/src/kplot/utils.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from kplot.axes import access_subplots, subplots
|
|
2
|
-
from kplot.cmaps import manoaskies, manoaskies_centered
|
|
2
|
+
from kplot.cmaps import manoaskies, manoaskies_centered, oklch_cmap, ColorOKLCH
|
|
3
3
|
from kplot.hist import hist
|
|
4
4
|
from kplot.image import show
|
|
5
5
|
from kplot.plot import plot, diffplot, powerlawplot
|
|
@@ -101,7 +101,7 @@ def oklch_cmap(
|
|
|
101
101
|
) -> ListedColormap:
|
|
102
102
|
ls = ones(256) * luminosity if type(luminosity) in Number.types else linspace(*luminosity, 256)
|
|
103
103
|
cs = ones(256) * chroma if type(chroma) in Number.types else linspace(*chroma, 256)
|
|
104
|
-
hs = ones(256) * hue if type(hue) in Number.types else linspace(*hue, 256)
|
|
104
|
+
hs = ones(256) * hue if type(hue) in Number.types else linspace(*hue, 256) % 360
|
|
105
105
|
return ListedColormap([
|
|
106
106
|
OKLCH(li, ci, hi).rgb for li, ci, hi in zip(ls, cs, hs)
|
|
107
107
|
])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|