Tuesday, December 4, 2012

numpy 2D array to tex table

As I got annoyed by copying tables from python output to tex, I wrote a small script that converts a numpy 2D array to tex. If you specify a filename, the string is written to a file, otherwise it's just returned.
It can be found in my repository:
https://github.com/hanslovsky/scripts/blob/master/numpy2tex.py

I will add more scripts that I think are useful.

No comments:

Post a Comment