[SciPy-User] 2d array to Latex

josef.pktd@gmai... josef.pktd@gmai...
Sat Jan 23 07:45:26 CST 2010


On Sat, Jan 23, 2010 at 8:35 AM, Alan G Isaac <aisaac@american.edu> wrote:
> On 1/22/2010 10:39 PM, josef.pktd@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-User mailing list