[SciPy-User] 2d array to Latex
josef.pktd at gmail.com
josef.pktd at gmail.com
Sat Jan 23 08:45:26 EST 2010
On Sat, Jan 23, 2010 at 8:35 AM, Alan G Isaac <aisaac at american.edu> wrote:
> On 1/22/2010 10:39 PM, josef.pktd at gmail.com wrote:
>> Is there a function somewhere to print a 2d array with Latex markup?
>
> Try SimpleTable:
> http://econpy.googlecode.com/svn/trunk/utilities/text.py
from econpy.utilities.text import SimpleTable
print SimpleTable(np.eye(3*2,3*2,k=1),fmt={'data_fmt':["%d"]}).as_latex_tabular()
Thanks, I had looked in econpy, but I didn't see it.
Josef
>
> Alan Isaac
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
More information about the SciPy-User
mailing list