Skip to main content

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

Metadata

Release files for mlabtex 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlabtex 0.2.0
File Size Uploaded Provenance
mlabtex-0.2.0.tar.gz 56.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mlabtex 0.2.0
File Interpreter ABI Platform
mlabtex-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 63.6 kB

Release files / mlabtex-0.2.0.tar.gz

Download URL mlabtex-0.2.0.tar.gz
Size 56.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec86fd82aabf1d9d7c89fbaed2bc0028e48da55a7aab8031f7793776d0a2f537
BLAKE2b-256 checksum
How to use checksums
489bbb587d649aba1036237f5094a78193e111d26a5691adf717066fe955efe8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mlabtex-0.2.0-py2.py3-none-any.whl

Download URL mlabtex-0.2.0-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2216b2db90439b086a8d91aa8a021763e520cec3f2224d3d244bd53c6bde3a28
BLAKE2b-256 checksum
How to use checksums
ecff3fd3c9760fa739a852a292100a683a341887d81b13b963d5d3c43d6f36c8
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for mlabtex 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page