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

Skip to content

Commit 4b791b0

Browse files
committed
update mathtext on review and added notes to the outline
svn path=/trunk/matplotlib/; revision=5432
1 parent 350fe54 commit 4b791b0

3 files changed

Lines changed: 40 additions & 12 deletions

File tree

doc/devel/outline.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ patches ? no author ?
2828
legends ? no author ?
2929
animation John has author ?
3030
collections ? no author ?
31-
mathtext Michael ? submitted John
31+
mathtext Michael in review John
3232
fonts et al Michael ? no author Darren
3333
pyplot tut John submitted Eric
3434
usetex Darren submitted ?
@@ -95,3 +95,28 @@ produce and checking their work, so don't be shy. You *do not* need
9595
to be an expert in the subject you are editing -- you should know
9696
something about it and be willing to read, test, give feedback and
9797
pester!
98+
99+
Reviewer notes
100+
==============
101+
102+
If you want to make notes for the authorwhen you have reviewed a
103+
submission, you can put them here. As the author cleans them up or
104+
addresses them, they should be removed.
105+
106+
mathtext user's guide (reviewd by JDH)
107+
--------------------------------------
108+
109+
This looks good -- there are a few minor things to close the book on
110+
this chapter.
111+
112+
#. The main thing to wrap this up is getting the mathtext module
113+
ported over to rest and included in the API so the links from the
114+
user's guide tutorial work.
115+
116+
#. This section might also benefit from a little more detail on the
117+
customizations that are possible (eg an example fleshing out the rc
118+
options a little bit). Admittedly, this is pretty clear from readin
119+
ghte rc file, but it might be helpful to a newbie.
120+
121+
#. There is still a TODO in the file to include a complete list of symbols
122+

doc/users/mathtext.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ own TeX expression parser, layout engine and fonts. The layout engine
1111
is a fairly direct adaptation of the layout algorithms in Donald
1212
Knuth's TeX, so the quality is quite good (matplotlib also provides a
1313
``usetex`` option for those who do want to call out to TeX to generate
14-
their text).
14+
their text (see :ref:`usetex-tutorial`).
1515

1616
Any text element can use math text. You need to use raw strings
1717
(preceed the quotes with an ``'r'``), and surround the string text
@@ -20,7 +20,8 @@ interleaved within the same string. Mathtext can use the Computer
2020
Modern fonts (from (La)TeX), `STIX <http://www.aip.org/stixfonts/>`_
2121
fonts (with are designed to blend well with Times) or a Unicode font
2222
that you provide. The mathtext font can be selected with the
23-
customization variable ``mathtext.fontset``.
23+
customization variable ``mathtext.fontset`` (see
24+
:ref:`customizing-matplotlib`)
2425

2526
Here is a simple example::
2627

@@ -165,7 +166,8 @@ When using the STIX fonts, you also have the choice of:
165166
.. image:: ../_static/stix_fonts.png
166167

167168
There are also three global "font sets" to choose from, which are
168-
selected using the ``mathtext.fontset`` parameter in ``matplotibrc``.
169+
selected using the ``mathtext.fontset`` parameter in
170+
::ref:`matplotlibrc <matplotlibrc-sample>`.
169171

170172
``cm``: **Computer Modern (TeX)**
171173

doc/users/usetex.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ Text Rendering With LaTeX
77
Matplotlib has the option to use LaTeX to manage all text layout. This
88
option is available with the following backends:
99

10-
* \*Agg
10+
* Agg
1111
* PS
1212
* PDF
1313

14-
The LaTeX option is activated by setting text.usetex : true in your rc
15-
settings. Text handling with matplotlib's LaTeX support is slower than
16-
matplotlib's very capable :ref:`mathtext <mathtext-tutorial>`, but is more
17-
flexible, since different LaTeX packages (font packages, math packages, etc.)
18-
can be used. The results can be striking, especially when you take care to use
19-
the same fonts in your figures as in the main document.
14+
The LaTeX option is activated by setting ``text.usetex : True`` in
15+
your rc settings. Text handling with matplotlib's LaTeX support is
16+
slower than matplotlib's very capable :ref:`mathtext
17+
<mathtext-tutorial>`, but is more flexible, since different LaTeX
18+
packages (font packages, math packages, etc.) can be used. The
19+
results can be striking, especially when you take care to use the same
20+
fonts in your figures as in the main document.
2021

2122
Matplotlib's LaTeX support requires a working LaTeX_ installation, dvipng_
2223
(which may be included with your LaTeX installation), and Ghostscript_
@@ -126,4 +127,4 @@ Illustrator, and searched text in pdf documents.
126127
.. _Ghostscript: http://www.cs.wisc.edu/~ghost/
127128
.. _PSNFSS: http://www.ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf
128129
.. _Poppler: http://poppler.freedesktop.org/
129-
.. _Xpdf: http://www.foolabs.com/xpdf
130+
.. _Xpdf: http://www.foolabs.com/xpdf

0 commit comments

Comments
 (0)