38512d92a8682a62e73c5b9e86366888be374532,dragonn/vis/__init__.py,,plot_motif_scores,#,48

Before Change


    return f,f.get_axes()

def plot_motif_scores(motif_scores,title="",figsize=(20,3),ylim=(0,20),xlim=None,show=True):
    if show==False:
        plt.ioff()
    else:
        plt.ion() 
    //remove any redundant axes
    motif_scores=motif_scores.squeeze()
    f=plt.figure(figsize=figsize)
    plt.plot(motif_scores, "-o")
    plt.xlabel("Sequence base")

After Change


    //remove any redundant axes
    motif_scores=motif_scores.squeeze()
    if axes is None:
        f,axes=plt.subplots(1,dpi=80,figsize=figsize)
        show=True
    else:
        show=False
    axes.plot(motif_scores, "-o")
    axes.set_xlabel("Sequence base")
    //threshold motif scores at 0; any negative scores are noise that we do not need to visualize
    if ylim!=None:
        axes.set_ylim(ylim)
    if xlim!=None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kundajelab/dragonn
Commit Name: 38512d92a8682a62e73c5b9e86366888be374532
Time: 2019-05-29
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_motif_scores


Project Name: david-abel/simple_rl
Commit Name: b2c5bd43ea3f2294e0ddc0e1e71bdbf37adb8a60
Time: 2019-01-27
Author: yrevar@github.com
File Name: simple_rl/tasks/navigation/NavigationWorldMDP.py
Class Name: NavigationWorldMDP
Method Name: visualize_grid


Project Name: BindsNET/bindsnet
Commit Name: a802d31210ed262b8159b656b256bdacf10c9d61
Time: 2020-05-11
Author: hananel@hazan.org.il
File Name: bindsnet/analysis/plotting.py
Class Name:
Method Name: plot_performance