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-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a3c5fecce5f0cd0c1561437e17aad2b26a5b947;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()