@@ -12,6 +12,9 @@ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk matplotli
1212# checking out the main src
1313svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib --username=youruser --password=yourpass
1414
15+ # branch checkouts, eg the transforms branch
16+ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/transforms transbranch
17+
1518== Committing changes ==
1619
1720When committing changes to matplotlib, there are a few things to bear
@@ -27,12 +30,6 @@ in mind.
2730 support 2.3, so avoid 2.4 only features like decorators until we
2831 remove 2.3 support
2932
30- * Are your changes Numeric, numarray and numpy compatible? Try
31- running simple_plot.py or image_demo.py with --Numeric, --numarray
32- and --numpy (Note, someone should add examples to
33- backend_driver.py which explicitly require numpy, numarray and
34- Numeric so we can automatically catch these)
35-
3633 * Can you pass examples/backend_driver.py? This is our poor man's
3734 unit test.
3835
@@ -49,9 +46,8 @@ in mind.
4946For numpy, use:
5047
5148 import numpy as npy
52- ...
5349 a = npy.array([1,2,3])
54- ...
50+
5551
5652For masked arrays, use:
5753 import matplotlib.numerix.npyma as ma
@@ -64,15 +60,19 @@ For masked arrays, use:
6460For matplotlib main module, use:
6561
6662 import matplotlib as mpl
67- ...
6863 mpl.rcParams['xtick.major.pad'] = 6
6964
70- For matplotlib modules, use:
65+ For matplotlib modules (or any other modules), use:
66+
67+ import matplotlib.cbook as cbook
68+
69+ if cbook.iterable(z):
70+ pass
7171
72- import matplotlib.cbook as cbook as mpl_cbook
73- ...
74- if mpl_cbook.iterable(z):
75- .. .
72+ We prefer this over the equivalent 'from matplotlib import cbook'
73+ because the latter is ambiguous whether cbook is a module or a
74+ function to the new developer. The former makes it explcit that
75+ you are importing a module or package .
7676
7777== Naming, spacing, and formatting conventions ==
7878
@@ -114,15 +114,6 @@ noise in svn diffs. If you are an emacs user, the following in your
114114python, C and C++
115115
116116
117- When importing modules from the matplotlib namespace
118-
119- import matplotlib.cbook as cbook # DO
120- from matplotlib import cbook #DONT
121-
122- because the latter is ambiguous whether cbook is a module or a
123- function to the new developer. The former makes it explcit that you
124- are importing a module or package.
125-
126117; and similarly for c++-mode-hook and c-mode-hook
127118(add-hook 'python-mode-hook
128119 (lambda ()
0 commit comments