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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kplot
3
- Version: 1.1.8
3
+ Version: 1.1.10
4
4
  Summary: a matplotlib wrapper for keyan :-)
5
5
  Author: Keyan Gootkin
6
6
  Author-email: Keyan Gootkin <keyangootkin@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "kplot"
3
- version = "1.1.8"
3
+ version = "1.1.10"
4
4
  description = "a matplotlib wrapper for keyan :-)"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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