def plotPowers(ax, params, popkeys, dataset, linestyles, linewidths, transient=<NUM_LIT:200>, SCALING_POSTFIX='<STR_LIT>', markerstyles=None):
colors = phlp.get_colors(len(popkeys))<EOL>depth = params.electrodeParams['<STR_LIT:z>']<EOL>zpos = np.r_[params.layerBoundaries[:, <NUM_LIT:0>],<EOL>params.layerBoundaries[-<NUM_LIT:1>, <NUM_LIT:1>]]<EOL>for i, layer in enumerate(popkeys):<EOL><INDENT>f = h5py.File(os.path.join(params.populations_path,<EOL>'<STR_LIT>' % (layer, dataset) + SCALING_POSTFIX + '<STR_LIT>' ))<EOL>ax.semilogx(f['<STR_LIT:data>'].value[:, transient:].var(axis=<NUM_LIT:1>), depth,<EOL>color=colors[i],<EOL>ls=linestyles[i],<EOL>lw=linewidths[i],<EOL>marker=None if markerstyles is None else markerstyles[i],<EOL>markersize=<NUM_LIT>,<EOL>markerfacecolor=colors[i],<EOL>markeredgecolor=colors[i],<EOL>label=layer,<EOL>clip_on=True<EOL>)<EOL>f.close()<EOL><DEDENT>f = h5py.File(os.path.join(params.savefolder, '<STR_LIT>' % dataset + SCALING_POSTFIX + '<STR_LIT>' ))<EOL>ax.plot(f['<STR_LIT:data>'].value[:, transient:].var(axis=<NUM_LIT:1>), depth,<EOL>'<STR_LIT:k>', label='<STR_LIT>', lw=<NUM_LIT>, clip_on=False)<EOL>f.close()<EOL>ax.set_yticks(zpos)<EOL>ax.set_yticklabels([])<EOL>try: <EOL><INDENT>ax.xaxis.set_major_locator(plt.LogLocator(base=<NUM_LIT:10>,<EOL>subs=np.linspace(-<NUM_LIT:10>, <NUM_LIT:10>, <NUM_LIT:2>), numticks=<NUM_LIT:6>))<EOL><DEDENT>except:<EOL><INDENT>ax.xaxis.set_major_locator(plt.LogLocator(base=<NUM_LIT:10>,<EOL>subs=np.linspace(-<NUM_LIT:10>, <NUM_LIT:10>, <NUM_LIT:2>)))<EOL><DEDENT>ax.xaxis.set_minor_locator(plt.LogLocator(base=<NUM_LIT:10>, subs=[<NUM_LIT:1.>]))<EOL>ax.axis('<STR_LIT>')<EOL>
plot power (variance) as function of depth for total and separate
    contributors

    Plot variance of sum signal