[SciPy-User] 2d array to Latex
josef.pktd@gmai...
josef.pktd@gmai...
Sat Jan 23 12:43:11 CST 2010
On Sat, Jan 23, 2010 at 12:21 PM, Skipper Seabold <jsseabold@gmail.com> wrote:
> 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.
ouch,
Josef
"ouch: Ornstein-Uhlenbeck models for phylogenetic comparative hypotheses"
>
> Skipper
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
More information about the SciPy-User
mailing list