Skip to content

Commit 9648c48

Browse files
committed
Merge remote branch 'remotes/main/master' (matplotlib/matplotlib/master)
Conflicts: doc/pyplots/make.py examples/animation/simple_3danim.py examples/pylab_examples/scatter_star_poly.py lib/matplotlib/backends/qt4_editor/formlayout.py lib/mpl_toolkits/axes_grid1/parasite_axes.py src/_backend_agg.cpp
2 parents 2ae4fcc + 2bc8ff6 commit 9648c48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+10193
-434
lines changed

CHANGELOG

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2011-03-10 Update pytz version to 2011c, thanks to Simon Cross. - JKS
2+
3+
2011-03-06 Add standalone tests.py test runner script. - JKS
4+
5+
2011-03-06 Set edgecolor to 'face' for scatter asterisk-type
6+
symbols; this fixes a bug in which these symbols were
7+
not responding to the c kwarg. The symbols have no
8+
face area, so only the edgecolor is visible. - EF
9+
10+
2011-02-27 Support libpng version 1.5.x; suggestion by Michael
11+
Albert. Changed installation specification to a
12+
minimum of libpng version 1.2. - EF
13+
114
2011-02-20 clabel accepts a callable as an fmt kwarg; modified
215
patch by Daniel Hyams. - EF
316

CXX/Python3/Config.hxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,12 @@
107107
# define TEMPLATE_TYPENAME class
108108
#endif
109109

110+
111+
/* Need to fudge Py_hash_t types for python > 3.2 */
112+
113+
#if PY_VERSION_HEX < 0x030200A4
114+
typedef long Py_hash_t;
115+
typedef unsigned long Py_uhash_t;
116+
#endif
117+
110118
#endif // __PyCXX_config_hh__

CXX/Python3/ExtensionTypeBase.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace Py
8383
virtual Object rich_compare( const Object &, int );
8484
virtual Object repr();
8585
virtual Object str();
86-
virtual long hash();
86+
virtual Py_hash_t hash();
8787
virtual Object call( const Object &, const Object & );
8888
virtual Object iter();
8989
virtual PyObject *iternext();

CXX/Python3/Objects.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ namespace Py
276276
return Object( PyObject_GetItem( p, *key ), true );
277277
}
278278

279-
long hashValue() const
279+
Py_hash_t hashValue() const
280280
{
281281
return PyObject_Hash( p );
282282
}
@@ -1165,7 +1165,7 @@ namespace Py
11651165
return the_item.getItem( key );
11661166
}
11671167

1168-
long hashValue() const
1168+
Py_hash_t hashValue() const
11691169
{
11701170
return the_item.hashValue();
11711171
}
@@ -2545,7 +2545,7 @@ namespace Py
25452545
return the_item.getItem( k );
25462546
}
25472547

2548-
long hashValue() const
2548+
Py_hash_t hashValue() const
25492549
{
25502550
return the_item.hashValue();
25512551
}

CXX/Python3/cxx_extensions.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ extern "C"
225225
static PyObject *rich_compare_handler( PyObject *, PyObject *, int );
226226
static PyObject *repr_handler( PyObject * );
227227
static PyObject *str_handler( PyObject * );
228-
static long hash_handler( PyObject * );
228+
static Py_hash_t hash_handler( PyObject * );
229229
static PyObject *call_handler( PyObject *, PyObject *, PyObject * );
230230
static PyObject *iter_handler( PyObject * );
231231
static PyObject *iternext_handler( PyObject * );
@@ -714,7 +714,7 @@ extern "C" PyObject *str_handler( PyObject *self )
714714
}
715715
}
716716

717-
extern "C" long hash_handler( PyObject *self )
717+
extern "C" Py_hash_t hash_handler( PyObject *self )
718718
{
719719
try
720720
{
@@ -1267,7 +1267,7 @@ Py::Object PythonExtensionBase::str()
12671267
return Py::None();
12681268
}
12691269

1270-
long PythonExtensionBase::hash()
1270+
Py_hash_t PythonExtensionBase::hash()
12711271
{
12721272
missing_method( hash );
12731273
return -1; }

doc/api/gridspec_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ matplotlib gridspec
44

55

66
:mod:`matplotlib.gridspec`
7-
====================
7+
==========================
88

99
.. automodule:: matplotlib.gridspec
1010
:members:

doc/devel/coding_guide.rst

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Coding guide
55
************
66

77
Committing changes
8-
------------------
8+
==================
99

1010
When committing changes to matplotlib, there are a few things to bear
1111
in mind.
@@ -358,7 +358,6 @@ object::
358358
print 'datafile', datafile
359359

360360

361-
.. _license-discussion:
362361

363362

364363

@@ -376,17 +375,31 @@ please ignore it while we consolidate our testing to these locations.)
376375
Running the tests
377376
-----------------
378377

