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

Skip to content

Commit bdfb694

Browse files
committed
added marias legend patch
svn path=/trunk/matplotlib/; revision=1552
1 parent 44a60ea commit bdfb694

6 files changed

Lines changed: 27 additions & 20 deletions

File tree

LICENSE/LICENSE

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LICENSE AGREEMENT FOR MATPLOTLIB 0.83
1+
LICENSE AGREEMENT FOR MATPLOTLIB 0.83.1
22
--------------------------------------
33

44
1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the
@@ -9,30 +9,30 @@ documentation.
99
2. Subject to the terms and conditions of this License Agreement, JDH
1010
hereby grants Licensee a nonexclusive, royalty-free, world-wide license
1111
to reproduce, analyze, test, perform and/or display publicly, prepare
12-
derivative works, distribute, and otherwise use matplotlib 0.83
12+
derivative works, distribute, and otherwise use matplotlib 0.83.1
1313
alone or in any derivative version, provided, however, that JDH's
1414
License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
1515
2002-2005 John D. Hunter; All Rights Reserved" are retained in
16-
matplotlib 0.83 alone or in any derivative version prepared by
16+
matplotlib 0.83.1 alone or in any derivative version prepared by
1717
Licensee.
1818

1919
3. In the event Licensee prepares a derivative work that is based on or
20-
incorporates matplotlib 0.83 or any part thereof, and wants to
20+
incorporates matplotlib 0.83.1 or any part thereof, and wants to
2121
make the derivative work available to others as provided herein, then
2222
Licensee hereby agrees to include in any such work a brief summary of
23-
the changes made to matplotlib 0.83.
23+
the changes made to matplotlib 0.83.1.
2424

25-
4. JDH is making matplotlib 0.83 available to Licensee on an "AS
25+
4. JDH is making matplotlib 0.83.1 available to Licensee on an "AS
2626
IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
2727
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
2828
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
29-
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.83
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.83.1
3030
WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
3131

3232
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
33-
0.83 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
33+
0.83.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
3434
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35-
MATPLOTLIB 0.83, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
35+
MATPLOTLIB 0.83.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
3636
THE POSSIBILITY THEREOF.
3737

3838
6. This License Agreement will automatically terminate upon a material
@@ -44,6 +44,6 @@ Licensee. This License Agreement does not grant permission to use JDH
4444
trademarks or trade name in a trademark sense to endorse or promote
4545
products or services of Licensee, or any third party.
4646

47-
8. By copying, installing or otherwise using matplotlib 0.83,
47+
8. By copying, installing or otherwise using matplotlib 0.83.1,
4848
Licensee agrees to be bound by the terms and conditions of this License
4949
Agreement.

examples/date_demo_rrule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
See https://moin.conectiva.com.br/DateUtil for help with rrules
77
"""
88
from pylab import *
9-
from matplotlib.dates import YEARLY, DateFormatter, \
10-
rrulewrapper, RRuleLocator, drange
9+
from matplotlib.dates import YEARLY, DateFormatter, rrulewrapper, RRuleLocator, drange
1110
import datetime
1211

1312
# tick every 5th easter

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"""
143143
from __future__ import generators
144144

145-
__version__ = '0.83'
145+
__version__ = '0.83.1'
146146
__revision__ = '$Revision$'
147147
__date__ = '$Date$'
148148

lib/matplotlib/axes.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,9 +1693,10 @@ def grid(self, b=None):
16931693
self.xaxis.grid(b)
16941694
self.yaxis.grid(b)
16951695

1696-
def hist(self, x, bins=10, normed=0, bottom=0, **kwargs):
1696+
def hist(self, x, bins=10, normed=0, bottom=0,
1697+
orientation='vertical', **kwargs):
16971698
"""
1698-
HIST(x, bins=10, normed=0, bottom=0)
1699+
HIST(x, bins=10, normed=0, bottom=0, orientiation='vertical', **kwargs)
16991700
17001701
Compute the histogram of x. bins is either an integer number of
17011702
bins or a sequence giving the bins. x are the data to be binned.
@@ -1706,12 +1707,20 @@ def hist(self, x, bins=10, normed=0, bottom=0, **kwargs):
17061707
counts normalized to form a probability distribtion, ie,
17071708
n/(len(x)*dbin)
17081709
1709-
kwargs are used to update the properties of the hist bars
1710+
1711+
orientation = 'horizontal' | 'vertical'. If horizontal, barh
1712+
will be used and the "bottom" kwarg will be the left.
1713+
1714+
kwargs are used to update the properties of the
1715+
hist bars
17101716
"""
17111717
if not self._hold: self.cla()
17121718
n,bins = matplotlib.mlab.hist(x, bins, normed)
17131719
width = 0.9*(bins[1]-bins[0])
1714-
patches = self.bar(bins, n, width=width, bottom=bottom)
1720+
if orientation=='horizontal':
1721+
patches = self.barh(n, bins, height=width, left=bottom)
1722+
else:
1723+
patches = self.bar(bins, n, width=width, bottom=bottom)
17151724
for p in patches:
17161725
p.update(kwargs)
17171726
return n, bins, silent_list('Patch', patches)
@@ -2564,7 +2573,7 @@ def plot(self, *args, **kwargs):
25642573

25652574
def plot_date(self, d, y, fmt='bo', tz=None, **kwargs):
25662575
"""
2567-
PLOT_DATE(d, y, converter, fmt='bo', tz=None, **kwargs)
2576+
PLOT_DATE(d, y, fmt='bo', tz=None, **kwargs)
25682577
25692578
d is a sequence of dates represented as float days since
25702579
0001-01-01 UTC and y are the y values at those dates. fmt is

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def line_cuts_bbox(line, bbox):
5151
return False
5252

5353
if n == 1:
54-
return bbox.contains(line[0])
54+
return bbox.contains(line[0][0], line[0][1])
5555

5656
p1 = line[0]
5757
for p2 in line[1:]:

lib/matplotlib/numerix/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def _import_fail_message(module, version):
8787
%(which)s and then re-install matplotlib. Otherwise, the following
8888
traceback gives more details:\n""" % _dict
8989

90-
9190
g = globals()
9291
l = locals()
9392
__import__('ma', g, l)

0 commit comments

Comments
 (0)