def plot_data(args):
    """Plot X as an interpolated image"""
    outfile = (args.out_params + '.png').format(param='X_colors', **args.__dict__)
    #fig, axs = pyplot.subplots(args.I+1, 1, sharex=True, sharey=True, squeeze=False)
    fig, axs = pyplot.subplots(args.I, 1, sharex=True, sharey=True, squeeze=False)
    fig.set_size_inches(24,20)
    I,T,L = args.X.shape
    extent = [0, T, 0, L]
    #extent = [0, 100, 0, 5]
    for i in xrange(args.I):
        im = axs[i,0].imshow(sp.flipud(args.X[i,:,:].T), interpolation='sinc', vmin=0, vmax=1, extent=extent, aspect='auto')
        im.set_cmap('spectral')
        axs[i,0].set_yticks(sp.linspace(0, L, L, endpoint=False) + .5)
        axs[i,0].set_yticklabels(valid_marks[:L])
        axs[i,0].text(2/T, L+1, valid_species[i], horizontalalignment='center', verticalalignment='top')

    fig.savefig(os.path.join(args.out_dir, outfile), dpi=120)
    pyplot.close('all')
dataset/ETHPy150Open uci-cbcl/tree-hmm/treehmm/plot.py/plot_data/swapped operands of `/`