plt.imshow(conn_matrix, interpolation="nearest", vmax=float(1.0), vmin=float(-1.0), cmap=plt.cm.RdBu_r)
// And display the labels
if rois_num < 100:
if all(isinstance(item, int) for item in label_names) is False:
plt.xticks(range(len(label_names)), label_names, size="xx-small", rotation=90)
plt.yticks(range(len(label_names)), label_names, size="xx-small")
else: