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

Skip to content

Commit 53b5582

Browse files
committed
Merge pull request matplotlib#2195 from mdboom/docs-and-licensing
Update copyright model for matplotlib as of v1.3.0
2 parents 516bff6 + 4591cc4 commit 53b5582

File tree

6 files changed

+99
-49
lines changed

6 files changed

+99
-49
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
# General substitutions.
6060
project = 'Matplotlib'
61-
copyright = '2013 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team'
61+
copyright = '2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2013 The matplotlib development team'
6262

6363
# The default replacements for |version| and |release|, also used in various
6464
# other places throughout the built documents.

doc/devel/documenting_mpl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ An example save command to generate a movie looks like this
351351

352352
ani.save('double_pendulum.mp4', fps=15)
353353

354-
Contact John Hunter for the login password to upload youtube videos of
354+
Contact Michael Droettboom for the login password to upload youtube videos of
355355
google docs to the mplgithub account.
356356

357357
.. _referring-to-mpl-docs:

doc/users/license.rst

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,86 @@ licenses. Non-BSD compatible licenses (eg LGPL) are acceptable in
1313
matplotlib toolkits. For a discussion of the motivations behind the
1414
licencing choice, see :ref:`license-discussion`.
1515

16+
Copyright Policy
17+
================
18+
19+
John Hunter began matplotlib around 2003. Since shortly before his
20+
passing in 2012, Michael Droettboom has been the lead maintainer of
21+
matplotlib, but, as has always been the case, matplotlib is the work
22+
of many.
23+
24+
Prior to July of 2013, and the 1.3.0 release, the copyright of the
25+
source code was held by John Hunter. As of July 2013, and the 1.3.0
26+
release, matplotlib has moved to a shared copyright model.
27+
28+
matplotlib uses a shared copyright model. Each contributor maintains
29+
copyright over their contributions to matplotlib. But, it is important to
30+
note that these contributions are typically only changes to the
31+
repositories. Thus, the matplotlib source code, in its entirety, is not
32+
the copyright of any single person or institution. Instead, it is the
33+
collective copyright of the entire matplotlib Development Team. If
34+
individual contributors want to maintain a record of what
35+
changes/contributions they have specific copyright on, they should
36+
indicate their copyright in the commit message of the change, when
37+
they commit the change to one of the matplotlib repositories.
38+
39+
The Matplotlib Development Team is the set of all contributors to the
40+
matplotlib project. A full list can be obtained from the git version
41+
control logs.
1642

1743
License agreement for matplotlib |version|
1844
==============================================
1945

46+
1. This LICENSE AGREEMENT is between the Matplotlib Development Team
47+
("MDT"), and the Individual or Organization ("Licensee") accessing and
48+
otherwise using matplotlib software in source or binary form and its
49+
associated documentation.
50+
51+
. Subject to the terms and conditions of this License Agreement, MDT
52+
hereby grants Licensee a nonexclusive, royalty-free, world-wide license
53+
to reproduce, analyze, test, perform and/or display publicly, prepare
54+
derivative works, distribute, and otherwise use matplotlib |version|
55+
alone or in any derivative version, provided, however, that MDT's
56+
License Agreement and MDT's notice of copyright, i.e., "Copyright (c)
57+
2012-2013 Matplotlib Development Team; All Rights Reserved" are retained in
58+
matplotlib |version| alone or in any derivative version prepared by
59+
Licensee.
60+
61+
3. In the event Licensee prepares a derivative work that is based on or
62+
incorporates matplotlib |version| or any part thereof, and wants to
63+
make the derivative work available to others as provided herein, then
64+
Licensee hereby agrees to include in any such work a brief summary of
65+
the changes made to matplotlib |version|.
66+
67+
4. MDT is making matplotlib |version| available to Licensee on an "AS
68+
IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
69+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND
70+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
71+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB |version|
72+
WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
73+
74+
5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
75+
|version| FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
76+
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
77+
MATPLOTLIB |version|, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
78+
THE POSSIBILITY THEREOF.
79+
80+
6. This License Agreement will automatically terminate upon a material
81+
breach of its terms and conditions.
82+
83+
7. Nothing in this License Agreement shall be deemed to create any
84+
relationship of agency, partnership, or joint venture between MDT and
85+
Licensee. This License Agreement does not grant permission to use MDT
86+
trademarks or trade name in a trademark sense to endorse or promote
87+
products or services of Licensee, or any third party.
88+
89+
8. By copying, installing or otherwise using matplotlib |version|,
90+
Licensee agrees to be bound by the terms and conditions of this License
91+
Agreement.
92+
93+
License agreement for matplotlib versions prior to 1.3.0
94+
========================================================
95+
2096
1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the
2197
Individual or Organization ("Licensee") accessing and otherwise using
2298
matplotlib software in source or binary form and its associated

