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
(16) |
2
(22) |
3
(28) |
4
(17) |
5
(17) |
6
(7) |
7
|
8
(15) |
9
(28) |
10
(26) |
11
(28) |
12
(19) |
13
(5) |
14
(3) |
15
(21) |
16
(28) |
17
(11) |
18
(18) |
19
(6) |
20
(5) |
21
(18) |
22
(11) |
23
(22) |
24
(28) |
25
(17) |
26
(17) |
27
(7) |
28
(16) |
29
(24) |
30
(25) |
31
(14) |
|
|
|
I need a figure containing color line plots to be changed to grayscale, cycling through line styles instead of colors. How? Thanks, Alan Isaac PSI suppose I searched the web ineffectively on this, but I did try.
I've become stuck on what seems to be an easy problem. Can part of a patch or collection be masked or otherwise hidden? I assumed that my_polygon.set_clip_path( patch ) where patch is a patches.Polygon would do the trick. Thanks, -Erik -- View this message in context: http://old.nabble.com/Remove%2C-mask%2C-or-hide-parts-of-a-polygon--tp27842142p27842142.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Tue, Mar 9, 2010 at 1:49 PM, Pribadi, Krishna <Kri...@ha...> wrote: > > I know it's badly out of date... > > I'd like to embed it but I'm not quite sure where to begin... > > Do you think a simple solution like calling it from the system command line will open the plot in a new instance, so that the metadata GUI wont be hung up by the show()? I'd have to pass the selected metadata to a temporary file on disk. It's a bit of a dirty method... Thoughts? I suggest following the embedding_is_wx*.py examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html No use of pyplot or show in any of them. JDH
Thanks for the report. I am able to reproduce it and am investigating further. As a workaround, you can set the rcParam 'ps.fonttype' to 42 (at the expense of some file size). Mike Olle Engdegård wrote: > Hi, > > This > > import pylab as pl > pl.plot([3,6,3,7,3]) > pl.xlabel("Xlabel") > pl.savefig("test.eps") > > gives me an unpleasant outfile with the backends GTK, GTKAgg, WXAgg, WX, > Agg, GDK and PS. It works fine only with Cairo and GTKCairo. I'm on trunk > and Ubuntu 8.04. All backends do fine for png. > > It's actually pl.xlabel that kills the eps, if it's replaced by pl.title() > everything works again. > > Not sure when this problem appeared, but probably not so long ago. > > Cheers, > Olle > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > 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
I know it's badly out of date... I'd like to embed it but I'm not quite sure where to begin... Do you think a simple solution like calling it from the system command line will open the plot in a new instance, so that the metadata GUI wont be hung up by the show()? I'd have to pass the selected metadata to a temporary file on disk. It's a bit of a dirty method... Thoughts? -----Original Message----- From: John Hunter [mailto:jd...@gm...] Sent: Tuesday, March 09, 2010 1:40 PM To: Chris Barker Cc: mat...@li... Subject: Re: [Matplotlib-users] embedding a plot function in existing wxapp GUI, problem replotting On Tue, Mar 9, 2010 at 1:23 PM, Chris Barker <Chr...@no...> wrote: > Pribadi, Krishna wrote: >> Based on what I've been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for the most part: > > http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx This page is badly out of date (half the links are broken) JDH ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation.
On Tue, Mar 9, 2010 at 1:23 PM, Chris Barker <Chr...@no...> wrote: > Pribadi, Krishna wrote: >> Based on what I’ve been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for the most part: > > http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx This page is badly out of date (half the links are broken) JDH
On Tue, Mar 9, 2010 at 2:23 PM, Chris Barker <Chr...@no...> wrote: > Pribadi, Krishna wrote: >> Based on what I’ve been reading regarding MPL, it seems that the >> matplotlib show() function causes another instance of a GUI loop to >> remain suspended. > > right --don't use show(), in fact, don't use pylab for the most part: > > http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx > > and see the "embedding_in_wx" examples as well. I would agree with Chris that you should bite the bullet and embed it. That you are new to Python shouldn't be too much of a problem if you follow the recipe linked there. Note that the top links on that page are broken, but if you go to one of the last links: http://www.scipy.org/Matplotlib_figure_in_a_wx_panel ...this works. And if you need help getting it going, people can help you. Don't worry about all the fancy graphing stuff there, the draw method could have just been: def draw( self ): """Draw data.""" if not hasattr( self, 'subplot' ): self.subplot = self.figure.add_subplot( 111 ) self.subplot.plot( [1,2,3]) and you could lose all the numpy geometry code and it would have been a boring plot but a simpler block of code. :D Che
Ian Thomas wrote: > I submitted some code to matplotlib-users last September to perform > contouring of triangular grids. The posts and code can be found at: > > http://sourceforge.net/mailarchive/forum.php?thread_name=4AB3B95B.3090903%40noaa.gov&forum_name=matplotlib-users > > Like I wrote at the time, if it is useful to enough people I'm happy > to improve the code provided it can be incorporated into mpl as I have > no interest in maintaining it as a standalone project. I think it would be great to have in MPL. What code are you using for the triangulation? Does it do constrained delauney? -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...
Pribadi, Krishna wrote: > Based on what I’ve been reading regarding MPL, it seems that the > matplotlib show() function causes another instance of a GUI loop to > remain suspended. right --don't use show(), in fact, don't use pylab for the most part: http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx and see the "embedding_in_wx" examples as well. I personally like wxMPL: http://agni.phys.iit.edu/~kmcivor/wxmpl/ -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...
On 2010年03月09日 12:37 PM, Eric Firing wrote: > Eric Firing wrote: >> Tony S Yu wrote: >>> On Mar 9, 2010, at 1:22 PM, John Hunter wrote: >>> >>>> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing<ef...@ha...> wrote: >>>> >>>>> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >>>>> svn. I have done a little grepping and other exploration, but have >>>>> completely failed to find where this change is occurring. >>>> >>>> cbook imports locale -- may be implicated: >>>> >>>> string.letters¶ >>>> The concatenation of the strings lowercase and uppercase described >>>> below. The specific value is locale-dependent, and will be updated >>>> when locale.setlocale() is called. >>>> >>>> See if simply importing locale first has the same effect. >>> >>> It seems to be an interaction between numpy and locale. I can reproduce the problem with: >>> >>>>>> import locale >>>>>> import numpy as np >>>>>> preferredencoding = locale.getpreferredencoding() >> >> cbook also calls locale.getpreferredencoding() when it is imported. > > Confirmation: > > In [1]:import string > > In [2]:string.letters > Out[2]:'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > In [3]:import locale > > In [4]:locale.getpreferredencoding () > Out[4]:'UTF-8' > > In [5]:string.letters > Out[5]:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' PyGTK calls locale.setlocale() and thus may be affecting string.letters. > The lesson seems to be that the only proper use for string.letters is > for testing membership, in which case the order does not matter. Yes. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Eric Firing wrote: > Tony S Yu wrote: >> On Mar 9, 2010, at 1:22 PM, John Hunter wrote: >> >>> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing <ef...@ha...> wrote: >>> >>>> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >>>> svn. I have done a little grepping and other exploration, but have >>>> completely failed to find where this change is occurring. >>> >>> cbook imports locale -- may be implicated: >>> >>> string.letters¶ >>> The concatenation of the strings lowercase and uppercase described >>> below. The specific value is locale-dependent, and will be updated >>> when locale.setlocale() is called. >>> >>> See if simply importing locale first has the same effect. >> >> It seems to be an interaction between numpy and locale. I can reproduce the problem with: >> >>>>> import locale >>>>> import numpy as np >>>>> preferredencoding = locale.getpreferredencoding() > > cbook also calls locale.getpreferredencoding() when it is imported. Confirmation: In [1]:import string In [2]:string.letters Out[2]:'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' In [3]:import locale In [4]:locale.getpreferredencoding () Out[4]:'UTF-8' In [5]:string.letters Out[5]:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' The lesson seems to be that the only proper use for string.letters is for testing membership, in which case the order does not matter. Eric > Eric > > >>>>> import string >>>>> print string.letters >> The bug disappears after removing the numpy import. >> >> -Tony >> > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi, We have been working on a python wx app GUI for finding and selecting metadata (lots of lists and check boxes) from a test (that later fetches SQL time-history data for further processing in LabView or elsewhere). As an afterthought, we decided to add in a small function that would allow previewing (plotting) of time-history data based on the selected metadata. The objective is to have a window pop up with the plotted time history data and allow the user to zoom, scroll etc, without closing or exiting the original GUI for selecting the metadata. The reason I want a pop up window is because I don't want to change the original metadata selection GUI (it's too complicated) What I've done so far is: Added a button to the metadata GUI called "plot". In the "OnPlotButton" event handler I embedded the plotting code. The "plot" button works fine when I click it the first time. However, problems occur when I decide to plot a different set of data (without starting over the metadata GUI). I'd like to choose some new metadata, then click on the plot button again. But as of present, this causes the figure to show a gray image (no lines plotted) and then both GUIs hang up. I've tried closing the figure manually prior to selecting new metadata and clicking on "plot" but it still causes the metadata GUI to lock up. Based on what I've been reading regarding MPL, it seems that the matplotlib show() function causes another instance of a GUI loop to remain suspended. Is there any way to get the pop-up figure to show the time-history data and remain interactive (zoom, scroll, etc) and be able to re-plot or "replace" the current plot? I thought about using the draw() function but I couldn't get it to "pop-up" the figure. Also, if I'm not mistaken, the draw() function doesn't allow for interactive control? I think this issue is similar to the issue described here: http://mail.python.org/pipermail/pythonmac-sig/2005-March/013365.html but I can't seem to find a simple solution, without embedding the plot figure directly into the existing GUI (not something easy to do as I'm not a very experienced Python programmer) Please let me know if anyone can help. Here is my code: def OnPlotButton(self, event): global SelTestID, SelRunList, SelEventID, SelChanList, SelCycList if self.notebook.GetSelection() == 0: SelTestID = self.listCtrlStatus.GetItem(0,1).GetText()#.strip(", ").split(", ") if self.listCtrlStatus.GetItem(2,0).GetText() == "Event Selected: ": SelRunList = self.listCtrlStatus.GetItem(1,1).GetText().strip(", ").split(", ") SelChanList = [] SelCycList = [] SelEventID = self.listCtrlStatus.GetItem(2,1).GetText()#.strip(", ").split(", ") else: if self.listCtrlStatus.GetItem(1,1).GetText() == "All": SelRunList = [] for iRun in range(self.checkListRuns.GetItemCount()): SelRunList.append(str(self.checkListRuns.GetItemText(iRun))) else: SelRunList = self.listCtrlStatus.GetItem(1,1).GetText().strip(", ").split(", ") SelChanList = self.checkListBoxChans.GetCheckedStrings() if self.listCtrlStatus.GetItem(3,1).GetText() == "All": SelCycList = [] else: SelCycList = self.listCtrlStatus.GetItem(3,1).GetText().strip(", ").split(", ") SelEventID = '' elif self.notebook.GetSelection() == 1: SelTestID = self.listCtrlStatus.GetItem(0,1).GetText()#.strip(", ").split(", ") SelRunList = self.listCtrlStatus.GetItem(1,1).GetText().strip(", ").split(", ") SelChanList = [] SelCycList = [] SelEventID = '' ##VTS.MsgBox("Test","eWO: " + SelTestID + "\nRuns: " + str(SelRunList) + "\nChans: " + str(SelChanList) + "\nCycles: " + str(SelCycList) + "\nEvent: " + SelEventID) #cleanup to prevent memory leak if previously plotted plt.close('all') ##make sure all figure windows are closed fig = [] ax = [] #prep data for plotting plotting myeWO = str(SelTestID) nRuns = len(SelRunList) myRuns = [] for iRuns in range(nRuns): myRuns.append(str(SelRunList[iRuns])) nChans = len(SelChanList) myChans = [] for iChan in range(nChans): myChans.append(str(SelChanList[iChan])) dataLst = VTS.FetchSQLRunDataByName(myeWO, myRuns, myChans) lenData = len(dataLst) dataArry = np.zeros((lenData, nChans + 1)) for iPoint in range(lenData): dataArry[iPoint] = dataLst[iPoint] #begin plotting fig = plt.figure(1) ax = fig.add_subplot(111) myPlotLines = [] for iChan in range(nChans): tempLine, = ax.plot(dataArry[:,0], dataArry[:,iChan+1], label = myChans[iChan]) myPlotLines.append(tempLine) myTitle = plt.title('eWO: ' + myeWO + '\nRun IDs: ' + str(myRuns)) ax.grid('on') ##plt.legend(loc=0) myLegend = plt.legend(loc=0) legTxt = myLegend.get_texts() ##get legent text plt.setp(legTxt, fontsize='small') ##set legend text fontsize to small myXLabel = plt.xlabel('Time (s)') ##VTS.MsgBox("Test","eWO: " + SelTestID + "\neWO type: " + str(type(SelTestID)) + "\nRuns: " + str(myRuns) + "\nnRuns " + str(nRuns) + "\nChans: " + str(myChans) + "\nnChans: " + str(nChans) + "\nEvent: " + SelEventID) plt.show() event.Skip() Krishna Adrianto Pribadi Test Engineer Desk (TTF): 256.480.4450 Cell: 412.401.1477 Harley-Davidson Motor Co. Talladega Test Facility Vehicle Test Stands (VTS) This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation.
Tony S Yu wrote: > On Mar 9, 2010, at 1:22 PM, John Hunter wrote: > >> On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing <ef...@ha...> wrote: >> >>> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >>> svn. I have done a little grepping and other exploration, but have >>> completely failed to find where this change is occurring. >> >> >> cbook imports locale -- may be implicated: >> >> string.letters¶ >> The concatenation of the strings lowercase and uppercase described >> below. The specific value is locale-dependent, and will be updated >> when locale.setlocale() is called. >> >> See if simply importing locale first has the same effect. > > > It seems to be an interaction between numpy and locale. I can reproduce the problem with: > >>>> import locale >>>> import numpy as np > >>>> preferredencoding = locale.getpreferredencoding() cbook also calls locale.getpreferredencoding() when it is imported. Eric > >>>> import string >>>> print string.letters > > The bug disappears after removing the numpy import. > > -Tony >
Hi, This import pylab as pl pl.plot([3,6,3,7,3]) pl.xlabel("Xlabel") pl.savefig("test.eps") gives me an unpleasant outfile with the backends GTK, GTKAgg, WXAgg, WX, Agg, GDK and PS. It works fine only with Cairo and GTKCairo. I'm on trunk and Ubuntu 8.04. All backends do fine for png. It's actually pl.xlabel that kills the eps, if it's replaced by pl.title() everything works again. Not sure when this problem appeared, but probably not so long ago. Cheers, Olle
John Hunter wrote: > On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing <ef...@ha...> wrote: > >> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >> svn. I have done a little grepping and other exploration, but have >> completely failed to find where this change is occurring. > > > > cbook imports locale -- may be implicated: > > string.letters¶ > The concatenation of the strings lowercase and uppercase described > below. The specific value is locale-dependent, and will be updated > when locale.setlocale() is called. > > See if simply importing locale first has the same effect. No effect here. Eric > > JDH
On Mar 9, 2010, at 1:22 PM, John Hunter wrote: > On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing <ef...@ha...> wrote: > >> Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from >> svn. I have done a little grepping and other exploration, but have >> completely failed to find where this change is occurring. > > > > cbook imports locale -- may be implicated: > > string.letters¶ > The concatenation of the strings lowercase and uppercase described > below. The specific value is locale-dependent, and will be updated > when locale.setlocale() is called. > > See if simply importing locale first has the same effect. It seems to be an interaction between numpy and locale. I can reproduce the problem with: >>> import locale >>> import numpy as np >>> preferredencoding = locale.getpreferredencoding() >>> import string >>> print string.letters The bug disappears after removing the numpy import. -Tony
On Tue, Mar 9, 2010 at 12:16 PM, Eric Firing <ef...@ha...> wrote: > Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from > svn. I have done a little grepping and other exploration, but have > completely failed to find where this change is occurring. cbook imports locale -- may be implicated: string.letters¶ The concatenation of the strings lowercase and uppercase described below. The specific value is locale-dependent, and will be updated when locale.setlocale() is called. See if simply importing locale first has the same effect. JDH
Enssle Carl Philipp wrote: > Hallo. > > When importing string in python, "letters" are defined as follows: > > >>> import string > >>> string.letters > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > ... whereas when importing matplotlib, the order of "letters" seems to be > changed: > > >>> import matplotlib > >>> string.letters > 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' > > > Would be grateful for a comment. Bizarre! I can reproduce it with python 2.6 (ubuntu 9.10) and mpl from svn. I have done a little grepping and other exploration, but have completely failed to find where this change is occurring. Eric
On Tue, Mar 9, 2010 at 11:28 AM, Enssle Carl Philipp <car...@co...> wrote: > Hallo. > > When importing string in python, "letters" are defined as follows: > >>>> import string >>>> string.letters > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > ... whereas when importing matplotlib, the order of "letters" seems to be > changed: > >>>> import matplotlib >>>> string.letters > 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' > > Would be grateful for a comment. I'm seeing this here too: In [1]: import string In [2]: string.letters Out[2]: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' In [3]: import matplotlib In [4]: string.letters Out[4]: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' That's just bizarre. This is on 0.99.1.1 on OpenSUSE 11.2 Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Enssle Carl Philipp wrote: > Hallo. > > When importing string in python, "letters" are defined as follows: > > >>>> import string >>>> string.letters >>>> > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' > > ... whereas when importing matplotlib, the order of "letters" seems to be changed: > > >>>> import matplotlib >>>> string.letters >>>> > 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' > > > Would be grateful for a comment. > > Philipp > Hello Philipp, I'm not able to replicate the behavior you describe. >>> import sys >>> sys.version '2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]' >>> import matplotlib >>> matplotlib.__version__ '0.99.1' >>> import string >>> string.letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' >>> -- jv > > > -------------------------------------------------------------------------------------------------------- > Carl Philipp Enssle > Environmental Technology Engineer > AF-Colenco Ltd, Groundwater Protection and Waste Disposal > Visiting address: Täfernstrasse 26 | CH-5405 Baden | Switzerland > Direct: +41 (0)56 483 15 48 | Fax: +41 (0)56 483 18 82 > car...@af... | www.af-colenco.com > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hey, no offense to the numpy developers! They are doing a great job and the Python 3 support in the numpy 2.0 release is well worth the wait. What I meant was that ATM there is no officially released numpy version that one can use to build an official win-amd64 matplotlib binary (same for any other scientific python package). Matplotlib works good on 64 bit when compiled against numpy 1.4.0svn. Christoph On 3/9/2010 9:08 AM, John Hunter wrote: > "Given the numpy > 1.4.0 ABI mess, I do not think 64 bit Windows binaries should be > released at the moment. There was supposed to be a numpy 1.4.1 release > a month ago, but it is still not out. I can create 64 bit binaries > with GTK/Qt/Cairo support once numpy 1.4.1/2.0 is released."
Hallo. When importing string in python, "letters" are defined as follows: >>> import string >>> string.letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ... whereas when importing matplotlib, the order of "letters" seems to be changed: >>> import matplotlib >>> string.letters 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' Would be grateful for a comment. Philipp -------------------------------------------------------------------------------------------------------- Carl Philipp Enssle Environmental Technology Engineer AF-Colenco Ltd, Groundwater Protection and Waste Disposal Visiting address: Täfernstrasse 26 | CH-5405 Baden | Switzerland Direct: +41 (0)56 483 15 48 | Fax: +41 (0)56 483 18 82 car...@af... | www.af-colenco.com
I have uploaded the src and some binaries for the matplotlib 0.99.3 (stable branch) release candidate rc1 . This is a bugfix release that contains at least one critical bugfix (the path.simplify bug) and numerous other small fixes. I built the OSX binaries on a 64 bit 10.6 python2.6 machine so I don't think they will work on earlier OS X boxes (but am not sure). This is a new machine for the binaries so please test if you are able. If you have access to an older OS X server that I can use to build binaries for older platforms I would be willing to try (my powerbook died). Any of you who know a lot about building compatible OSX binaries across python and OS release versions please advise. The release candidate for testing are available at: http://drop.io/xortel1# Thanks to Christoph Gohlke for the win32 builds. He did not upload 64bit win32 builds with the following explanation: "Given the numpy 1.4.0 ABI mess, I do not think 64 bit Windows binaries should be released at the moment. There was supposed to be a numpy 1.4.1 release a month ago, but it is still not out. I can create 64 bit binaries with GTK/Qt/Cairo support once numpy 1.4.1/2.0 is released." The svn log of changes since the last release are below. JDH r8181 | efiring | 2010年03月08日 10:09:55 -0800 (2010年3月08日) | 2 lines dates.py: fix num2jul, jul2num; fixes bug 2963391; thanks to G. Lichtenberg ------------------------------------------------------------------------ r8179 | leejjoon | 2010年03月05日 15:51:22 -0800 (2010年3月05日) | 1 line fix a bug in SubplotDivider.new_horizontal that gave incrroect result when pack_start=True ------------------------------------------------------------------------ r8175 | leejjoon | 2010年03月03日 10:03:30 -0800 (2010年3月03日) | 1 line fix arguments of allow_rasterization.draw_wrapper ------------------------------------------------------------------------ r8174 | jdh2358 | 2010年03月03日 09:15:58 -0800 (2010年3月03日) | 1 line added support for favicon in docs build ------------------------------------------------------------------------ r8173 | jdh2358 | 2010年03月03日 08:56:16 -0800 (2010年3月03日) | 1 line applied Mattias get_bounds patch ------------------------------------------------------------------------ r8172 | jdh2358 | 2010年03月03日 08:31:42 -0800 (2010年3月03日) | 1 line fix svnmerge download instructions ------------------------------------------------------------------------ r8171 | jdh2358 | 2010年03月03日 07:47:48 -0800 (2010年3月03日) | 1 line added favicon ------------------------------------------------------------------------ r8160 | mdboom | 2010年02月26日 08:27:22 -0800 (2010年2月26日) | 2 lines Fix offset_copy: the fig argument should be optional. ------------------------------------------------------------------------ r8146 | mdboom | 2010年02月22日 08:22:28 -0800 (2010年2月22日) | 1 line Backporting numpy version check fix to 0.99 branch ------------------------------------------------------------------------ r8145 | jdh2358 | 2010年02月22日 06:31:45 -0800 (2010年2月22日) | 1 line fix setters for regular polygon ------------------------------------------------------------------------ r8135 | leejjoon | 2010年02月16日 14:55:27 -0800 (2010年2月16日) | 1 line fix a bug in Text._get_layout that returns an incorrect information for an empty string ------------------------------------------------------------------------ r8121 | jdh2358 | 2010年02月08日 09:50:27 -0800 (2010年2月08日) | 1 line added Ariels csd patch for proper scaling at the dc component ------------------------------------------------------------------------ r8116 | mdboom | 2010年02月08日 07:57:45 -0800 (2010年2月08日) | 1 line Fix for libpng-1.4 compatibility ------------------------------------------------------------------------ r8092 | leejjoon | 2010年01月18日 16:26:16 -0800 (2010年1月18日) | 1 line update annotate documentation to explain *annotation_clip* parameter ------------------------------------------------------------------------ r8070 | mdboom | 2010年01月04日 06:28:57 -0800 (2010年1月04日) | 1 line Fix doc 'clean' ------------------------------------------------------------------------ r8068 | mdboom | 2010年01月04日 06:14:38 -0800 (2010年1月04日) | 2 lines Fix bug in PDF, PS, SVG and OS-X backends: do not simplify filled paths. ------------------------------------------------------------------------ r8057 | mdboom | 2009年12月31日 07:46:58 -0800 (2009年12月31日) | 2 lines [2916753] Wrong API signature- yscale ------------------------------------------------------------------------ r8036 | jdh2358 | 2009年12月16日 11:21:44 -0800 (2009年12月16日) | 1 line add mpl book to index sidebar ------------------------------------------------------------------------ r8016 | heeres | 2009年12月09日 16:09:03 -0800 (2009年12月09日) | 2 lines Mplot3d: fix scatter3d markers bug ------------------------------------------------------------------------ r8003 | mdboom | 2009年12月03日 11:21:28 -0800 (2009年12月03日) | 1 line [2896454] subscripts and \mathrm don't get along, aka the long-standing wiggle baseline problem ------------------------------------------------------------------------ r8001 | mdboom | 2009年12月03日 10:54:54 -0800 (2009年12月03日) | 2 lines [2903460] _path.pyd crashes in 0.99.1.win32-py2.6 on PIII CPU ------------------------------------------------------------------------ r7998 | mdboom | 2009年12月01日 11:01:45 -0800 (2009年12月01日) | 2 lines [2906157] Let sphinx reference matplotlib-created plots (backport) ------------------------------------------------------------------------ r7991 | mdboom | 2009年11月30日 10:30:09 -0800 (2009年11月30日) | 2 lines Fix bug in usage of "contains" ------------------------------------------------------------------------ r7989 | mdboom | 2009年11月30日 09:24:49 -0800 (2009年11月30日) | 1 line Fix SF-2903596 on the 0.99.x branch ------------------------------------------------------------------------ r7983 | mdboom | 2009年11月24日 10:08:51 -0800 (2009年11月24日) | 2 lines [2902715] artist.set_clip_path does not handle tuple ------------------------------------------------------------------------ r7981 | jdh2358 | 2009年11月23日 13:16:15 -0800 (2009年11月23日) | 1 line make IndexFormatter derive from Formatter ------------------------------------------------------------------------ r7972 | mdboom | 2009年11月18日 08:19:21 -0800 (2009年11月18日) | 2 lines Fix plot directive so it handles source files in various encodings. ------------------------------------------------------------------------ r7970 | efiring | 2009年11月16日 15:49:11 -0800 (2009年11月16日) | 4 lines Fix Normalize bug: ensure scalar output for scalar input. This bug was causing a bug in clabel with a single contour level, as reported by Brendan Arnold. ------------------------------------------------------------------------ r7952 | mdboom | 2009年11月12日 09:27:34 -0800 (2009年11月12日) | 2 lines [2853659] Patch to fix EMF backend ------------------------------------------------------------------------ r7944 | mdboom | 2009年11月06日 11:24:55 -0800 (2009年11月06日) | 2 lines Add support for \widebar{} in mathtext (Thanks Sean Arms) ------------------------------------------------------------------------ r7942 | jdh2358 | 2009年11月06日 07:04:33 -0800 (2009年11月06日) | 1 line backport afm fix to branch ------------------------------------------------------------------------ r7928 | mdboom | 2009年11月03日 12:55:47 -0800 (2009年11月03日) | 1 line [2889193] Rasterized output offset in pdf and ps ------------------------------------------------------------------------ r7924 | mdboom | 2009年11月03日 08:27:13 -0800 (2009年11月03日) | 2 lines [2880836] Save from toolbar changes directory with WX backend ------------------------------------------------------------------------ r7919 | mdboom | 2009年11月03日 07:46:14 -0800 (2009年11月03日) | 2 lines [2890979] Close paths correctly in PolyCollection ------------------------------------------------------------------------ r7916 | mdboom | 2009年11月02日 10:54:29 -0800 (2009年11月02日) | 2 lines [2890345] pylab.thetagrids() does not accept fmt ------------------------------------------------------------------------ r7906 | leejjoon | 2009年10月25日 12:30:43 -0700 (2009年10月25日) | 2 lines axes_divider.py : fix a bug that axes has a wrong size when pack_start is True. ------------------------------------------------------------------------ r7903 | mdboom | 2009年10月23日 08:02:21 -0700 (2009年10月23日) | 2 lines Support \# in mathtext. ------------------------------------------------------------------------ r7901 | mdboom | 2009年10月22日 06:46:08 -0700 (2009年10月22日) | 2 lines Fix path simplification so the path always starts with a MOVETO. ------------------------------------------------------------------------ r7896 | mdboom | 2009年10月21日 06:24:33 -0700 (2009年10月21日) | 2 lines Fix bug in simplification code that was clipping peaks. ------------------------------------------------------------------------ r7893 | leejjoon | 2009年10月19日 02:02:08 -0700 (2009年10月19日) | 1 line fix a bug in plot_directive ------------------------------------------------------------------------ r7887 | leejjoon | 2009年10月15日 21:35:20 -0700 (2009年10月15日) | 1 line fix Text.get_prop_tup omitting _rotation_mode. patch by Stan West ------------------------------------------------------------------------ r7884 | ryanmay | 2009年10月14日 13:27:07 -0700 (2009年10月14日) | 1 line Add AutoDateFormatter and AutoDateLocator to __all__ and to the module-level documentation. ------------------------------------------------------------------------ r7880 | leejjoon | 2009年10月12日 16:02:27 -0700 (2009年10月12日) | 1 line fix plot_directive.py that generated incorrect links for some cases ------------------------------------------------------------------------ r7874 | mdboom | 2009年10月12日 06:21:07 -0700 (2009年10月12日) | 2 lines Don't simplify hatched paths in PDF, PS and SVG backends. ------------------------------------------------------------------------ jdh2358@bsd:mpl99> head -400 svn.log ------------------------------------------------------------------------ r8181 | efiring | 2010年03月08日 10:09:55 -0800 (2010年3月08日) | 2 lines dates.py: fix num2jul, jul2num; fixes bug 2963391; thanks to G. Lichtenberg ------------------------------------------------------------------------ r8179 | leejjoon | 2010年03月05日 15:51:22 -0800 (2010年3月05日) | 1 line fix a bug in SubplotDivider.new_horizontal that gave incrroect result when pack_start=True ------------------------------------------------------------------------ r8175 | leejjoon | 2010年03月03日 10:03:30 -0800 (2010年3月03日) | 1 line fix arguments of allow_rasterization.draw_wrapper ------------------------------------------------------------------------ r8174 | jdh2358 | 2010年03月03日 09:15:58 -0800 (2010年3月03日) | 1 line added support for favicon in docs build ------------------------------------------------------------------------ r8173 | jdh2358 | 2010年03月03日 08:56:16 -0800 (2010年3月03日) | 1 line applied Mattias get_bounds patch ------------------------------------------------------------------------ r8172 | jdh2358 | 2010年03月03日 08:31:42 -0800 (2010年3月03日) | 1 line fix svnmerge download instructions ------------------------------------------------------------------------ r8171 | jdh2358 | 2010年03月03日 07:47:48 -0800 (2010年3月03日) | 1 line added favicon ------------------------------------------------------------------------ r8160 | mdboom | 2010年02月26日 08:27:22 -0800 (2010年2月26日) | 2 lines Fix offset_copy: the fig argument should be optional. ------------------------------------------------------------------------ r8146 | mdboom | 2010年02月22日 08:22:28 -0800 (2010年2月22日) | 1 line Backporting numpy version check fix to 0.99 branch ------------------------------------------------------------------------ r8145 | jdh2358 | 2010年02月22日 06:31:45 -0800 (2010年2月22日) | 1 line fix setters for regular polygon ------------------------------------------------------------------------ r8135 | leejjoon | 2010年02月16日 14:55:27 -0800 (2010年2月16日) | 1 line fix a bug in Text._get_layout that returns an incorrect information for an empty string ------------------------------------------------------------------------ r8121 | jdh2358 | 2010年02月08日 09:50:27 -0800 (2010年2月08日) | 1 line added Ariels csd patch for proper scaling at the dc component ------------------------------------------------------------------------ r8116 | mdboom | 2010年02月08日 07:57:45 -0800 (2010年2月08日) | 1 line Fix for libpng-1.4 compatibility ------------------------------------------------------------------------ r8092 | leejjoon | 2010年01月18日 16:26:16 -0800 (2010年1月18日) | 1 line update annotate documentation to explain *annotation_clip* parameter ------------------------------------------------------------------------ r8070 | mdboom | 2010年01月04日 06:28:57 -0800 (2010年1月04日) | 1 line Fix doc 'clean' ------------------------------------------------------------------------ r8068 | mdboom | 2010年01月04日 06:14:38 -0800 (2010年1月04日) | 2 lines Fix bug in PDF, PS, SVG and OS-X backends: do not simplify filled paths. ------------------------------------------------------------------------ r8057 | mdboom | 2009年12月31日 07:46:58 -0800 (2009年12月31日) | 2 lines [2916753] Wrong API signature- yscale ------------------------------------------------------------------------ r8036 | jdh2358 | 2009年12月16日 11:21:44 -0800 (2009年12月16日) | 1 line add mpl book to index sidebar ------------------------------------------------------------------------ r8016 | heeres | 2009年12月09日 16:09:03 -0800 (2009年12月09日) | 2 lines Mplot3d: fix scatter3d markers bug ------------------------------------------------------------------------ r8003 | mdboom | 2009年12月03日 11:21:28 -0800 (2009年12月03日) | 1 line [2896454] subscripts and \mathrm don't get along, aka the long-standing wiggle baseline problem ------------------------------------------------------------------------ r8001 | mdboom | 2009年12月03日 10:54:54 -0800 (2009年12月03日) | 2 lines [2903460] _path.pyd crashes in 0.99.1.win32-py2.6 on PIII CPU ------------------------------------------------------------------------ r7998 | mdboom | 2009年12月01日 11:01:45 -0800 (2009年12月01日) | 2 lines [2906157] Let sphinx reference matplotlib-created plots (backport) ------------------------------------------------------------------------ r7991 | mdboom | 2009年11月30日 10:30:09 -0800 (2009年11月30日) | 2 lines Fix bug in usage of "contains" ------------------------------------------------------------------------ r7989 | mdboom | 2009年11月30日 09:24:49 -0800 (2009年11月30日) | 1 line Fix SF-2903596 on the 0.99.x branch ------------------------------------------------------------------------ r7983 | mdboom | 2009年11月24日 10:08:51 -0800 (2009年11月24日) | 2 lines [2902715] artist.set_clip_path does not handle tuple ------------------------------------------------------------------------ r7981 | jdh2358 | 2009年11月23日 13:16:15 -0800 (2009年11月23日) | 1 line make IndexFormatter derive from Formatter ------------------------------------------------------------------------ r7972 | mdboom | 2009年11月18日 08:19:21 -0800 (2009年11月18日) | 2 lines Fix plot directive so it handles source files in various encodings. ------------------------------------------------------------------------ r7970 | efiring | 2009年11月16日 15:49:11 -0800 (2009年11月16日) | 4 lines Fix Normalize bug: ensure scalar output for scalar input. This bug was causing a bug in clabel with a single contour level, as reported by Brendan Arnold. ------------------------------------------------------------------------ r7952 | mdboom | 2009年11月12日 09:27:34 -0800 (2009年11月12日) | 2 lines [2853659] Patch to fix EMF backend ------------------------------------------------------------------------ r7944 | mdboom | 2009年11月06日 11:24:55 -0800 (2009年11月06日) | 2 lines Add support for \widebar{} in mathtext (Thanks Sean Arms) ------------------------------------------------------------------------ r7942 | jdh2358 | 2009年11月06日 07:04:33 -0800 (2009年11月06日) | 1 line backport afm fix to branch ------------------------------------------------------------------------ r7928 | mdboom | 2009年11月03日 12:55:47 -0800 (2009年11月03日) | 1 line [2889193] Rasterized output offset in pdf and ps ------------------------------------------------------------------------ r7924 | mdboom | 2009年11月03日 08:27:13 -0800 (2009年11月03日) | 2 lines [2880836] Save from toolbar changes directory with WX backend ------------------------------------------------------------------------ r7919 | mdboom | 2009年11月03日 07:46:14 -0800 (2009年11月03日) | 2 lines [2890979] Close paths correctly in PolyCollection ------------------------------------------------------------------------ r7916 | mdboom | 2009年11月02日 10:54:29 -0800 (2009年11月02日) | 2 lines [2890345] pylab.thetagrids() does not accept fmt ------------------------------------------------------------------------ r7906 | leejjoon | 2009年10月25日 12:30:43 -0700 (2009年10月25日) | 2 lines axes_divider.py : fix a bug that axes has a wrong size when pack_start is True. ------------------------------------------------------------------------ r7903 | mdboom | 2009年10月23日 08:02:21 -0700 (2009年10月23日) | 2 lines Support \# in mathtext. ------------------------------------------------------------------------ r7901 | mdboom | 2009年10月22日 06:46:08 -0700 (2009年10月22日) | 2 lines Fix path simplification so the path always starts with a MOVETO. ------------------------------------------------------------------------ r7896 | mdboom | 2009年10月21日 06:24:33 -0700 (2009年10月21日) | 2 lines Fix bug in simplification code that was clipping peaks. ------------------------------------------------------------------------ r7893 | leejjoon | 2009年10月19日 02:02:08 -0700 (2009年10月19日) | 1 line fix a bug in plot_directive ------------------------------------------------------------------------ r7887 | leejjoon | 2009年10月15日 21:35:20 -0700 (2009年10月15日) | 1 line fix Text.get_prop_tup omitting _rotation_mode. patch by Stan West ------------------------------------------------------------------------ r7884 | ryanmay | 2009年10月14日 13:27:07 -0700 (2009年10月14日) | 1 line Add AutoDateFormatter and AutoDateLocator to __all__ and to the module-level documentation. ------------------------------------------------------------------------ r7880 | leejjoon | 2009年10月12日 16:02:27 -0700 (2009年10月12日) | 1 line fix plot_directive.py that generated incorrect links for some cases ------------------------------------------------------------------------ r7874 | mdboom | 2009年10月12日 06:21:07 -0700 (2009年10月12日) | 2 lines Don't simplify hatched paths in PDF, PS and SVG backends. ------------------------------------------------------------------------ r7867 | astraw | 2009年10月11日 11:55:18 -0700 (2009年10月11日) | 2 lines imshow: only apply axes patch clipping if image doesn't clip itself ------------------------------------------------------------------------ r7866 | astraw | 2009年10月11日 11:54:22 -0700 (2009年10月11日) | 2 lines allow already transformed clip path in artist set_clip_path() ------------------------------------------------------------------------ r7864 | efiring | 2009年10月10日 19:51:06 -0700 (2009年10月10日) | 2 lines docstring fixup: LinearSegmentedColormap.from_list ------------------------------------------------------------------------ r7858 | mdboom | 2009年10月09日 08:24:25 -0700 (2009年10月09日) | 2 lines Don't perform path simplification when hatch is drawn. ------------------------------------------------------------------------ r7849 | mdboom | 2009年10月06日 07:07:08 -0700 (2009年10月06日) | 2 lines Don't do "make.py clean" in terms of svn-clean, since that doesn't work with a tarball. ------------------------------------------------------------------------ r7847 | efiring | 2009年10月05日 16:11:10 -0700 (2009年10月05日) | 2 lines Add more platforms to setupext.py; patch by Benjamin Drung ------------------------------------------------------------------------ r7846 | efiring | 2009年10月05日 15:44:38 -0700 (2009年10月05日) | 8 lines Tk directory-finding patch by Benjamin Drung. Fixes the following: Guess the correct directory in Debian/Ubuntu fails. Replacing all tcl by tk does not lead to a correct directory: /usr/share/tcltk/tcl8.5 -> /usr/share/tktk/tk8.5 The correct directory is /usr/share/tcltk/tk8.5 ------------------------------------------------------------------------ r7844 | leejjoon | 2009年10月04日 19:05:16 -0700 (2009年10月04日) | 1 line image created by imshow support remove method ------------------------------------------------------------------------ r7837 | mdboom | 2009年10月01日 05:37:49 -0700 (2009年10月01日) | 2 lines Fix alpha of Shadow patch. ------------------------------------------------------------------------ r7834 | mdboom | 2009年09月30日 06:26:36 -0700 (2009年9月30日) | 2 lines Fix Grouper docstring -- it only supports weak-referenceable objects. ------------------------------------------------------------------------ r7827 | efiring | 2009年09月25日 16:56:14 -0700 (2009年9月25日) | 2 lines Fix bug in quiver handling of masked U, V ------------------------------------------------------------------------ r7822 | mdboom | 2009年09月24日 10:03:13 -0700 (2009年9月24日) | 2 lines Clip markers in draw_marker outside of the image rectangle with an extra border to accomodate the size of the marker. ------------------------------------------------------------------------ r7819 | jdh2358 | 2009年09月23日 20:57:31 -0700 (2009年9月23日) | 1 line applied a fix for sf bug 2865490; is there something more elegant? ------------------------------------------------------------------------ r7818 | jdh2358 | 2009年09月23日 20:00:28 -0700 (2009年9月23日) | 1 line try statically linking in the deps for OSX
Dear Jeremy, I'm not sure but I think it may be the problem with ppc, cause this architecture was dropped for Snow Leopard as far as I remember. So just delete "-arch ppc" and try again. In general you may try to use this description: http://blog.hyperjeff.net/?p=160 I've tested it and it works. Cheers, Jakub On 03/09/2010 04:54 AM, Jeremy Conlin wrote: > I am trying to compile MPL on Snow Leopard without success. I have a > fairly fresh system (10.6.2) with python.org 2.6.4 installed. I have > downloaded the MPL trunk with svn. I had to make a small change to > the make.osx file because there are some extra ". However I still > can't get MPL to compile/install; it fails when compiling zlib. The > change I made in the make.osx file is on line 11. It used to be: > > ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" > > and is now: > > ARCH_FLAGS=-arch i386 -arch ppc -arch x86_64 > > The error I get while compiling is copied below. Can anyone help me > figure out what is wrong? > > Thanks, > Jeremy > > x zlib-1.2.3/zutil.h > Checking for gcc... > Building static library libz.a version 1.2.3 with gcc. > Checking for unistd.h... No. > Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf() > Checking for snprintf() in stdio.h... No. > WARNING: snprintf() not found, falling back to sprintf(). zlib > can build but will be open to possible buffer-overflow security > vulnerabilities. > Checking for return value of sprintf()... No. > WARNING: apparently sprintf() does not return a value. zlib > can build but will be open to possible string-format security > vulnerabilities. > Checking for errno.h... No. > Checking for mmap support... No. > gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2 > -isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf > -DHAS_sprintf_void -DNO_ERRNO_H -c -o adler32.o adler32.c > gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2 > -isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf > -DHAS_sprintf_void -DNO_ERRNO_H -c -o compress.o compress.c > gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2 > -isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf > -DHAS_sprintf_void -DNO_ERRNO_H -c -o crc32.o crc32.c > In file included from crc32.c:29: > zutil.h:21:24: error: stddef.h: No such file or directory > zutil.h:23:22: error: string.h: No such file or directory > zutil.h:24:22: error: stdlib.h: No such file or directory > crc32.c:36:24: error: limits.h: No such file or directory > In file included from crc32.c:29: > zutil.h:21:24: error: stddef.h: No such file or directory > zutil.h:23:22: error: string.h: No such file or directory > zutil.h:24:22: error: stdlib.h: No such file or directory > crc32.c:36:24: error: limits.h: No such file or directory > In file included from crc32.c:29: > zutil.h:21:24: error: stddef.h: No such file or directory > zutil.h:23:22: error: string.h: No such file or directory > zutil.h:24:22: error: stdlib.h: No such file or directory > crc32.c:36:24: error: limits.h: No such file or directory > gcc -arch i386 -arch ppc -arch x86_64 -I/include -I/include/freetype2 > -isysroot /Developer/SDKs/MacOSX10.6u.sdk -DNO_snprintf > -DHAS_sprintf_void -DNO_ERRNO_H -c -o gzio.o gzio.c > lipo: can't figure out the architecture type of: /var/tmp//cc9xNLIP.out > make[1]: *** [crc32.o] Error 1 > make[1]: *** Waiting for unfinished jobs.... > gzio.c:10:19: error: stdio.h: No such file or directory > > > and more errors below. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hello all, I submitted some code to matplotlib-users last September to perform contouring of triangular grids. The posts and code can be found at: http://sourceforge.net/mailarchive/forum.php?thread_name=4AB3B95B.3090903%40noaa.gov&forum_name=matplotlib-users Like I wrote at the time, if it is useful to enough people I'm happy to improve the code provided it can be incorporated into mpl as I have no interest in maintaining it as a standalone project. Ian On 8 March 2010 23:33, gely <ge...@us...> wrote: > > > > Christopher Barker wrote: >> >> gely wrote: >>>> As I think about it, I'm going to have to write code to do this (contour >>>> an unstructured triangular mesh) sometime soon, so please let me know if >>>> it does exist already -- if not I'll try to remember to contribute it >>>> when I get around to it. >>>> >>>> -Chris >>>> >>> >>> Chris, I found this old thread. Did you ever find code to directly >>> interpolate a triangulation? >> >> sorry, no, not yet. >> >> Do you already have the triangulation? if so, it's pretty easy to contour. >> > > Thanks for the reply. Yes. I have the triangulation as a list of point > coordinates and a list of triangles with indices to the points. Good to know > it's not difficult. I'll have to chew on this for a bit. > > -Geoff > -- > View this message in context: http://old.nabble.com/Contour-Plotting-of-Varied-Data-on-a-Shape-tp25089018p27829342.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >