From: devicerandom Date: Fri, 24 Jul 2009 14:58:44 +0000 (+0000) Subject: (hooke_cli.py) text export, now with measure units. Fixes issue 0014 X-Git-Tag: 0.9.0~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9970039d06ac95badef7beeb99e975b6a694fd1;p=hooke.git (hooke_cli.py) text export, now with measure units. Fixes issue 0014 --- diff --git a/hooke_cli.py b/hooke_cli.py index 0f1fdbb..0d38042 100755 --- a/hooke_cli.py +++ b/hooke_cli.py @@ -691,6 +691,9 @@ Syntax: txt [filename] {plot to export} text='\n'.join(rows) txtfile=open(filename,'w+') + #Save units of measure in header + txtfile.write('X:'+self.plots[whichplot].units[0]+'\n') + txtfile.write('Y:'+self.plots[whichplot].units[1]+'\n') txtfile.write(text) txtfile.close()