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

Skip to content

Commit 84fc496

Browse files
committed
tried some svg and ps extensions but bailing for now because of usetex issues
svn path=/trunk/matplotlib/; revision=5524
1 parent 95a22b1 commit 84fc496

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jdh_doc_snapshot:
3737
python setup.py install --prefix=~/dev;\
3838
cd doc;\
3939
rm -rf build;\
40-
python make.py clean html latex sf;
40+
python make.py clean;\
41+
svn up;\
42+
python make.py html latex sf;
4143

4244

4345

doc/sphinxext/plot_directive.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
4646
[ `<../%(srcdir)s/%(reference)s>`__,
4747
`png <../%(srcdir)s/%(basename)s.hires.png>`__,
48-
`pdf <../%(srcdir)s/%(basename)s.pdf>`__ ]
48+
`pdf <../%(srcdir)s/%(basename)s.pdf>`__]
4949
5050
.. image:: ../%(srcdir)s/%(basename)s.png
5151
%(options)s
@@ -64,7 +64,7 @@
6464
6565
[ `py <../%(srcdir)s/%(reference)s>`__,
6666
`png <../%(srcdir)s/%(basename)s.hires.png>`__,
67-
`pdf <../%(srcdir)s/%(basename)s.pdf>`__ ]
67+
`pdf <../%(srcdir)s/%(basename)s.pdf>`__]
6868
6969
.. image:: ../%(srcdir)s/%(basename)s.png
7070
%(options)s
@@ -83,7 +83,8 @@ def makefig(fullpath, outdir):
8383
fullpath = str(fullpath) # todo, why is unicode breaking this
8484
formats = [('png', 100),
8585
('hires.png', 200),
86-
('pdf', 72)]
86+
('pdf', 72),
87+
]
8788

8889
basedir, fname = os.path.split(fullpath)
8990
basename, ext = os.path.splitext(fname)
@@ -105,8 +106,10 @@ def makefig(fullpath, outdir):
105106
mplshell.magic_run(fullpath)
106107
for format, dpi in formats:
107108
outname = os.path.join(outdir, '%s.%s' % (basename, format))
109+
if os.path.exists(outname): continue
108110
plt.savefig(outname, dpi=dpi)
109111

112+
110113
def run(arguments, options, state_machine, lineno):
111114
reference = directives.uri(arguments[0])
112115
basename, ext = os.path.splitext(reference)

doc/users/customizing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Customizing matplotlib
66

77
.. _customizing-with-matplotlibrc-files:
88

9-
The matplotlibrc File
10-
=====================
9+
The :file:`matplotlibrc` file
10+
=============================
1111

1212
matplotlib uses :file:`matplotlibrc` configuration files to customize all kinds
1313
of properties, which we call `rc settings` or `rc parameters`. You can control

doc/users/pyplot_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pyplot tutorial
55
***************
66

77
:mod:`matplotlib.pyplot` is a collection of command style functions
8-
that make matplotlib work like matlab. Each ``pyplot`` function makes
8+
that make matplotlib work like matlab. Each ``pyplot`` function makes
99
some change to a figure: eg, create a figure, create a plotting area
1010
in a figure, plot some lines in a plotting area, decorate the plot
1111
with labels, etc.... :mod:`matplotlib.pyplot` is stateful, in that it

0 commit comments

Comments
 (0)