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

Skip to content

Commit 775b229

Browse files
committed
Merge pull request #416 from efiring/sphinxext_updates
Sphinxext updates
2 parents 40686cb + 0f50185 commit 775b229

4 files changed

Lines changed: 532 additions & 293 deletions

File tree

doc/_templates/indexsidebar.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ <h3>News</h3>
55
to support matplotlib development.</p>
66

77

8-
<p>matplotlib 1.0.1 is available for <a href="https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/">download</a>. See <a href="{{ pathto('users/whats_new') }}">what's new</a> and tips on <a href="{{
9-
pathto('users/installing') }}">installing</a>
8+
<p>Matplotlib 1.1.0 is available for
9+
<a href="https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/">download</a>.
10+
See <a href="{{ pathto('users/whats_new') }}">what's new</a>
11+
and tips on <a href="{{ pathto('users/installing') }}">installing</a>.
1012
</p>
1113

1214
<p>Sandro Tosi has a new book
@@ -16,7 +18,7 @@ <h3>News</h3>
1618
at <a href="http://www.amazon.com/Matplotlib-Python-Developers-Sandro-Tosi/dp/1847197906">amazon</a>.</p>
1719

1820
<p>Build websites like matplotlib's,
19-
with <a href="http://sphinx.pocoo.org/">sphinx</a> and extensions for
21+
with <a href="http://sphinx.pocoo.org/">Sphinx</a> and extensions for
2022
mpl plots, math, inheritance diagrams -- try
2123
the <a href="http://matplotlib.sf.net/sampledoc">sampledoc</a>
2224
tutorial.
@@ -38,7 +40,7 @@ <h3>Videos</h3>
3840

3941
<h3>Toolkits</h3>
4042

41-
<p>There are several matplotlib addon <a href="{{
43+
<p>There are several matplotlib add-on <a href="{{
4244
pathto('users/toolkits') }}">toolkits</a>, including the projection
4345
and mapping toolkit
4446
<a href="http://matplotlib.sf.net/basemap/doc/html">basemap</a>, 3d plotting with <a href="{{
@@ -59,8 +61,8 @@ <h3>Need help?</h3>
5961
examples which exercise almost every corner of matplotlib.</p>
6062

6163
<p>You can file bugs, patches and feature requests on the
62-
sourceforge
63-
<a href="http://sourceforge.net/tracker2/?group_id=80706">tracker</a>,
64+
github
65+
<a href="https://github.com/matplotlib/matplotlib/issues?sort=created&direction=desc&state=open">tracker</a>,
6466
but it is a good idea to ping us on the mailing list too.</p>
6567

6668
<p>For details on what's new, see the detailed <a href="{{

doc/devel/coding_guide.rst

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ in mind.
2323
* Can you pass :file:`examples/tests/backend_driver.py`? This is our
2424
poor man's unit test.
2525

26-
* Can you add a test to :file:`unit/nose_tests.py` to test your changes?
26+
* Can you add a test to :file:`lib/matplotlib/tests` to test your changes?
2727

2828
* If you have altered extension code, do you pass
2929
:file:`unit/memleak_hawaii3.py`?
@@ -33,7 +33,7 @@ in mind.
3333
:file:`MANIFEST.in`. This file determines what goes into the source
3434
distribution of the mpl build.
3535

36-
* Keep the maintenance branches and trunk in sync where it makes sense.
36+
* Keep the maintenance branches and master in sync where it makes sense.
3737

3838
Style guide
3939
===========
@@ -101,8 +101,8 @@ To detect and fix these and other whitespace errors (see below),
101101
use `reindent.py
102102
<http://svn.python.org/projects/doctools/trunk/utils/reindent.py>`_ as
103103
a command-line script. Unless you are sure your editor always
104-
does the right thing, please use reindent.py before checking changes into
105-
svn.
104+
does the right thing, please use reindent.py before committing your
105+
changes in git.
106106

107107
Keep docstrings_ uniformly indented as in the example below, with
108108
nothing to the left of the triple quotes. The
@@ -116,7 +116,7 @@ It may be preferable to use a temporary variable to replace a single
116116
long line with two shorter and more readable lines.
117117

118118
Please do not commit lines with trailing white space, as it causes
119-
noise in svn diffs. Tell your editor to strip whitespace from line
119+
noise in git diffs. Tell your editor to strip whitespace from line
120120
ends when saving a file. If you are an emacs user, the following in
121121
your ``.emacs`` will cause emacs to strip trailing white space upon
122122
saving for python, C and C++:
@@ -324,43 +324,32 @@ Writing examples
324324
================
325325

326326
We have hundreds of examples in subdirectories of
327-
file:`matplotlib/examples` in the trunk, and these are automatically
328-
generated when the website it built to show up both in the `examples
327+
file:`matplotlib/examples`, and these are automatically
328+
generated when the website is built to show up both in the `examples
329329
<http://matplotlib.sourceforge.net/examples/index.html>`_ and `gallery
330330
<http://matplotlib.sourceforge.net/gallery.html>`_ sections of the
331331
website. Many people find these examples from the website, and do not
332332
have ready access to the file:`examples` directory in which they
333333
reside. Thus any example data that is required for the example should
334-
be provided through the sample_data svn directory, which can then be
335-
accessed using :func:`matplotlib.cbook.get_sample_data`. First get a
336-
copy of the repository and svn add your data::
337-
338-
svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/sample_data
339-
cp ~/path/to/mydata.dat sample_data/
340-
cd sample_data
341-
svn add mydata.dat
342-
svn commit -m 'added my data'
343-
344-
and then in your example code you can load it into a file handle with::
334+
be added to the `sample_data
335+
<https://github.com/matplotlib/sample_data>`_ git repository.
336+
Then in your example code you can load it into a file handle with::
345337

346338
import matplotlib.cbook as cbook
347339
fh = cbook.get_sample_data('mydata.dat')
348340

349-
The file will be fetched from the svn repo using urllib and updated
341+
The file will be fetched from the git repo using urllib and updated
350342
when the revision number changes.
351343

352344

353-
If you prefer just to get the full path to the file instead of an file
345+
If you prefer just to get the full path to the file instead of a file
354346
object::
355347

356348
import matplotlib.cbook as cbook
357349
datafile = cbook.get_sample_data('mydata.dat', asfileobj=False)
358350
print 'datafile', datafile
359351

360352

361-
362-
363-
364353
Testing
365354
=======
366355

0 commit comments

Comments
 (0)