Data Science, Artificial Intelligence, Open Data, Open Source, Data Vizualisation.
calculate number of rows needed for plot grid plotRows = df.shape[1] // plotCols while plotRows * plotCols < df.shape[1]: plotRows += 1 # identify unique cluster labels uniqueLabels = sorted(np.unique(labels)) # create a figure and axes fig, axes = plt.subplots(plotRows, plotCols # scale up the