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

Skip to content

Commit fa45014

Browse files
pelsonmdboom
authored andcommitted
Updated some of the documentation information.
1 parent 6397fe9 commit fa45014

File tree

6 files changed

+34
-60
lines changed

6 files changed

+34
-60
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 - 2013 Michael Droettboom and 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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ licencing choice, see :ref:`license-discussion`.
1717
License agreement for matplotlib |version|
1818
==============================================
1919

20-
1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the
20+
1. This LICENSE AGREEMENT is between Michael Droettboom ("MDB"), and the
2121
Individual or Organization ("Licensee") accessing and otherwise using
2222
matplotlib software in source or binary form and its associated
2323
documentation.
2424

25-
2. Subject to the terms and conditions of this License Agreement, JDH
25+
2. Subject to the terms and conditions of this License Agreement, MDB
2626
hereby grants Licensee a nonexclusive, royalty-free, world-wide license
2727
to reproduce, analyze, test, perform and/or display publicly, prepare
2828
derivative works, distribute, and otherwise use matplotlib |version|
29-
alone or in any derivative version, provided, however, that JDH's
30-
License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
31-
2002-2009 John D. Hunter; All Rights Reserved" are retained in
29+
alone or in any derivative version, provided, however, that MDB's
30+
License Agreement and MDB's notice of copyright, i.e., "Copyright (c)
31+
2002-2013 Michael Droettboom; All Rights Reserved" are retained in
3232
matplotlib |version| alone or in any derivative version prepared by
3333
Licensee.
3434

@@ -38,14 +38,14 @@ make the derivative work available to others as provided herein, then
3838
Licensee hereby agrees to include in any such work a brief summary of
3939
the changes made to matplotlib |version|.
4040

41-
4. JDH is making matplotlib |version| available to Licensee on an "AS
42-
IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
43-
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
41+
4. MDB is making matplotlib |version| available to Licensee on an "AS
42+
IS" basis. MDB MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
43+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDB MAKES NO AND
4444
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
4545
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB |version|
4646
WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
4747

48-
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
48+
5. MDB SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
4949
|version| FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
5050
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
5151
MATPLOTLIB |version|, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
@@ -55,8 +55,8 @@ THE POSSIBILITY THEREOF.
5555
breach of its terms and conditions.
5656

5757
7. Nothing in this License Agreement shall be deemed to create any
58-
relationship of agency, partnership, or joint venture between JDH and
59-
Licensee. This License Agreement does not grant permission to use JDH
58+
relationship of agency, partnership, or joint venture between MDB and
59+
Licensee. This License Agreement does not grant permission to use MDB
6060
trademarks or trade name in a trademark sense to endorse or promote
6161
products or services of Licensee, or any third party.
6262

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)