mlabtex 0.2.0

Creator: bigcodingguy24

Last updated:

Add to Cart

Description:

mlabtex 0.2.0

mlabtex





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

NumPy
Mayavi

For rendering

matplotlib
sympy

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()


Copyright Sebastian Mueller 2019

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.