def add_sst_to_dot_display(ax, sst, color= '<STR_LIT>',alpha= <NUM_LIT:1.>):
plt.sca(ax)<EOL>N = len(sst)<EOL>current_ymax = <NUM_LIT:0><EOL>counter = <NUM_LIT:0><EOL>while True:<EOL><INDENT>if len(ax.get_lines()) !=<NUM_LIT:0>:<EOL><INDENT>data = ax.get_lines()[-<NUM_LIT:1>-counter].get_data()[<NUM_LIT:1>]<EOL>if np.sum(data) != <NUM_LIT:0>: <EOL><INDENT>current_ymax = np.max(data)<EOL>break<EOL><DEDENT>counter +=<NUM_LIT:1><EOL><DEDENT>else: <EOL><INDENT>break<EOL><DEDENT><DEDENT>for i in np.arange(N):<EOL><INDENT>plt.plot(sst[i],np.ones_like(sst[i])+i+current_ymax -<NUM_LIT:1>, '<STR_LIT>',ms=<NUM_LIT:0.5>, mfc=color,mec=color, alpha=alpha)<EOL><DEDENT>plt.xlabel(r'<STR_LIT>')<EOL>plt.ylabel(r'<STR_LIT>')<EOL>return ax<EOL>
suitable for plotting fraction of neurons