def show(self, som, which_dim='all', colormap=None, cols=None):
        colormap = plt.cm.get_cmap(colormap) if colormap else plt.cm.get_cmap('RdYlBu_r')

        data = som.data_raw
        msz0, msz1 = som.codebook.mapsize
        coords = som.bmu_ind_to_xy(som.project_data(data))[:, :2]
        cols = cols if cols else 8  # 8 is arbitrary
        rows = cols/data.shape[1]+1

        if which_dim == 'all':
            dim = data.shape[0]
            self.init_figure(dim, cols)
            self.plot(data, coords, msz0, msz1, colormap, data.shape[0], data.shape[1], rows, cols)

        else:
            dim = 1 if type(which_dim) is int else len(which_dim)
            self.init_figure(dim, cols)
            self.plot(data, coords, msz0, msz1, colormap, data.shape[0], len(which_dim), rows, cols)

        plt.tight_layout()
        plt.subplots_adjust(hspace=.16, swspace=.05)
dataset/ETHPy150Open sevamoo/SOMPY/visualization/dotmap.py/DotMapView.show/swapped operands of `/`