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

Skip to content

Commit cab66b6

Browse files
committed
tried to fix called flag bug
svn path=/trunk/matplotlib/; revision=1543
1 parent 034070b commit cab66b6

4 files changed

Lines changed: 19 additions & 13 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.83a
1+
LICENSE AGREEMENT FOR MATPLOTLIB 0.83
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.83a
12+
derivative works, distribute, and otherwise use matplotlib 0.83
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.83a alone or in any derivative version prepared by
16+
matplotlib 0.83 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.83a or any part thereof, and wants to
20+
incorporates matplotlib 0.83 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.83a.
23+
the changes made to matplotlib 0.83.
2424

25-
4. JDH is making matplotlib 0.83a available to Licensee on an "AS
25+
4. JDH is making matplotlib 0.83 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.83a
29+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.83
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.83a FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
33+
0.83 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
3434
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
35-
MATPLOTLIB 0.83a, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
35+
MATPLOTLIB 0.83, 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.83a,
47+
8. By copying, installing or otherwise using matplotlib 0.83,
4848
Licensee agrees to be bound by the terms and conditions of this License
4949
Agreement.

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.83a'
145+
__version__ = '0.83'
146146
__revision__ = '$Revision$'
147147
__date__ = '$Date$'
148148

lib/matplotlib/backends/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
def pylab_setup():
1919
'return new_figure_manager, draw_if_interactive and show for pylab'
2020
# Import the requested backend into a generic module object
21+
if pylabcache is not None: return pylabcache
2122
backend_name = 'backend_'+backend.lower()
2223
backend_mod = __import__('matplotlib.backends.'+backend_name,
2324
globals(),locals(),[backend_name])
@@ -46,10 +47,14 @@ def show(): pass
4647
__all__.append('Toolbar')
4748

4849
matplotlib.verbose.report('backend %s version %s' % (backend,backend_version))
49-
return new_figure_manager, draw_if_interactive, show
5050

51+
return new_figure_manager, draw_if_interactive, show
5152

5253
# a hack to keep old versions of ipython working with mpl after bug
5354
# fix #1209354
55+
#print sys.modules
56+
pylabcache = None
5457
if 'IPython.Shell' in sys.modules:
55-
new_figure_manager, draw_if_interactive, show = pylab_setup()
58+
pylabcache = pylab_setup()
59+
new_figure_manager, draw_if_interactive, show = pylabcache
60+

lib/matplotlib/pylab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212

213213

214214
new_figure_manager, draw_if_interactive, show = pylab_setup()
215+
print 'pylab', dir(draw_if_interactive)
215216

216217
from image import imread as _imread
217218
from lines import Line2D

0 commit comments

Comments
 (0)