def save_plot(axes="<STR_LIT>", path=None):
global line_attributes<EOL>if path==None: path = _s.dialogs.Save("<STR_LIT>", default_directory="<STR_LIT>")<EOL>if path=="<STR_LIT>":<EOL><INDENT>print("<STR_LIT>")<EOL>return<EOL><DEDENT>if not path.split("<STR_LIT:.>")[-<NUM_LIT:1>] == "<STR_LIT>": path = path+"<STR_LIT>"<EOL>f = file(path, "<STR_LIT:w>")<EOL>if axes=="<STR_LIT>": axes=_pylab.gca()<EOL>f.write("<STR_LIT>"  +axes.title.get_text().replace('<STR_LIT:\n>', '<STR_LIT>')+'<STR_LIT:\n>')<EOL>f.write("<STR_LIT>"+axes.xaxis.label.get_text().replace('<STR_LIT:\n>','<STR_LIT>')+'<STR_LIT:\n>')<EOL>f.write("<STR_LIT>"+axes.yaxis.label.get_text().replace('<STR_LIT:\n>','<STR_LIT>')+'<STR_LIT:\n>')<EOL>for l in axes.lines:<EOL><INDENT>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>"+l.get_label().replace('<STR_LIT:\n>', '<STR_LIT>')+"<STR_LIT:\n>")<EOL>for a in line_attributes: f.write(a+"<STR_LIT:=>"+str(_pylab.getp(l, a)).replace('<STR_LIT:\n>','<STR_LIT>')+"<STR_LIT:\n>")<EOL>x = l.get_xdata()<EOL>y = l.get_ydata()<EOL>for n in range(<NUM_LIT:0>, len(x)): f.write(str(float(x[n])) + "<STR_LIT:U+0020>" + str(float(y[n])) + "<STR_LIT:\n>")<EOL><DEDENT>f.close()<EOL>
Saves the figure in my own ascii format