lib/matplotlib/afm.py

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
"""
22
This is a python interface to Adobe Font Metrics Files. Although a
3-
number of other python implementations exist (and may be more complete
4-
than mine) I decided not to go with them because either they were
5-
either
3+
number of other python implementations exist, and may be more complete
4+
than this, it was decided not to go with them because they were
5+
either:
66
77
1) copyrighted or used a non-BSD compatible license
88
9-
2) had too many dependencies and I wanted a free standing lib
9+
2) had too many dependencies and a free standing lib was needed
1010
11-
3) Did more than I needed and it was easier to write my own than
12-
figure out how to just get what I needed from theirs
11+
3) Did more than needed and it was easier to write afresh rather than
12+
figure out how to get just what was needed.
1313
14-
It is pretty easy to use, and requires only built-in python libs::
14+
It is pretty easy to use, and requires only built-in python libs:
1515
16-
>>> from afm import AFM
17-
>>> fh = open('ptmr8a.afm')
18-
>>> afm = AFM(fh)
16+
>>> from matplotlib import rcParams
17+
>>> import os.path
18+
>>> afm_fname = os.path.join(rcParams['datapath'],
19+
... 'fonts', 'afm', 'ptmr8a.afm')
20+
>>>
21+
>>> from matplotlib.afm import AFM
22+
>>> afm = AFM(open(afm_fname))
1923
>>> afm.string_width_height('What the heck?')
20-
(6220.0, 683)
24+
(6220.0, 694)
2125
>>> afm.get_fontname()
2226
'Times-Roman'
2327
>>> afm.get_kern_dist('A', 'f')
@@ -26,12 +30,7 @@
2630
-92.0
2731
>>> afm.get_bbox_char('!')
2832
[130, -9, 238, 676]
29-
>>> afm.get_bbox_font()
30-
[-168, -218, 1000, 898]
3133
32-
33-
AUTHOR:
34-
John D. Hunter <[email protected]>
3534
"""
3635

3736
from __future__ import print_function
@@ -549,14 +548,4 @@ def get_vertical_stem_width(self):
549548
Return the standard vertical stem width as float, or *None* if
550549
not specified in AFM file.
551550
"""
552-
return self._header.get(b'StdVW', None)
553-
554-
555-
if __name__ == '__main__':
556-
#pathname = '/usr/local/lib/R/afm/'
557-
pathname = '/usr/local/share/fonts/afms/adobe'
558-
559-
for fname in os.listdir(pathname):
560-
with open(os.path.join(pathname, fname)) as fh:
561-
afm = AFM(fh)
562-
w, h = afm.string_width_height('John Hunter is the Man!')
551+
return self._header.get(b'StdVW', None)

lib/matplotlib/backends/backend_wxagg.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
"""
2-
3-
backend_wxagg.py
4-
5-
A wxPython backend for Agg. This uses the GUI widgets written by
6-
Jeremy O'Donoghue ([email protected]) and the Agg backend by John
7-
8-
9-
Copyright (C) 2003-5 Jeremy O'Donoghue, John Hunter, Illinois Institute of
10-
Technology
11-
12-
13-
License: This work is licensed under the matplotlib license( PSF
14-
compatible). A copy should be included with this source code.
15-
16-
"""
17-
181
from __future__ import division, print_function
192
import matplotlib
203
from matplotlib.figure import Figure
@@ -26,6 +9,7 @@
269
draw_if_interactive, show, Toolbar, backend_version
2710
import wx
2811

12+
2913
class FigureFrameWxAgg(FigureFrameWx):
3014
def get_canvas(self, fig):
3115
return FigureCanvasWxAgg(self, -1, fig)
@@ -40,6 +24,7 @@ def _get_toolbar(self, statbar):
4024
toolbar = None
4125
return toolbar
4226

27+
4328
class FigureCanvasWxAgg(FigureCanvasAgg, FigureCanvasWx):
4429
"""
4530
The FigureCanvas contains the figure and does event handling.
@@ -105,6 +90,7 @@ def print_figure(self, filename, *args, **kwargs):
10590
if self._isDrawn:
10691
self.draw()
10792

93+
10894
class NavigationToolbar2WxAgg(NavigationToolbar2Wx):
10995
def get_canvas(self, frame, fig):
11096
return FigureCanvasWxAgg(frame, -1, fig)
@@ -200,5 +186,4 @@ def _WX28_clipped_agg_as_bitmap(agg, bbox):
200186
srcDC.SelectObject(wx.NullBitmap)
201187
destDC.SelectObject(wx.NullBitmap)
202188

203-
return destBmp
204-
189+
return destBmp

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ class Grouper(object):
16051605
>>> grp.join(b, c)
16061606
>>> grp.join(d, e)
16071607
>>> sorted(map(tuple, grp))
1608-
[(d, e), (a, b, c)]
1608+
[(a, b, c), (d, e)]
16091609
>>> grp.joined(a, b)
16101610
True
16111611
>>> grp.joined(a, c)

0 commit comments

Comments
 (0)