def plotPanelC(): panelC = [] panelCticks = [] panelC.append( singleCompt( 'negFB', ame.makeNegFB( [] ) ) ) panelC.append( singleCompt( 'negFF', ame.makeNegFF( [] ) ) ) panelC.append( singleCompt( 'fhn', ame.makeFHN( [] ) ) ) panelC.append( singleCompt( 'bis', ame.makeBis( [] ) ) ) panelCticks.append( np.arange( 0, 15.00001, 5 ) ) panelCticks.append( np.arange( 0, 1.50001, 0.5 ) ) panelCticks.append( np.arange( 0, 5.00002, 1 ) ) panelCticks.append( np.arange( 0, 5.00002, 1 ) ) moose.delete( '/model' ) for i in zip( panelC, panelCticks, list(range( len( panelC ))) ): plotPos = i[2] + 5 doty = i[1][-1] * 0.95 print('doty', doty )
def plotPanelB(): panelB = [] panelBticks = [] panelB.append(singleCompt('negFB', ame.makeNegFB([]))) panelB.append(singleCompt('negFF', ame.makeNegFF([]))) panelB.append(singleCompt('fhn', ame.makeFHN([]))) panelB.append(singleCompt('bis', ame.makeBis([]))) panelBticks.append(np.arange(0, 15.00001, 5)) panelBticks.append(np.arange(0, 1.50001, 0.5)) panelBticks.append(np.arange(0, 5.00002, 1)) panelBticks.append(np.arange(0, 5.00002, 1)) moose.delete('/model') for i in zip(panelB, panelBticks, range(len(panelB))): plotPos = i[2] + 5 ax = plotBoilerplate('B', plotPos, 'Time (s)') plt.plot(i[0][1], i[0][2]) doty = i[1][-1] * 0.95 plt.plot((50, 100), (doty, doty), '-') plt.plot((10, ), (doty, ), 'ro') xmax = ax.get_xlim()[1] #ax.xaxis.set_ticks( np.arange( 0, xmax, 50 ) ) ax.xaxis.set_ticks(np.arange(0, 150.001, 50)) ax.yaxis.set_ticks(i[1])