<s> __author__ = '<STR_LIT>' <EOL> import os <EOL> from pypet import Trajectory <EOL> import matplotlib . pyplot as plt <EOL> def main ( ) : <EOL> traj = Trajectory ( '<STR_LIT>' , add_time = False ) <EOL> filename = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> traj . f_load ( load_parameters = <NUM_LIT:2> , load_derived_parameters = <NUM_LIT:0> , load_results = <NUM_LIT:0> , <EOL> load_other_data = <NUM_LIT:0> , filename = filename ) <EOL> traj . v_auto_load = True <EOL> rates_frame = traj . res . summary . firing_rates . rates_frame <EOL> plt . figure ( ) <EOL> plt . subplot ( <NUM_LIT:2> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> for tau_ref , I_col in rates_frame . iteritems ( ) : <EOL> plt . plot ( I_col . index , I_col , label = '<STR_LIT>' % str ( tau_ref ) ) <EOL> plt . xlabel ( '<STR_LIT:I>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . title ( '<STR_LIT>' ) <EOL> plt . legend ( loc = '<STR_LIT>' ) <EOL> example_run = <NUM_LIT> <EOL> traj . v_idx = example_run <EOL> example_I = traj . I <EOL> example_tau_ref = traj . tau_ref <EOL> example_V = traj . results . neuron . crun . V <EOL> dt = traj . dt <EOL> dt_array = [ irun * dt for irun in range ( len ( example_V ) ) ] <EOL> plt . subplot ( <NUM_LIT:2> , <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> plt . plot ( dt_array , example_V ) <EOL> plt . xlim ( ( <NUM_LIT:0> , dt * len ( example_V ) / <NUM_LIT:8> ) ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . title ( '<STR_LIT>' % <EOL> ( str ( example_I ) , str ( example_tau_ref ) , traj . v_idx ) ) <EOL> plt . show ( ) <EOL> traj . f_restore_default ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
