Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65ed8e7

Browse files
committed
Fixed review comments
1 parent b1f3c2f commit 65ed8e7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
``math_to_image`` now has a ``color`` keyword argument
1+
``math_to_image`` now has a *color* keyword argument
22
--------------------------------------------------------
33

44
To easily support external libraries that rely on the rendering of Matplotlib
5-
to generate figures, a ``color`` keyword argument was added to
5+
to generate figures, a *color* keyword argument was added to
66
``math_to_image``.
77

88
.. code-block:: python
99
1010
from matplotlib import mathtext
11-
mathtext.math_to_image('$x**2$', 'filename.png', color='Maroon')
11+
mathtext.math_to_image('$x^2$', 'filename.png', color='Maroon')

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def math_to_image(s, filename_or_obj, prop=None, dpi=None, format=None,
584584
The output format, e.g., 'svg', 'pdf', 'ps' or 'png'. If not set, the
585585
format is determined as for `.Figure.savefig`.
586586
color : str, optional
587-
Foreground color, if not set the color is determined by rc params.
587+
Foreground color, defaults to :rc:`text.color`.
588588
"""
589589
from matplotlib import figure
590590

0 commit comments

Comments
 (0)