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

Skip to content

Commit 877cdd9

Browse files
committed
Merged revisions 6915-6916 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r6915 | mdboom | 2009-02-16 09:12:13 -0500 (Mon, 16 Feb 2009) | 2 lines Move the mathmpl Sphinx extension to the installed tree so that other projects can take advantage of it. ........ r6916 | mdboom | 2009-02-16 09:18:36 -0500 (Mon, 16 Feb 2009) | 1 line Update CHANGELOG ........ svn path=/trunk/matplotlib/; revision=6917
2 parents cdb9681 + 335b6d5 commit 877cdd9

6 files changed

Lines changed: 13 additions & 34 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2009-02-16 Move mathmpl.py to the installed source tree so it is
2+
available to other projects. - MGD
3+
14
2009-02-14 Added the legend title support - JJL
25

36
2009-02-10 Fixed a bug in backend_pdf so it doesn't break when the setting

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
# Add any Sphinx extension module names here, as strings. They can be extensions
2929
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30-
extensions = ['mathmpl', 'math_symbol_table', 'sphinx.ext.autodoc',
31-
'only_directives', 'plot_directive', 'inheritance_diagram',
32-
'gen_gallery', 'gen_rst']
30+
extensions = ['matplotlib.sphinxext.mathmpl', 'math_symbol_table',
31+
'sphinx.ext.autodoc', 'matplotlib.sphinxext.only_directives',
32+
'plot_directive', 'inheritance_diagram', 'gen_gallery', 'gen_rst']
3333

3434
# Add any paths that contain templates here, relative to this directory.
3535
templates_path = ['_templates']
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
"""matplotlib-based directive for math rendering in reST using sphinx.
2-
3-
To use this extension, add ``mathmpl`` to the list of extensions in
4-
:file:`conf.py`.
5-
6-
Note:
7-
8-
Current SVN versions of Sphinx now include built-in support for math.
9-
There are two flavors:
10-
11-
- pngmath: uses dvipng to render the equation
12-
13-
- jsmath: renders the math in the browser using Javascript
14-
15-
To use these extensions instead of the code in this module, add
16-
``sphinx.ext.pngmath`` or ``sphinx.ext.jsmath`` to the list of extensions in
17-
:file:`conf.py` instead of ``mathmpl``.
18-
19-
All three of these options for math are designed to behave in the same
20-
way.
21-
"""
22-
231
import os
242
import sys
253
try:

doc/sphinxext/only_directives.py renamed to lib/matplotlib/sphinxext/only_directives.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
"""Sphinx directives for selective inclusion of contents.
1+
#
2+
# A pair of directives for inserting content that will only appear in
3+
# either html or latex.
4+
#
25

3-
A pair of directives for inserting content that will only appear in
4-
either html or latex.
5-
"""
6-
7-
# Required modules
86
from docutils.nodes import Body, Element
97
from docutils.parsers.rst import directives
108

11-
12-
# Code begins
139
class only_base(Body, Element):
1410
def dont_traverse(self, *args, **kwargs):
1511
return []

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
'matplotlib.numerix.npyma',
5959
'matplotlib.numerix.linear_algebra',
6060
'matplotlib.numerix.random_array',
61-
'matplotlib.numerix.fft'
61+
'matplotlib.numerix.fft',
62+
'matplotlib.sphinxext'
6263
]
6364

6465
py_modules = ['pylab']

0 commit comments

Comments
 (0)