379-
Running the tests is simple. Make sure you have nose installed and
380-
type from within Python::
378+
Running the tests is simple. Make sure you have nose installed and run
379+
the script :file:`tests.py` in the root directory of the distribution.
380+
The script can take any of the usual `nosetest arguments`_, such as
381+
382+
=================== ===========
383+
``-v`` increase verbosity
384+
``-d`` detailed error messages
385+
``--with-coverage`` enable collecting coverage information
386+
=================== ===========
387+
388+
To run a single test from the command line, you can provide a
389+
dot-separated path to the module followed by the function separated by
390+
a colon, eg. (this is assuming the test is installed)::
391+
392+
python tests.py matplotlib.tests.test_simplification:test_clipping
393+
394+
An alternative implementation that does not look at command line
395+
arguments works from within Python::
381396

382397
import matplotlib
383398
matplotlib.test()
384399

385-
To run a single test from the command line, you can provide
386-
a dot-separated path to the module and function, eg.
387-
(this is assuming the test is installed)::
388400

389-
nosetests matplotlib.tests.test_simplification:test_clipping
401+
.. _`nosetest arguments`: http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html
402+
390403

391404

392405
Writing a simple test
@@ -482,6 +495,8 @@ Let's say you've added a new module named
482495
the list of default tests, append its name to ``default_test_modules``
483496
in :file:`lib/matplotlib/__init__.py`.
484497

498+
.. _license-discussion:
499+
485500
Licenses
486501
========
487502

doc/devel/release_guide.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ replacing 'jdh2358' with your sourceforge login.
9292

9393

9494
Any changes to fix bugs in the release candidate should be fixed in
95-
the release branch and merged into the trunk with `git merge`; see
96-
:ref:`git merge`. When the release candidate is signed off on, build
97-
the final sdist, binaries and eggs, and upload them to the sourceforge
98-
release area.
95+
the release branch and merged into the trunk.
9996

10097

10198
.. _release-uploading:

doc/faq/howto_faq.rst

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -525,45 +525,7 @@ Contributing: howto
525525
Submit a patch
526526
-----------------
527527

528-
If you have a github account, or are willing to make one, make a private fork
529-
of the repository at `<https://github.com/matplotlib/matplotlib.git>`_. Then
530-
clone the repository::
531-
532-
git clone git@github.com:your_github_id/matplotlib.git
533-
534-
if you don't have a github account::
535-
536-
git clone git://github.com/matplotlib/matplotlib.git
537-
538-
If your changes are relative to a release branch, change branches, for example::
539-
540-
git checkout v1.0.x
541-
542-
Then make a new branch::
543-
544-
cd matplotlib
545-
git checkout -b topic
546-
547-
Make your changes, making commits as you see fit. To submit the changes, if you
548-
don't have a github account::
549-
550-
git diff topic v1.0.x > topic.diff
551-
552-
Post your patch the :file:`topic.diff` to the `matplotlib-devel
553-
<http://sourceforge.net/mail/?group_id=80706>`_ mailing list.
554-
555-
If you do have a github account, push the topic branch to your fork::
556-
557-
git push origin topic
558-
559-
Then visit your profile at github, select the new branch, and file a pull
560-
request.
561-
562-
If you don't want to create a github account::
563-
564-
git clone git://github.com/matplotlib/matplotlib.git
565-
cd matplotlib
566-
git checkout
528+
See :ref:`making-patches` for information on how to make a patch with git.
567529

568530
If you are posting a patch to fix a code bug, please explain your
569531
patch in words -- what was broken before and how you fixed it. Also,

doc/faq/installing_faq.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ install directory. To cleanly rebuild:
9292
<locating-matplotlib-install>`
9393

9494

95-
.. _install-git:
95+
.. _install-from-git:
9696

9797
Install from git
9898
================
@@ -405,9 +405,11 @@ changing the occurrences of ``MacOSX10.4u.sdk`` into ``MacOSX10.5.sdk``
405405
``/Library/Frameworks/Python.framework/Versions/Current/lib/pythonX.Y/site-packages/easy-install.pth``,
406406
(where X.Y is the version of Python you are building against)
407407
Comment out the line containing the name of the directory in which the
408-
previous version of MPL was installed (Looks something like ``./matplotlib-0.98.5.2n2-py2.5-macosx-10.3-fat.egg``).
408+
previous version of MPL was installed (Looks something like
409+
``./matplotlib-0.98.5.2n2-py2.5-macosx-10.3-fat.egg``).
409410

410-
3. Save the following as a shell script , for example ``./install-matplotlib-epd-osx.sh`` ::
411+
3. Save the following as a shell script , for example
412+
``./install-matplotlib-epd-osx.sh``::
411413

412414
NAME=matplotlib
413415
VERSION=v1.0.x

0 commit comments

Comments
 (0)