def save_figure_raw_data(figure="<STR_LIT>", **kwargs):
<EOL>path = _s.dialogs.Save(**kwargs)<EOL>if path=="<STR_LIT>": return "<STR_LIT>"<EOL>if figure=="<STR_LIT>": figure = _pylab.gcf()<EOL>for n in range(len(figure.axes)):<EOL><INDENT>a = figure.axes[n]<EOL>for m in range(len(a.lines)):<EOL><INDENT>l = a.lines[m]<EOL>x = l.get_xdata()<EOL>y = l.get_ydata()<EOL>p = _os.path.split(path)<EOL>p = _os.path.join(p[<NUM_LIT:0>], "<STR_LIT>" + str(n) + "<STR_LIT>" + str(m) + "<STR_LIT:U+0020>" + p[<NUM_LIT:1>])<EOL>print(p)<EOL>f = open(p, '<STR_LIT:w>')<EOL>for j in range(<NUM_LIT:0>, len(x)):<EOL><INDENT>f.write(str(x[j]) + "<STR_LIT:\t>" + str(y[j]) + "<STR_LIT:\n>")<EOL><DEDENT>f.close()<EOL><DEDENT><DEDENT>
This will just output an ascii file for each of the traces in the shown figure.

**kwargs are sent to dialogs.Save()