Skip to main content

mlabtex: A renderer for latex code in mayavi.

Project description

mlabtex

PyPI version Build Status Coverage Status Documentation Status Code style: black

Purpose

mlabtex provides a renderer for latex code in mayavi.

Installation

pip install mlabtex

Functions

The following functions are provided

  • render_latex -- A renderer for latex-code to produce image files.
  • mlabtex -- A renderer for latex code in mayavi.
  • mlabimg -- A renderer for image files in mayavi.

Dependencies

For rendering

Example

You can use it like the mlab.surf routine:

from mayavi import mlab
from mlabtex import mlabtex

text = (
    r'Sebastian M\"uller, '
    + r'$f(x)=\displaystyle\sum_{n=0}^\infty '
    + r'f^{(n)}(x_0)\cdot\frac{(x-x_0)^n}{n!}$'
)
tex = mlabtex(
    0., 0., 0.,
    text,
    color=(0., 0., 0.),
    orientation=(30., 0., 0.),
    dpi=1200,
)
mlab.axes()
mlab.show()

Latex in Mayavi

Copyright Sebastian Mueller 2019

Project details


Download files

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

Source Distribution

mlabtex-0.2.0.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

mlabtex-0.2.0-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mlabtex-0.2.0.tar.gz.

File metadata

  • Download URL: mlabtex-0.2.0.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

File hashes

Hashes for mlabtex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec86fd82aabf1d9d7c89fbaed2bc0028e48da55a7aab8031f7793776d0a2f537
MD5 7d2de8ddc5b94c91928ad8172e5c5357
BLAKE2b-256 489bbb587d649aba1036237f5094a78193e111d26a5691adf717066fe955efe8

See more details on using hashes here.

File details

Details for the file mlabtex-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mlabtex-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

File hashes

Hashes for mlabtex-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2216b2db90439b086a8d91aa8a021763e520cec3f2224d3d244bd53c6bde3a28
MD5 6a84e7b1f02d2a50ad8a5f1550191803
BLAKE2b-256 ecff3fd3c9760fa739a852a292100a683a341887d81b13b963d5d3c43d6f36c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page