mgplot 0.2.26__py3-none-any.whl → 0.2.27__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.
mgplot/utilities.py
CHANGED
|
@@ -14,7 +14,7 @@ import math
|
|
|
14
14
|
from typing import Any, Final
|
|
15
15
|
|
|
16
16
|
import numpy as np
|
|
17
|
-
from matplotlib import
|
|
17
|
+
from matplotlib import colormaps
|
|
18
18
|
from matplotlib.axes import Axes
|
|
19
19
|
from matplotlib.pyplot import subplots
|
|
20
20
|
from pandas import DataFrame, Period, PeriodIndex, RangeIndex, Series
|
|
@@ -186,7 +186,7 @@ def get_color_list(count: int) -> list[str]:
|
|
|
186
186
|
options = [k for k in colors if k > count]
|
|
187
187
|
return colors[min(options)][:count]
|
|
188
188
|
|
|
189
|
-
c =
|
|
189
|
+
c = colormaps["nipy_spectral"](np.linspace(0, 1, count))
|
|
190
190
|
return [f"#{int(x * 255):02x}{int(y * 255):02x}{int(z * 255):02x}" for x, y, z, _ in c]
|
|
191
191
|
|
|
192
192
|
|
|
@@ -17,8 +17,8 @@ mgplot/run_plot.py,sha256=tG5YbAZ11WEBw9Jxanpp1W5E-q3sMUd5VjD7yIxrgY8,7355
|
|
|
17
17
|
mgplot/seastrend_plot.py,sha256=hi9t0cY0bHdIOU5abLMX7qvAp_hlVLlJFyEKNBzg6Ts,2000
|
|
18
18
|
mgplot/settings.py,sha256=co0cElVIdmkfftQrMg4MviyV5TSmvNOzaUN_h_RrjOY,5583
|
|
19
19
|
mgplot/summary_plot.py,sha256=Kg7VD8KFIls4KlD4jeaaXnDw51BZ3p_wMAUpjG49zGQ,11102
|
|
20
|
-
mgplot/utilities.py,sha256=
|
|
21
|
-
mgplot-0.2.
|
|
22
|
-
mgplot-0.2.
|
|
23
|
-
mgplot-0.2.
|
|
24
|
-
mgplot-0.2.
|
|
20
|
+
mgplot/utilities.py,sha256=PfzThb_nXYIMhnprQzNcaBqUZV8ysHJte0TU7TIis00,8450
|
|
21
|
+
mgplot-0.2.27.dist-info/METADATA,sha256=Hz4NyZEh-6If0176vfrEbBipCzuUAvo3d7P5Ou_33vo,7923
|
|
22
|
+
mgplot-0.2.27.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
23
|
+
mgplot-0.2.27.dist-info/licenses/LICENSE,sha256=6ZyruOwF8J7mY25-vZHdOibtY8cSNLz0vWeH59TLhtw,1082
|
|
24
|
+
mgplot-0.2.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|