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 cm
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 = cm.get_cmap("nipy_spectral")(np.linspace(0, 1, count))
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mgplot
3
- Version: 0.2.26
3
+ Version: 0.2.27
4
4
  Summary: mgplot is a time-series/PeriodIndex frontend for matplotlib
5
5
  Project-URL: Repository, https://github.com/bpalmer4/mgplot
6
6
  Project-URL: Homepage, https://github.com/bpalmer4/mgplot
@@ -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=Rouc76vwjL49nVgAzymzoOyX6GrBqp-sjELHalBD_Qo,8445
21
- mgplot-0.2.26.dist-info/METADATA,sha256=yKmPAjfQee0xcWo8P5QZoadTse2gMbJ-_UXK875lDJg,7923
22
- mgplot-0.2.26.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
23
- mgplot-0.2.26.dist-info/licenses/LICENSE,sha256=6ZyruOwF8J7mY25-vZHdOibtY8cSNLz0vWeH59TLhtw,1082
24
- mgplot-0.2.26.dist-info/RECORD,,
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,,