Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 434 Bytes

color_support_for_math_to_image.rst

File metadata and controls

11 lines (8 loc) · 434 Bytes

math_to_image now has a color keyword argument

To easily support external libraries that rely on the MathText rendering of Matplotlib to generate equation images, a color keyword argument was added to ~matplotlib.mathtext.math_to_image.

from matplotlib import mathtext
mathtext.math_to_image('$x^2$', 'filename.png', color='Maroon')