def exp3WindowPlot(dm): """ desc: Creates a window plot with the different task conditions as individual lines. arguments: dm: type: DataMatrix """ from analysis import helpers dmSingle = dm.select('cond == "single"') dmDual = dm.select('cond == "dual"') Plot.new(widePlot) helpers.windowPlot(dmSingle, standalone=False, color=exp3SingleCol, label='Single task') helpers.windowPlot(dmDual, standalone=False, color=exp3DualCol, label='Dual task') plt.legend(frameon=False) Plot.save('windowPlot.task', folder=exp, show=show)
def crossExpWindowPlot(dm): """ desc: Creates a window plot with the Exp. 1 and 2 as individual lines. arguments: dm: type: DataMatrix """ assert(constants.exp == 'exp1') Plot.new(constants.widePlot) helpers.windowPlot(dm, standalone=False, color=constants.exp1Col, label='Exp. 1') constants.exp = 'exp2' dm = helpers.getDataMatrix(cacheId='data.%s' % constants.exp) dm = helpers.filter(dm, cacheId='filter.%s' % constants.exp) helpers.windowPlot(dm, standalone=False, color=constants.exp2Col, label='Exp. 2') plt.legend(frameon=False) Plot.save('windowPlot', folder='crossExp', show=constants.show)