Revision: 6703
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6703&view=rev
Author:   mdboom
Date:     2008-12-26 16:36:39 +0000 (Fri, 26 Dec 2008)

Log Message:
-----------
Document \mathdefault{} and \mathregular{} and the new mathtext.default rcParam.

Modified Paths:
--------------
    trunk/matplotlib/doc/users/mathtext.rst

Modified: trunk/matplotlib/doc/users/mathtext.rst
===================================================================
--- trunk/matplotlib/doc/users/mathtext.rst     2008-12-26 16:28:04 UTC (rev 
6702)
+++ trunk/matplotlib/doc/users/mathtext.rst     2008-12-26 16:36:39 UTC (rev 
6703)
@@ -144,10 +144,17 @@
 Fonts
 -----
 
-The default font is *italics* for mathematical symbols.  To change
-fonts, eg, to write "sin" in a Roman font, enclose the text in a font
-command::
+The default font is *italics* for mathematical symbols.
 
+.. note::
+
+   This default can be changed using the ``mathtext.default`` rcParam.
+   This is useful, for example, to use the same font as regular
+   non-math text for math text, by setting it to ``regular``.
+
+To change fonts, eg, to write "sin" in a Roman font, enclose the text
+in a font command::
+
     r'$s(t) = \mathcal{A}\mathrm{sin}(2 \omega t)$'
 
 .. math::
@@ -223,6 +230,12 @@
 
 .. image:: ../_static/stixsans_fontset.png
 
+Additionally, you can use ``\mathdefault{...}`` or its alias
+``\mathregular{...}`` to use the font used for regular text outside of
+mathtext.  There are a number of limitations to this approach, most
+notably that far fewer symbols will be available, but it can be useful
+to make math expressions blend well with other text in the plot.
+
 Custom fonts
 ~~~~~~~~~~~~
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to