You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
1
(35) |
2
(29) |
3
(12) |
4
|
5
(8) |
6
(5) |
7
(3) |
8
(38) |
9
(15) |
10
(20) |
11
(14) |
12
(12) |
13
(17) |
14
(6) |
15
(41) |
16
(38) |
17
(31) |
18
(7) |
19
(14) |
20
(12) |
21
(3) |
22
(3) |
23
(15) |
24
(4) |
25
|
26
(3) |
27
(2) |
28
(7) |
29
(16) |
30
(17) |
31
(10) |
|
|
|
The legend class has been reimplemented recently and the name of some keyword arguments (and their meaning) has been changed. Those parameters you're using are deprecated ones. It is supposed to show you some warnings if deprecated parameters are used, so what you see is a bug. I'll take a look. I also noticed that the documentaion of the pylab.legend is outdated. Take a look at http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.legend These are lists of deprecated parameteres pad = None, # deprecated; use borderpad labelsep = None, # deprecated; use labelspacing handlelen = None, # deprecated; use handlelength handletextsep = None, # deprecated; use handletextpad axespad = None, # deprecated; use borderaxespad So, pylab.rc('legend', borderaxespad=0.0, borderpad=0.0, handlelength=0.0, labelspacing=0.0) should work. Thanks, -JJ On Fri, Dec 19, 2008 at 3:25 AM, Lebostein <Leb...@gm...> wrote: > > Hi, > > please open the legend_demo3: > http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/legend_demo3.py > > 1. add this line: > pylab.rc('legend', axespad=0.0, pad=0.0, handlelen=0.0, labelsep=0.0) > > 2. add this line: > pylab.rc('legend', axespad=10.0, pad=10.0, handlelen=10.0, labelsep=10.0) > > Why all these parameters have no effect? In this two cases I see the same > plot... > -- > View this message in context: http://www.nabble.com/legend%3A-axespad%2C-pad%2C-handlelen%2C-labelsep---without-effect-tp21087472p21087472.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Can you please provide a screenshot of what you are seeing? I don't run Mac OS-X myself, so have no experience with the Mac OS-X-specific backend... however, it appears to be drawing regular text with native APIs (ATSUI etc.) and mathtext using matplotlib's freetype backend and blitting an image. If done correctly, there is no reason why one should be significantly lower quality than the other, but it is an obvious source of *difference*, particularly if font size is being handled differently in each case. I would suggest to Michiel de Hoon (author of Mac OS-X backend), to implement a full interface to mathtext for his backend (as PDF does, for instance) and do all glyph rendering with ATSUI, or the opposite -- do all glyph rendering by blitting freetype-rendered glyphs -- but not both. I have some concerns about the use of ATSUI, which, while arguably the better text system, will give different results than the Agg backends and cause cross-platform differences between plots, which is something in general we like to avoid. Cheers, Mike Zane Selvans wrote: > First, *thank you* to whoever did the Mac OS X backend. It's much > faster and smoother, and seems to behave much more reasonably all > around. As in, show() actually does what it says it's supposed to do, > and the figures don't have to be re-sized to draw themselves! > > However, there seems to be some kind of strangeness with using > mathtext. When an axis label, tick label, title, or other text has > any mathtext embedded within it, the font that the entire text object > is rendered in changes, becoming larger, and often fuzzier (in an > anti-aliased kind of way). > > On the plus (though confusing) side, the ticklabels that are being > output by the basemap toolkit are now the same size as all my normal > ticklabels, even though they appear to contain a mathtext character > (the ^\circ for the degrees symbol), whereas previously, all the > basemap ticklabels were coming out larger than the rest of my > ticklabels, and I didn't seem to be able to alter them in the normal > text object manipulation ways. > > I'm running on: > Matplotlib SVN: v6677 > Mac OS 10.5.6 > macosx backend > python 2.5.1 > ipython 0.9.1 > > After I noticed this the first time, I quit out of the interpreter, > and deleted the font cache from my .matplotlib directory, restarted, > and the problem persisted. > > Any suggestions? I don't have any of the alternate tex rendering > options set in my rcfile, just using plain mathtext. > > -- > Zane Selvans > Amateur Earthling > za...@id... <mailto:za...@id...> > 303/815-6866 > http://zaneselvans.org > PGP Key: 55E0815F > > > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi, please open the legend_demo3: http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/legend_demo3.py 1. add this line: pylab.rc('legend', axespad=0.0, pad=0.0, handlelen=0.0, labelsep=0.0) 2. add this line: pylab.rc('legend', axespad=10.0, pad=10.0, handlelen=10.0, labelsep=10.0) Why all these parameters have no effect? -- View this message in context: http://www.nabble.com/legend%3A-axespad%2C-pad%2C-handlelen%2C-labelsep---without-effect-tp21087472p21087472.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Dear all, I'm using matplotlib together with ipython --pylab and have a plot open and can select/deselect points there with the picker and they toggle between o and x. When I do that my matplotlib running under Leopard 10.5.6 and MacOSX backend raises an exception: ------------------------------------ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/ backend_bases.pyc in button_press_event(self, x, y, button, guiEvent) 1147 s = 'button_press_event' 1148 mouseevent = MouseEvent(s, self, x, y, button, self._key, guiEvent=guiEvent) -> 1149 self.callbacks.process(s, mouseevent) 1150 1151 def button_release_event(self, x, y, button, guiEvent=None): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/cbook.pyc in process(self, s, *args, **kwargs) 153 self._check_signal(s) 154 for func in self.callbacks[s].values(): --> 155 func(*args, **kwargs) 156 157 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/ backend_bases.pyc in pick(self, mouseevent) 1052 def pick(self, mouseevent): 1053 if not self.widgetlock.locked(): -> 1054 self.figure.pick(mouseevent) 1055 1056 def blit(self, bbox=None): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/artist.pyc in pick(self, mouseevent) 271 # Pick children 272 for a in self.get_children(): --> 273 a.pick(mouseevent) 274 275 def set_picker(self, picker): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/axes.pyc in pick(self, *args) 2483 raise DeprecationWarning('New pick API implemented -- ' 2484 'see API_CHANGES in the src distribution') -> 2485 martist.Artist.pick(self,args[0]) 2486 2487 def __pick(self, x, y, trans=None, among=None): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/artist.pyc in pick(self, mouseevent) 271 # Pick children 272 for a in self.get_children(): --> 273 a.pick(mouseevent) 274 275 def set_picker(self, picker): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/artist.pyc in pick(self, mouseevent) 267 inside,prop = self.contains(mouseevent) 268 if inside: --> 269 self.figure.canvas.pick_event(mouseevent, self, **prop) 270 271 # Pick children /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/ backend_bases.pyc in pick_event(self, mouseevent, artist, **kwargs) 1113 s = 'pick_event' 1114 event = PickEvent(s, self, mouseevent, artist, **kwargs) -> 1115 self.callbacks.process(s, event) 1116 1117 def scroll_event(self, x, y, step, guiEvent=None): /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/cbook.pyc in process(self, s, *args, **kwargs) 153 self._check_signal(s) 154 for func in self.callbacks[s].values(): --> 155 func(*args, **kwargs) 156 157 /Users/wkerzend/scripts/python/pyphot/plot/statplot.pyc in __call__(self, event) 52 if self.selected.has_key(artist):self.togglemarker(dot_artist) 53 else: ---> 54 self.togglemarker(dot_artist) 55 56 def togglemarker(self,artist,on_mark='o',off_mark='x'): /Users/wkerzend/scripts/python/pyphot/plot/statplot.pyc in togglemarker(self, artist, on_mark, off_mark) 68 if type(self.selected)==list:self.selected[sel_index]=True 69 elif type(self.selected)==dict:self.selected[artist]=True ---> 70 self.axis.draw() 71 72 class keyhandler: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/axes.pyc in draw(self, renderer, inframe) 1535 # will draw the edges 1536 if self.axison and self._frameon: -> 1537 self.patch.draw(renderer) 1538 1539 artists = [] /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/ patches.pyc in draw(self, renderer) 267 if not self.get_visible(): return 268 #renderer.open_group('patch') --> 269 gc = renderer.new_gc() 270 271 if cbook.is_string_like(self._edgecolor) and self._edgecolor.lower()=='none': /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib-0.98.4-py2.5-macosx-10.3.egg/matplotlib/backends/ backend_macosx.pyc in new_gc(self) 66 67 def new_gc(self): ---> 68 self.gc.reset() 69 return self.gc 70 RuntimeError: CGContextRef is NULL ------------------------------------------------- I'm also using start_event_loop and stop event_loop to make the application blocking when starting and unblocking when finished. The application works its just annoying seeing this traceback everytime I select or deselect a point. Another thing that sort of worked under linux was that when I clicked, it would change immediatley and not wait until I do a refit. Any ideas on what to do there? Thanks Wolfgang
ramirodsl wrote: > Can someone explain to me how/why the figure normalized [0,1] coordinates > depends on the figsize property? At least this is what it looks like to me. > This affects axes placement and so far I haven't been able to do what I > want. > > I want to have square plots placed without spacing between them and with a > little margin on the left and top. So I tried: > > s=0.4 > axes([0.01, 0.99-s, s, s],aspect='equal') > axes([0.01+s, 0.99-s, s, s],aspect='equal') > axes([0.01, 0.99-2*s, s, s],aspect='equal') > axes([0.01+s, 0.99-2*s, s, s],aspect='equal') > > The vertical positioning works as I expected but the x positioning does not > work. The axes have spacing between them - which means that 0.1 represents a > different size in x or in y - and I just can't understand that behavior. The problem is that you are giving conflicting instructions. Your axes command is initially saying to make the boxes with the given proportions of the figure, regardless of the dimensions or aspect ratio of that figure; but setting the aspect is overriding that by requiring the boxes to be square. You can still get the behavior you want, however, by adding an anchor kwarg to each axes call. To make sure the boxes cluster together, add anchor='SE' to the upper left axes, anchor='SW' to the upper right, and 'NE' and 'NW' to the lower left and right, respectively. Eric > > Now if I add: > figure(figsize=(5,5)) > it works > > But this is not the solution I need because the real plot I'm trying to do > is a 6x5 (6 axes per 5 axes, subplots if you mean) plot with horizontal > spacing only between the 3rd and 4th axes. There is no way I could now the > correct aspect ratio that I should set figsize to, to get it right. > > How could I manage this? > > Thank you > > Ramiro
Can someone explain to me how/why the figure normalized [0,1] coordinates depends on the figsize property? At least this is what it looks like to me. This affects axes placement and so far I haven't been able to do what I want. I want to have square plots placed without spacing between them and with a little margin on the left and top. So I tried: s=0.4 axes([0.01, 0.99-s, s, s],aspect='equal') axes([0.01+s, 0.99-s, s, s],aspect='equal') axes([0.01, 0.99-2*s, s, s],aspect='equal') axes([0.01+s, 0.99-2*s, s, s],aspect='equal') The vertical positioning works as I expected but the x positioning does not work. The axes have spacing between them - which means that 0.1 represents a different size in x or in y - and I just can't understand that behavior. Now if I add: figure(figsize=(5,5)) it works But this is not the solution I need because the real plot I'm trying to do is a 6x5 (6 axes per 5 axes, subplots if you mean) plot with horizontal spacing only between the 3rd and 4th axes. There is no way I could now the correct aspect ratio that I should set figsize to, to get it right. How could I manage this? Thank you Ramiro -- View this message in context: http://www.nabble.com/axes-placement-depends-on-figsize--tp21082730p21082730.html Sent from the matplotlib - users mailing list archive at Nabble.com.
First, *thank you* to whoever did the Mac OS X backend. It's much faster and smoother, and seems to behave much more reasonably all around. As in, show() actually does what it says it's supposed to do, and the figures don't have to be re-sized to draw themselves! However, there seems to be some kind of strangeness with using mathtext. When an axis label, tick label, title, or other text has any mathtext embedded within it, the font that the entire text object is rendered in changes, becoming larger, and often fuzzier (in an anti- aliased kind of way). On the plus (though confusing) side, the ticklabels that are being output by the basemap toolkit are now the same size as all my normal ticklabels, even though they appear to contain a mathtext character (the ^\circ for the degrees symbol), whereas previously, all the basemap ticklabels were coming out larger than the rest of my ticklabels, and I didn't seem to be able to alter them in the normal text object manipulation ways. I'm running on: Matplotlib SVN: v6677 Mac OS 10.5.6 macosx backend python 2.5.1 ipython 0.9.1 After I noticed this the first time, I quit out of the interpreter, and deleted the font cache from my .matplotlib directory, restarted, and the problem persisted. Any suggestions? I don't have any of the alternate tex rendering options set in my rcfile, just using plain mathtext. -- Zane Selvans Amateur Earthling za...@id... 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F
Sorry about that. This bug has now been fixed in SVN r6661. It will make it into the next maintenance release. Mike Andres Luhamaa wrote: > Hello, > > I see a significant difference in plots generated with two recent > versions of matplotlib, and unfortunately not in favour of the newer > one, otherwise there would be no reason to write here, I guess. > > The problem is following, I plot some data wich might be undefined in > some cases. For example, I plot two lines and one of them has values > 'None' only. Using the 0.98.3 version there is no problem, the graph > with 'None'-s is just not shown, but with 0.98.5 the y-scale is > something close to zero only, if the first line is 'None'-s and I do not > see the plot for other line as well. > > I add simple code, which works fine with 0.98.3 and not with 0.98.5. It > is definitely not difficult to make a workaround, but for some reason I > like the behaviour of previous version better and if there is no need to > change it, maybe we could turn it back into situation, where one line of > missing data would not destroy the whole graph. > > Best regards, > Andres Luhamaa > > Univ. of Tartu, Estonia > > import > sys > #sys.path.insert(1,'/home/andres/SKRIPTID/lib/python') > > import numpy as > np > import > matplotlib > matplotlib.use( 'Agg' > ) > import > pylab > strm=np.array([[None,10,None,5,1], > > > [None,7.,None,5.,2.], > > [None,8.,None,5.,3.], > > [None,6.,None,5.,4.], > > [None,7.,None,5.,5.], > > [None,8.,None,5.,6.], > > [None,8.,None,5.,7.], > > [None,7.,None,5.,8.], > > [None,7.,None,5.,9.], > > [None,8.,None,5.,10.], > > [None,11.,None,5.,11.], > > [None,11.,None,5.,12.], > > [None,10.,None,5.,13.], > > [None,8.,None,5.,14.], > > [None,7.,None,5.,15.]],dtype=float) > fig=pylab.Figure() > > pylab.plot(strm[:,0],'r-',strm[:,1],'b-') > > pylab.savefig('test.png') > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hello, I see a significant difference in plots generated with two recent versions of matplotlib, and unfortunately not in favour of the newer one, otherwise there would be no reason to write here, I guess. The problem is following, I plot some data wich might be undefined in some cases. For example, I plot two lines and one of them has values 'None' only. Using the 0.98.3 version there is no problem, the graph with 'None'-s is just not shown, but with 0.98.5 the y-scale is something close to zero only, if the first line is 'None'-s and I do not see the plot for other line as well. I add simple code, which works fine with 0.98.3 and not with 0.98.5. It is definitely not difficult to make a workaround, but for some reason I like the behaviour of previous version better and if there is no need to change it, maybe we could turn it back into situation, where one line of missing data would not destroy the whole graph. Best regards, Andres Luhamaa Univ. of Tartu, Estonia import sys #sys.path.insert(1,'/home/andres/SKRIPTID/lib/python') import numpy as np import matplotlib matplotlib.use( 'Agg' ) import pylab strm=np.array([[None,10,None,5,1], [None,7.,None,5.,2.], [None,8.,None,5.,3.], [None,6.,None,5.,4.], [None,7.,None,5.,5.], [None,8.,None,5.,6.], [None,8.,None,5.,7.], [None,7.,None,5.,8.], [None,7.,None,5.,9.], [None,8.,None,5.,10.], [None,11.,None,5.,11.], [None,11.,None,5.,12.], [None,10.,None,5.,13.], [None,8.,None,5.,14.], [None,7.,None,5.,15.]],dtype=float) fig=pylab.Figure() pylab.plot(strm[:,0],'r-',strm[:,1],'b-') pylab.savefig('test.png')
Kaushik Ghose wrote: > Hi John, > > This is odd. After successfully installing the egg (last post) and then removing > it by doing > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > I now get > sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / > installer: Package name is matplotlib 0.98.5.1-r0 > installer: Upgrading at base path / > installer: The upgrade was successful. > > So there are some files I haven't gotten rid of, what should I be looking to remove? What's the problem here? this looks successful to me. If you're referring to the "Upgrading" -- I think that's because the Mac pkg installer keep some kind of record that is separate from the python tree. At home without my Mac, so can't test myself now -- sorry. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Hi John, This is odd. After successfully installing the egg (last post) and then removing it by doing sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* I now get sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / installer: Package name is matplotlib 0.98.5.1-r0 installer: Upgrading at base path / installer: The upgrade was successful. So there are some files I haven't gotten rid of, what should I be looking to remove? Thanks! -Kaushik John Hunter wrote: > On Wed, Dec 17, 2008 at 4:43 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi John, >> >> The install goes fine, but I come up blank on the import. >> >> Thanks >> -Kaushik >> >> sudo rm -rf >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* >> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / >> installer: Package name is matplotlib 0.98.5.1-r0 >> installer: Installing at base path / >> installer: The install was successful. >> >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> In [1]: import pylab > > Please run the following commands after cleaning the previous installs > and reinstalling the mpkg file:: > > > ls > python -c 'import matplotlib; print matplotlib.__file__' > python -c 'import matplotlib; print matplotlib.__version__' > python -c 'import pylab' > > The ls is important because sometimes a person has a directory named > 'matplotlib' in their local path, and this is getting picked rather > than the installed matplotlib which contains the pylab module. > > JDH
Yess! The renaming works. Would simply changing the name of the file on sourceforge solve this problem? That would be so odd! Thanks -Kaushik $mv matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg matplotlib-0.98.5-py2.5.egg $ sudo easy_install matplotlib-0.98.5-py2.5.egg Password: Processing matplotlib-0.98.5-py2.5.egg creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5.egg Extracting matplotlib-0.98.5-py2.5.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Removing matplotlib 0.98.5.1-r0 from easy-install.pth file Adding matplotlib 0.98.5 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5.egg Processing dependencies for matplotlib==0.98.5 Finished processing dependencies for matplotlib==0.98.5 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ and pylab imports and runs fine... John Hunter wrote: > On Wed, Dec 17, 2008 at 4:50 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi John, >> >> I tried the .egg package but no joy. >> >> Thanks >> -Kaushik >> >> sudo rm -rf >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* >> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> sudo easy_install matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg >> Processing matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg >> creating >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg >> Extracting matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg to >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages >> Adding matplotlib 0.98.5.1-r0 to easy-install.pth file >> >> Installed >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg >> Processing dependencies for matplotlib==0.98.5.1-r0 >> Searching for matplotlib==0.98.5.1-r0 >> Reading http://pypi.python.org/simple/matplotlib/ >> Reading http://matplotlib.sourceforge.net >> Reading http://sourceforge.net/project/showfiles.php?group_id=80706 >> Reading >> https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 >> Reading >> https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 >> No local packages or download links found for matplotlib==0.98.5.1-r0 >> error: Could not find suitable distribution for >> Requirement.parse('matplotlib==0.98.5.1-r0') > > > Eggs are an abomination -- the person who named the installer > "easy_install" should have their license revoked. I think we may > distributing them because they are simply broken in too many ways. > This recurring problem -- where the easy_install goes looking on pypi > for an egg even though you are pointing at one locally on the file > system, is simply ridiculous. > > Chris Barker suggests renaming the egg to matplotlib-0.98.5-py2.5.egg. > Try that, and please let me know. Thanks for the testing. > > JDH
I downloaded keypress_demo.py from the matplotlib website runs as follows ./keypress_demo.py (then typed letter 'c') Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__ return self.func(*args) File "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 312, in key_press FigureCanvasBase.key_press_event(self, key, guiEvent=event) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1122, in key_press_event self.callbacks.process(s, event) File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, in process func(*args, **kwargs) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1626, in key_press self.canvas.toolbar.back() AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' now you are making me think something is wrong with my build, but this is an out of the box laptop, 10.5, numpy 1.2.1, zlib-1.2.3, freetype-2.3.7, libpng-1.2.33, then build matplotlib-0.98.5 J note: i backed down to 0.98.3, it works fine John Hunter wrote: > On Wed, Dec 17, 2008 at 1:24 PM, James Schombert <jsc...@uo...> wrote: >> Using matplotlib 0.98.5 on OSX 10.5, the following error >> occurs for many key_press events using the standard >> connect class - letter such as c,v,s etc (and most important, backspace) >> >> Exception in Tkinter callback >> Traceback (most recent call last): >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", >> line 1403, in __call__ >> return self.func(*args) >> File >> "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line >> 312, in key_press >> FigureCanvasBase.key_press_event(self, key, guiEvent=event) >> File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", >> line 1122, in key_press_event >> self.callbacks.process(s, event) >> File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, >> in process >> func(*args, **kwargs) >> File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", >> line 1626, in key_press >> self.canvas.toolbar.back() >> AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' >> >> would a full list of the "bad" keys help > > I am not seeing this on the 0.98.5 release candidate. I fire up > > > python simple_plot.py -dTkAgg > > and click 'c' somewhere on the figure/axes, or 'delete' and I am not > getting the traceback. > > JDH
On Wed, Dec 17, 2008 at 4:50 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi John, > > I tried the .egg package but no joy. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > sudo easy_install matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Processing matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > creating > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Extracting matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg to > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > Adding matplotlib 0.98.5.1-r0 to easy-install.pth file > > Installed > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Processing dependencies for matplotlib==0.98.5.1-r0 > Searching for matplotlib==0.98.5.1-r0 > Reading http://pypi.python.org/simple/matplotlib/ > Reading http://matplotlib.sourceforge.net > Reading http://sourceforge.net/project/showfiles.php?group_id=80706 > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > No local packages or download links found for matplotlib==0.98.5.1-r0 > error: Could not find suitable distribution for > Requirement.parse('matplotlib==0.98.5.1-r0') Eggs are an abomination -- the person who named the installer "easy_install" should have their license revoked. I think we may distributing them because they are simply broken in too many ways. This recurring problem -- where the easy_install goes looking on pypi for an egg even though you are pointing at one locally on the file system, is simply ridiculous. Chris Barker suggests renaming the egg to matplotlib-0.98.5-py2.5.egg. Try that, and please let me know. Thanks for the testing. JDH
On Wed, Dec 17, 2008 at 4:43 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi John, > > The install goes fine, but I come up blank on the import. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / > installer: Package name is matplotlib 0.98.5.1-r0 > installer: Installing at base path / > installer: The install was successful. > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > In [1]: import pylab Please run the following commands after cleaning the previous installs and reinstalling the mpkg file:: ls python -c 'import matplotlib; print matplotlib.__file__' python -c 'import matplotlib; print matplotlib.__version__' python -c 'import pylab' The ls is important because sometimes a person has a directory named 'matplotlib' in their local path, and this is getting picked rather than the installed matplotlib which contains the pylab module. JDH
Hi John, I tried the .egg package but no joy. Thanks -Kaushik sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sudo easy_install matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Extracting matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Adding matplotlib 0.98.5.1-r0 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Processing dependencies for matplotlib==0.98.5.1-r0 Searching for matplotlib==0.98.5.1-r0 Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading http://sourceforge.net/project/showfiles.php?group_id=80706 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 No local packages or download links found for matplotlib==0.98.5.1-r0 error: Could not find suitable distribution for Requirement.parse('matplotlib==0.98.5.1-r0') John Hunter wrote: > On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > I posted binaries to fix this problem and have requested testers, so > please try the binaries at > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 > > You might want to be sure to delete the old dir to get a clean install > >> sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > before installing the new. Let me know how it goes. > > JDH
Hi John, The install goes fine, but I come up blank on the import. Thanks -Kaushik sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / installer: Package name is matplotlib 0.98.5.1-r0 installer: Installing at base path / installer: The install was successful. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/Source/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ ImportError: No module named pylab ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ John Hunter wrote: > On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > I posted binaries to fix this problem and have requested testers, so > please try the binaries at > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 > > You might want to be sure to delete the old dir to get a clean install > >> sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > before installing the new. Let me know how it goes. > > JDH
Heh, Sorry. Thanks for the link though and Happy Holidays! -Kaushik John Hunter wrote: > On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > Did you miss my repeated posts on this subject, asking for people to > test the new binaries that (hopefully) have fixed this problem? > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: Did you miss my repeated posts on this subject, asking for people to test the new binaries that (hopefully) have fixed this problem? https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: I posted binaries to fix this problem and have requested testers, so please try the binaries at https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 You might want to be sure to delete the old dir to get a clean install > sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* before installing the new. Let me know how it goes. JDH
Hi Everyone, I am running into a problem when trying to install 0.98.5 egg on a Mac OS X machine. Any help much appreciated. Relevant error messages follow: Thanks -Kaushik sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg********************************************************************** ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.5 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: no [Edit setup.cfg to suppress the above messages] ============================================================================ error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf61120>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48968>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48c38>> ignored From within ipython:*************************************************************************************************** In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/pylab.py in <module>() 204 from numpy import ma 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/mpl.py in <module>() 2 from matplotlib import axis ----> 3 from matplotlib import axes 4 from matplotlib import cbook 5 from matplotlib import collections 6 from matplotlib import colors /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/axes.py in <module>() 16 import matplotlib.dates as mdates 17 import matplotlib.font_manager as font_manager ---> 18 import matplotlib.image as mimage 19 import matplotlib.legend as mlegend 20 import matplotlib.lines as mlines /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/image.py in <module>() 17 # For clarity, names from _image are given explicitly in this module: 18 from matplotlib import _image ---> 19 from matplotlib import _png 20 21 # For user convenience, the names from _image are also imported into ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so Reason: image not found In [2]:
Hi Everyone, I am running into a problem when trying to install 0.98.5 egg on a Mac OS X machine. Any help much appreciated. Relevant error messages follow: Thanks -Kaushik sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg********************************************************************** ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.5 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: no [Edit setup.cfg to suppress the above messages] ============================================================================ error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf61120>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48968>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48c38>> ignored From within ipython:*************************************************************************************************** In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/pylab.py in <module>() 204 from numpy import ma 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/mpl.py in <module>() 2 from matplotlib import axis ----> 3 from matplotlib import axes 4 from matplotlib import cbook 5 from matplotlib import collections 6 from matplotlib import colors /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/axes.py in <module>() 16 import matplotlib.dates as mdates 17 import matplotlib.font_manager as font_manager ---> 18 import matplotlib.image as mimage 19 import matplotlib.legend as mlegend 20 import matplotlib.lines as mlines /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/image.py in <module>() 17 # For clarity, names from _image are given explicitly in this module: 18 from matplotlib import _image ---> 19 from matplotlib import _png 20 21 # For user convenience, the names from _image are also imported into ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so Reason: image not found In [2]:
On Wed, Dec 17, 2008 at 12:22 PM, Matthias Michler <Mat...@gm...> wrote: > Hello John and others, > > my favorite solution is: >> * axes param: specific for a given axes in figure; interface would >> be something like >> >> ax.auto_toolbar_keys(False) This is on my list of things to do.... JDH
On Wed, Dec 17, 2008 at 1:24 PM, James Schombert <jsc...@uo...> wrote: > Using matplotlib 0.98.5 on OSX 10.5, the following error > occurs for many key_press events using the standard > connect class - letter such as c,v,s etc (and most important, backspace) > > Exception in Tkinter callback > Traceback (most recent call last): > File > "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", > line 1403, in __call__ > return self.func(*args) > File > "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line > 312, in key_press > FigureCanvasBase.key_press_event(self, key, guiEvent=event) > File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", > line 1122, in key_press_event > self.callbacks.process(s, event) > File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, > in process > func(*args, **kwargs) > File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", > line 1626, in key_press > self.canvas.toolbar.back() > AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' > > would a full list of the "bad" keys help I am not seeing this on the 0.98.5 release candidate. I fire up > python simple_plot.py -dTkAgg and click 'c' somewhere on the figure/axes, or 'delete' and I am not getting the traceback. JDH
Using matplotlib 0.98.5 on OSX 10.5, the following error occurs for many key_press events using the standard connect class - letter such as c,v,s etc (and most important, backspace) Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__ return self.func(*args) File "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line 312, in key_press FigureCanvasBase.key_press_event(self, key, guiEvent=event) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1122, in key_press_event self.callbacks.process(s, event) File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, in process func(*args, **kwargs) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1626, in key_press self.canvas.toolbar.back() AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' would a full list of the "bad" keys help? J