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

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

Makefile

+3-1
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

+6-3
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

+2-2
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

+1-1
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)