def plot_sim(ax, cell, synapse, grid_electrode, point_electrode, letter='<STR_LIT:a>'):
fig = plt.figure(figsize = (<NUM_LIT>*<NUM_LIT:2>/<NUM_LIT:3>, <NUM_LIT>*<NUM_LIT:2>/<NUM_LIT:3>))<EOL>ax = fig.add_axes([<NUM_LIT>,<NUM_LIT>,<NUM_LIT>,<NUM_LIT>], aspect='<STR_LIT>', frameon=False)<EOL>phlp.annotate_subplot(ax, ncols=<NUM_LIT:1>, nrows=<NUM_LIT:1>, letter=letter, fontsize=<NUM_LIT:16>)<EOL>cax = fig.add_axes([<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>], frameon=False)<EOL>LFP = np.max(np.abs(grid_electrode.LFP),<NUM_LIT:1>).reshape(X.shape)<EOL>im = ax.contour(X, Z, np.log10(LFP), <EOL><NUM_LIT:50>,<EOL>cmap='<STR_LIT>',<EOL>linewidths=<NUM_LIT>,<EOL>zorder=-<NUM_LIT:2>)<EOL>cbar = fig.colorbar(im, cax=cax)<EOL>cbar.set_label('<STR_LIT>')<EOL>cbar.outline.set_visible(False)<EOL>ticks = np.arange(np.ceil(np.log10(LFP.min())), np.ceil(np.log10(LFP.max())))<EOL>cbar.set_ticks(ticks)<EOL>cbar.set_ticklabels(<NUM_LIT>**ticks * <NUM_LIT>) <EOL>zips = []<EOL>for x, z in cell.get_idx_polygons():<EOL><INDENT>zips.append(list(zip(x, z)))<EOL><DEDENT>polycol = PolyCollection(zips,<EOL>edgecolors='<STR_LIT:k>',<EOL>linewidths=<NUM_LIT:0.5>,<EOL>facecolors='<STR_LIT:k>')<EOL>ax.add_collection(polycol)<EOL>ax.plot([<NUM_LIT:100>, <NUM_LIT:200>], [-<NUM_LIT>, -<NUM_LIT>], '<STR_LIT:k>', lw=<NUM_LIT:1>, clip_on=False)<EOL>ax.text(<NUM_LIT>, -<NUM_LIT>, r'<STR_LIT>', va='<STR_LIT>', ha='<STR_LIT>')<EOL>ax.axis('<STR_LIT>')<EOL>ax.plot(cell.xmid[cell.synidx],cell.zmid[cell.synidx], '<STR_LIT:o>', ms=<NUM_LIT:5>,<EOL>markeredgecolor='<STR_LIT:k>',<EOL>markerfacecolor='<STR_LIT:r>')<EOL>color_vec = ['<STR_LIT>','<STR_LIT>']<EOL>for i in range(<NUM_LIT:2>):<EOL><INDENT>ax.plot(point_electrode_parameters['<STR_LIT:x>'][i],<EOL>point_electrode_parameters['<STR_LIT:z>'][i],'<STR_LIT:o>',ms=<NUM_LIT:6>,<EOL>markeredgecolor='<STR_LIT:none>',<EOL>markerfacecolor=color_vec[i])<EOL><DEDENT>plt.axes([<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>])<EOL>plt.plot(cell.tvec,point_electrode.LFP[<NUM_LIT:0>]*<NUM_LIT>,color=color_vec[<NUM_LIT:0>], clip_on=False)<EOL>plt.plot(cell.tvec,point_electrode.LFP[<NUM_LIT:1>]*<NUM_LIT>,color=color_vec[<NUM_LIT:1>], clip_on=False)<EOL>plt.axis('<STR_LIT>')<EOL>ax = plt.gca()<EOL>ax.set_ylabel(r'<STR_LIT>') <EOL>ax.set_xlabel('<STR_LIT>', va='<STR_LIT>')<EOL>for loc, spine in ax.spines.items():<EOL><INDENT>if loc in ['<STR_LIT:right>', '<STR_LIT>']:<EOL><INDENT>spine.set_color('<STR_LIT:none>')            <EOL><DEDENT><DEDENT>ax.xaxis.set_ticks_position('<STR_LIT>')<EOL>ax.yaxis.set_ticks_position('<STR_LIT:left>')<EOL>plt.axes([<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>])<EOL>plt.plot(cell.tvec,synapse.i*<NUM_LIT>, color='<STR_LIT>', clip_on=False)<EOL>plt.axis('<STR_LIT>')<EOL>ax = plt.gca()<EOL>ax.set_ylabel(r'<STR_LIT>', ha='<STR_LIT>', va='<STR_LIT>') <EOL>for loc, spine in ax.spines.items():<EOL><INDENT>if loc in ['<STR_LIT:right>', '<STR_LIT>']:<EOL><INDENT>spine.set_color('<STR_LIT:none>')            <EOL><DEDENT><DEDENT>ax.xaxis.set_ticks_position('<STR_LIT>')<EOL>ax.yaxis.set_ticks_position('<STR_LIT:left>')<EOL>ax.set_xticklabels([])<EOL>return fig<EOL>
create a plot