[SciPy-User] 2d array to Latex
Skipper Seabold
jsseabold@gmail....
Sat Jan 23 11:21:37 CST 2010
On Sat, Jan 23, 2010 at 8:45 AM, <josef.pktd@gmail.com> wrote:
> 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.
>
FYI, this is also in the statsmodels sandbox for when we get around to
having nicer output.
Skipper
More information about the SciPy-User
mailing list