Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

Download files

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

Files for mlabtex, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size mlabtex-0.2.0-py2.py3-none-any.whl (6.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size mlabtex-0.2.0.tar.gz (56.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page