Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Return Numpy arrays as formatted LaTeX arrays.

Project Description

The package array_to_latex converts a Numpy/Scipy array to a LaTeX array including Python 3.x style formating of the result.

Install using pip install --user array_to_latex

Please read the help which explains usage.

import numpy as np
import array_to_latex as ar
A = np.array([[1.23456, 23.45678],[456.23, 8.239521]])
ar.to_ltx(A, frmt = '{:6.2f}', arraytype = 'array')

will print the LaTeX code to your ouput.

import numpy as np
import array_to_latex as ar
A = np.array([[1.23456, 23.45678],[456.23, 8.239521]])
ar.to_clp(A, frmt = '{:6.2f}', arraytype = 'array')

will put the array onto your clipboard.

More detailed information on usage is in the help.

import array_to_latex as ar
help(ar.to_ltx)

An interesting alternative approach is np array to latex.

Release History

Release History

This version
History Node

0.36

History Node

0.35

History Node

0.35b4

History Node

0.35b3

History Node

0.35b2

History Node

0.35b1

History Node

0.35b0

History Node

0.33b

History Node

0.32b

History Node

0.31b

History Node

0.30b

History Node

0.20b

History Node

0.11b

History Node

0.10

History Node

0.1b

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
array_to_latex-0.36.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Nov 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting