Skip to content

Commit

Permalink
refactor: cm submodule has been dropped (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored May 21, 2024
2 parents 26a7472 + 61e2559 commit 785768d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geetools/FeatureCollection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def plot_hist(
raise ValueError("Pie chart can only be used with one property")

kwargs["rwidth"] = kwargs.get("rwidth", 0.9)
kwargs["color"] = color or plt.cm.get_cmap("tab10").colors[0]
kwargs["color"] = color or plt.get_cmap("tab10").colors[0]
ax.hist(list(data[labels[0]].values()), **kwargs)
ax.set_xlabel(labels[0])
ax.set_ylabel("frequency")
Expand Down Expand Up @@ -417,7 +417,7 @@ def _plot(
# gather the data from parameters
labels = list(data.keys())
props = list(data[labels[0]].keys())
colors = colors if colors else plt.cm.get_cmap("tab10").colors
colors = colors if colors else plt.get_cmap("tab10").colors

# draw the chart based on the type
if type == "plot":
Expand Down

0 comments on commit 785768d

Please sign in to comment.