Skip to content

Commit 7fc9539

Browse files
committed
fixed Jochen and Andrews bugs
svn path=/trunk/matplotlib/; revision=587
1 parent 446a7c8 commit 7fc9539

File tree

8 files changed

+20
-91
lines changed

8 files changed

+20
-91
lines changed

GOALS

-38
This file was deleted.

INSTALL

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ COMPILING
5757
location, you will need to set the MATPLOTLIBDATA environment
5858
variable to point to the install base dir.
5959

60+
Once you have everything above set to your liking, just do the usual
61+
thing
62+
63+
python setup.py build
64+
python setup.py install
6065

6166
WINDOWS
6267

LICENSE/LICENSE_TTFQUERY

-37
This file was deleted.

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ INTRODUCTION:
2222
properties, axes properties, etc, via an object oriented interface
2323
or via a handle graphics interface familiar to matlab users. A
2424
summary of the goals of matplotlib and the progress so far can be
25-
found here.
25+
found at http://matplotlib.sf.net/goals.html.
2626

2727
REQUIREMENTS:
2828

TODO

+3-1
Original file line numberDiff line numberDiff line change
@@ -589,4 +589,6 @@ ZeroDivisionError: SeparableTransformation::eval_scalars yin interval is zero; c
589589

590590
-- why is tkagg loading init 2x
591591

592-
-- add ishold and spy
592+
-- add ishold and spy
593+
594+
-- Humufr's shared ticker bug

lib/matplotlib/axes.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def cla(self):
398398
self.tables = []
399399
self.artists = []
400400
self.images = []
401-
self.legend = None
401+
self.legend_ = None
402402
self.collections = [] # collection.Collection instances
403403

404404
self.images = []
@@ -832,8 +832,8 @@ def draw(self, renderer, *args, **kwargs):
832832
a.draw(renderer)
833833

834834

835-
if self.legend is not None:
836-
self.legend.draw(renderer)
835+
if self.legend_ is not None:
836+
self.legend_.draw(renderer)
837837

838838
for table in self.tables:
839839
table.draw(renderer)
@@ -965,8 +965,8 @@ def get_child_artists(self):
965965
artists.extend(self.lines)
966966
artists.extend(self.patches)
967967
artists.extend(self.texts)
968-
if self.legend is not None:
969-
artists.append(self.legend)
968+
if self.legend_ is not None:
969+
artists.append(self.legend_)
970970
return artists
971971

972972
def get_frame(self):
@@ -975,7 +975,7 @@ def get_frame(self):
975975

976976
def get_legend(self):
977977
'Return the Legend instance, or None if no legend is defined'
978-
return self.legend
978+
return self.legend_
979979

980980

981981
def get_lines(self):
@@ -1292,8 +1292,8 @@ def legend(self, *args, **kwargs):
12921292
raise RuntimeError('Invalid arguments to legend')
12931293

12941294
lines = flatten(lines)
1295-
self.legend = Legend(self, lines, labels, loc)
1296-
return self.legend
1295+
self.legend_ = Legend(self, lines, labels, loc)
1296+
return self.legend_
12971297

12981298
def loglog(self, *args, **kwargs):
12991299
"""

lib/matplotlib/backends/backend_gtk.py

-3
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,9 @@ def show(mainloop=True):
586586
for manager in Gcf.get_all_fig_managers():
587587
manager.window.show()
588588

589-
#if show._needmain and mainloop:
590589
if gtk.main_level() == 0 and mainloop:
591590
if gtk.pygtk_version >= (2,4,0): gtk.main()
592591
else: gtk.mainloop()
593-
#show._needmain = False
594-
#show._needmain = True
595592

596593
def _quit_after_print_xvfb(*args):
597594

lib/matplotlib/font_manager.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# common application, not really useful
6565
"/usr/lib/openoffice/share/fonts/truetype/",
6666
# documented as a good place to install new fonts...
67-
"/usr/share/fonts",
67+
"/usr/share/fonts/",
6868
# okay, now the OS X variants...
6969
"~/Library/Fonts/",
7070
"/Library/Fonts/",
@@ -132,12 +132,12 @@ def x11FontDirectory():
132132
else:
133133
fontpaths = []
134134
#def add(arg, directory, files):
135-
def add(directory):
135+
def add(arg,directory,files):
136136
fontpaths.append(directory)
137137
for fontdir in X11FontDirectories:
138138
try:
139139
if os.path.isdir(fontdir):
140-
os.path.walk(fontdir, add, ())
140+
os.path.walk(fontdir, add, None)
141141
except (IOError, OSError, TypeError, ValueError):
142142
pass
143143
return fontpaths

0 commit comments

Comments
 (0)