We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 31d8ff5 + 1aaefe2 commit 3f23f05Copy full SHA for 3f23f05
bluemath_tk/datamining/_base_datamining.py
@@ -5,6 +5,7 @@
5
import pandas as pd
6
import xarray as xr
7
from matplotlib import pyplot as plt
8
+from matplotlib.axes import Axes
9
10
from ..core.models import BlueMathModel
11
from ..core.plotting.base_plotting import DefaultStaticPlotting
@@ -328,6 +329,8 @@ def plot_data_as_clusters(
328
329
sharex=False,
330
sharey=False,
331
)
332
+ if isinstance(axes, Axes):
333
+ axes = np.array([[axes]])
334
335
# Gets colors for clusters and append to each nearest centroid
336
colors_for_clusters = default_static_plot.get_list_of_colors_for_colormap(
0 commit comments