Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bluemath_tk/datamining/_base_datamining.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pandas as pd
import xarray as xr
from matplotlib import pyplot as plt
from matplotlib.axes import Axes

from ..core.models import BlueMathModel
from ..core.plotting.base_plotting import DefaultStaticPlotting
Expand Down Expand Up @@ -328,6 +329,8 @@ def plot_data_as_clusters(
sharex=False,
sharey=False,
)
if isinstance(axes, Axes):
axes = np.array([[axes]])

# Gets colors for clusters and append to each nearest centroid
colors_for_clusters = default_static_plot.get_list_of_colors_for_colormap(
Expand Down