import matplotlib.pyplot as plt


def plot_matrix(M, save=False):
    plt.imshow(M, interpolation='nearest', aspect='auto', cmap='jet')
    plt.show()
    if save:
        plt.savefig(save)

270d09f67633d22cc6ed8e355f258f1954897979
<mask token>

<mask token>


def plot_matrix(M, save=False):
    plt.imshow(M, interpolation='nearest', aspect='auto', cmap='jet')
    plt.show()
    if save:
        plt.savefig(save)

import matplotlib.pyplot as plt


def plot_matrix(M, save=False):
    plt.imshow(M, interpolation='nearest', aspect='auto', cmap='jet')
    plt.show()
    if save:
        plt.savefig(save)
