1- ***************
1+ .. _coding-guide :
2+
3+ ************
4+ Coding Guide
5+ ************
6+
7+ .. _version-control :
8+
29Version Control
3- ***************
10+ ===============
411
512svn checkouts
6- =============
13+ -------------
714
815Checking out everything in the trunk (matplotlib and toolkits)::
916
@@ -21,7 +28,7 @@ Branch checkouts, eg the maintenance branch::
2128 v0_91_maint mpl91 --username=youruser --password=yourpass
2229
2330Committing changes
24- ==================
31+ ------------------
2532
2633When committing changes to matplotlib, there are a few things to bear
2734in mind.
@@ -74,12 +81,14 @@ in mind.
7481
7582 > svn commit -F svnmerge-commit-message.txt
7683
77- ***********
84+
85+ .. _style-guide :
86+
7887Style Guide
79- ***********
88+ ===========
8089
8190Importing and name spaces
82- =========================
91+ -------------------------
8392
8493For `numpy <http://www.numpy.org >`_, use::
8594
@@ -115,7 +124,7 @@ function to the new developer. The former makes it explcit that
115124you are importing a module or package.
116125
117126Naming, spacing, and formatting conventions
118- ===========================================
127+ -------------------------------------------
119128
120129In general, we want to hew as closely as possible to the standard
121130coding guidelines for python written by Guido in `PEP 0008
@@ -172,7 +181,7 @@ for older versions of emacs (emacs<22) you need to do:
172181 (add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))
173182
174183 Keyword argument processing
175- ===========================
184+ ---------------------------
176185
177186Matplotlib makes extensive use of ``**kwargs `` for pass through
178187customizations from one function to another. A typical example is in
@@ -255,6 +264,8 @@ forced to use ``**kwargs``. An example is
255264 elif len(args) == 1:
256265 ...etc...
257266
267+ .. _docstrings :
268+
258269Documentation and Docstrings
259270============================
260271
@@ -327,9 +338,11 @@ made some manual hacks in this case which violates the "single entry
327338point" requirement above; hopefully we'll find a more elegant solution
328339before too long.
329340
330- ********
341+
342+ .. _licenses :
343+
331344Licenses
332- ********
345+ ========
333346
334347Matplotlib only uses BSD compatible code. If you bring in code from
335348another project make sure it has a PSF, BSD, MIT or compatible
0 commit comments