a37910cf0c8fbd1f863c058912571902198cad44,qanta/reporting/plotting.py,,plot_confusion,#Any#Any#Any#Any#,7

Before Change


    plt.colorbar()
    tick_marks = np.arange(len(labels))
    plt.xticks(tick_marks, labels, rotation=45)
    plt.yticks(tick_marks, labels)
    plt.ylabel("True Label")
    plt.xlabel("Predicted Label")
    ax = plt.gca()
    ax.grid(False)

After Change


    tick_marks = np.arange(len(labels))
    ax.set_xticks(tick_marks)
    ax.set_xticklabels(labels, rotation=90)
    ax.set_yticks(tick_marks)
    ax.set_yticklabels(labels)
    ax.set_ylabel("True Label")
    ax.set_xlabel("Predicted Label")
    ax.grid(False)
    return fig, ax
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Pinafore/qb
Commit Name: a37910cf0c8fbd1f863c058912571902198cad44
Time: 2017-05-23
Author: ski.rodriguez@gmail.com
File Name: qanta/reporting/plotting.py
Class Name:
Method Name: plot_confusion


Project Name: theislab/scanpy
Commit Name: 8c00b4b5ee453e31a8bc70f36d50607cccb0902f
Time: 2017-07-31
Author: f.alex.wolf@gmx.de
File Name: scanpy/plotting/tools.py
Class Name:
Method Name: aga_path


Project Name: neurodsp-tools/neurodsp
Commit Name: e6171299090d5907fb703d5702e3b194de1c63fd
Time: 2021-03-14
Author: tdonoghue.research@gmail.com
File Name: neurodsp/plts/time_series.py
Class Name:
Method Name: plot_instantaneous_measure