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
(7) |
2
(12) |
3
(7) |
4
(23) |
5
(5) |
6
(7) |
7
(4) |
8
(7) |
9
(25) |
10
(17) |
11
(25) |
12
(11) |
13
(8) |
14
(6) |
15
(1) |
16
(22) |
17
(11) |
18
(12) |
19
(22) |
20
(32) |
21
(9) |
22
(4) |
23
(16) |
24
(5) |
25
(9) |
26
(26) |
27
(21) |
28
(14) |
29
(6) |
30
(8) |
31
(4) |
|
|
|
|
From: Friedrich R. <fri...@gm...> - 2010-08-10 22:10:04
|
Are you on OSX 10.5 or 10.6? I'm asking because it's important for others when you're on 10.5 because you're using gcc-4.0 then, while 10.6 users have at least for non-Python (distutils) compilations gcc-4.2 as default. Friedrich |
From: Friedrich R. <fri...@gm...> - 2010-08-10 22:08:04
|
2010/8/9 Antonino Cucchiara <acu...@lb...>: > Hello, > I am running a MacOS Snow leopard and I recently istalled the python 2.6 > via Enthought. > I wanted to upgrade the matplotlib 1.0 but when I run the .mpkg the > installation don't start because > it seems not recognizing the python 2.6 is installed (I do have now 2.6.6). Hi, I guess the thread "Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X" may have already answered your question? You have to compile freetype2 and libpng I believe. Do you need 32bit support? Wait until Markus has reported whether his system is 10.5 or 10.6 (because of the gcc-4.0/4.2 issue). Friedrich |
From: Friedrich R. <fri...@gm...> - 2010-08-10 20:20:26
|
2010/8/10 Markus Baden <mar...@gm...>: > Thanks for the warning. Not really sure. So far I have seen no > problems, i.e. can happily plot. How can I make sure that I don't ran > into those problems? I usually don't mix packages and just hope that > the EPD guys update to Matplotlib 1.0 soon. When you can import pylab and do plotting and all then everything is fine. The mix I mentioned was that of the precompiled EPD (compiled with, say, compiler 1) and your probably self-compiled freetype2 (with say, compiler 2). The problem arises if it does not hold compiler 1 == compiler 2. In that case, usually one can compile, I believe since the functions are marked as "extern", but when making an attempt to actually load the shared lib (e.g. freetype2), it may fail with some random "symbol not found" error. So far, everything okay. Happy plotting! Friedrich |
From: Christoph G. <cg...@uc...> - 2010-08-10 19:48:04
|
On 8/10/2010 12:26 PM, Eric Firing wrote: > On 08/10/2010 09:10 AM, Christoph Gohlke wrote: >> >> >> On 8/10/2010 11:53 AM, stetrick wrote: >>> >>> Should probably indicate that it is the MKV versions >>> >>> >>> stetrick wrote: >>>> >>>> >>>> >>>> Christoph Gohlke wrote: >>>>> >>>>> >>>>> >>>>> On 8/9/2010 3:09 PM, stetrick wrote: >>>>>> >>>>>> I am now getting a message that says: >>>>>> >>>>>> Fatal Python error: PyEval_RestoreThread: NULL tstate >>>>>> >>>>>> This application has requested the Runtime to terminate it in an unusual >>>>>> way. >>>>>> >>>>>> This is with matplotlib 1.0.0, but all versions are 64-bit (python, >>>>>> numpy, >>>>>> matplotlib). >>>>>> >>>>>> Is this something I can fix or ignore? >>>>>> >>>>>> Thanks! >>>>> >>>>> Using Numpy 1.4.1 on Windows 7 64 bit. >>>>> Python version 2.6.5 for 64 bit as well. All from your website of >>>>> pre-compiled stuff. >>>>> >>>>> Thanks for doing that! >>>>> >> >> Those versions should work. Can you post some more details how you run >> python and a script that shows this problem. I assume you can import and >> use matplotlib and the crash appears when exiting Python? It might just >> be the old known bug in the Tk backend, not anything specific to the 64 >> bit version. See >> <http://www.mail-archive.com/mat...@li.../msg15342.html> >> >> -- >> Christoph > > I thought that was fixed: > http://sourceforge.net/tracker/?func=detail&aid=3015013&group_id=80706&atid=560720 > > Eric > Yes the bug is fixed. If the program is terminated properly. However, you can still crash the Python interpreter if you close or kill the console window while the following script is running. python -c"from matplotlib import pyplot;pyplot.hot();input()" -- Christoph |
From: Eric F. <ef...@ha...> - 2010-08-10 19:27:16
|
On 08/10/2010 09:10 AM, Christoph Gohlke wrote: > > > On 8/10/2010 11:53 AM, stetrick wrote: >> >> Should probably indicate that it is the MKV versions >> >> >> stetrick wrote: >>> >>> >>> >>> Christoph Gohlke wrote: >>>> >>>> >>>> >>>> On 8/9/2010 3:09 PM, stetrick wrote: >>>>> >>>>> I am now getting a message that says: >>>>> >>>>> Fatal Python error: PyEval_RestoreThread: NULL tstate >>>>> >>>>> This application has requested the Runtime to terminate it in an unusual >>>>> way. >>>>> >>>>> This is with matplotlib 1.0.0, but all versions are 64-bit (python, >>>>> numpy, >>>>> matplotlib). >>>>> >>>>> Is this something I can fix or ignore? >>>>> >>>>> Thanks! >>>> >>>> Using Numpy 1.4.1 on Windows 7 64 bit. >>>> Python version 2.6.5 for 64 bit as well. All from your website of >>>> pre-compiled stuff. >>>> >>>> Thanks for doing that! >>>> > > Those versions should work. Can you post some more details how you run > python and a script that shows this problem. I assume you can import and > use matplotlib and the crash appears when exiting Python? It might just > be the old known bug in the Tk backend, not anything specific to the 64 > bit version. See > <http://www.mail-archive.com/mat...@li.../msg15342.html> > > -- > Christoph I thought that was fixed: http://sourceforge.net/tracker/?func=detail&aid=3015013&group_id=80706&atid=560720 Eric |
From: Christoph G. <cg...@uc...> - 2010-08-10 19:11:02
|
On 8/10/2010 11:53 AM, stetrick wrote: > > Should probably indicate that it is the MKV versions > > > stetrick wrote: >> >> >> >> Christoph Gohlke wrote: >>> >>> >>> >>> On 8/9/2010 3:09 PM, stetrick wrote: >>>> >>>> I am now getting a message that says: >>>> >>>> Fatal Python error: PyEval_RestoreThread: NULL tstate >>>> >>>> This application has requested the Runtime to terminate it in an unusual >>>> way. >>>> >>>> This is with matplotlib 1.0.0, but all versions are 64-bit (python, >>>> numpy, >>>> matplotlib). >>>> >>>> Is this something I can fix or ignore? >>>> >>>> Thanks! >>> >>> Using Numpy 1.4.1 on Windows 7 64 bit. >>> Python version 2.6.5 for 64 bit as well. All from your website of >>> pre-compiled stuff. >>> >>> Thanks for doing that! >>> Those versions should work. Can you post some more details how you run python and a script that shows this problem. I assume you can import and use matplotlib and the crash appears when exiting Python? It might just be the old known bug in the Tk backend, not anything specific to the 64 bit version. See <http://www.mail-archive.com/mat...@li.../msg15342.html> -- Christoph |
From: stetrick <sco...@gm...> - 2010-08-10 18:53:54
|
Should probably indicate that it is the MKV versions stetrick wrote: > > > > Christoph Gohlke wrote: >> >> >> >> On 8/9/2010 3:09 PM, stetrick wrote: >>> >>> I am now getting a message that says: >>> >>> Fatal Python error: PyEval_RestoreThread: NULL tstate >>> >>> This application has requested the Runtime to terminate it in an unusual >>> way. >>> >>> This is with matplotlib 1.0.0, but all versions are 64-bit (python, >>> numpy, >>> matplotlib). >>> >>> Is this something I can fix or ignore? >>> >>> Thanks! >> >> Using Numpy 1.4.1 on Windows 7 64 bit. >> Python version 2.6.5 for 64 bit as well. All from your website of >> pre-compiled stuff. >> >> Thanks for doing that! >> >> >> >> Which version of numpy are you using? Assuming you are talking about >> matplotlib-1.0.0.win-amd64-py2.6.exe, you need >> numpy-1.4.1.win-amd64-py2.6.exe. >> >> Christoph >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > -- View this message in context: http://old.nabble.com/Fatal-Python-Error-with-64-bit-versions-tp29392620p29401038.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: stetrick <sco...@gm...> - 2010-08-10 18:52:09
|
Christoph Gohlke wrote: > > > > On 8/9/2010 3:09 PM, stetrick wrote: >> >> I am now getting a message that says: >> >> Fatal Python error: PyEval_RestoreThread: NULL tstate >> >> This application has requested the Runtime to terminate it in an unusual >> way. >> >> This is with matplotlib 1.0.0, but all versions are 64-bit (python, >> numpy, >> matplotlib). >> >> Is this something I can fix or ignore? >> >> Thanks! > > Using Numpy 1.4.1 on Windows 7 64 bit. > Python version 2.6.5 for 64 bit as well. All from your website of > pre-compiled stuff. > > Thanks for doing that! > > > > Which version of numpy are you using? Assuming you are talking about > matplotlib-1.0.0.win-amd64-py2.6.exe, you need > numpy-1.4.1.win-amd64-py2.6.exe. > > Christoph > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/Fatal-Python-Error-with-64-bit-versions-tp29392620p29401026.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Michael W. <mjw...@um...> - 2010-08-10 18:31:10
|
Hi, I am making a simple pie chart that needs to be small ~3x3 inches. The problem I am having is that the text labels get pushed out side the figure. Is there anyway to make the plot smaller relative to the figure size? Here is my code and the resulting plot: |
From: John H. <jd...@gm...> - 2010-08-10 18:16:13
|
On Tue, Aug 10, 2010 at 12:15 PM, c.jeang <chr...@un...> wrote: > Hello, > > where can I find mpl_toolkits. > Because I install matplotlib with ipython and the command > yum install python-matplotlib > but as a result I have no axes3d.py file and when I tried the examples of > the matplotlib site I get the following message: > unknown projection 3d > Apparently the toolkits mpl3d is missing, which site can provide it? Most likely your matplotlib version provided by yum is out of date. Check your version with import matplotlib print matplotlib.__version__ You can download the latest tarball from sourceforge: http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ See also the installing page: http://matplotlib.sourceforge.net/users/installing.html particularly the part on "Installing from source" and below. Perhaps another yum user can advise you on the easiest ways to install the build dependencies. JDH |
From: Benjamin R. <ben...@ou...> - 2010-08-10 18:15:21
|
On Tue, Aug 10, 2010 at 12:15 PM, c.jeang < chr...@un...> wrote: > Hello, > > where can I find mpl_toolkits. > Because I install matplotlib with ipython and the command > yum install python-matplotlib > but as a result I have no axes3d.py file and when I tried the examples of > the matplotlib site I get the following message: > unknown projection 3d > Apparently the toolkits mpl3d is missing, which site can provide it? > > Best regards > > Jeanguillaume > > > Jeanguillaume, Which version of matplotlib did you install? The axes3d.py examples use a very new feature that wasn't available in previous versions. The current examples can run with older versions of matplotlib by replacing the .gca() or the .add_subplot() line with ax = axes3d.Axes3D(fig) However, you would not be able to do any 3d subplotting examples without the latest version of matplotlib. I hope that clears things up. Ben Root |
From: c.jeang <chr...@un...> - 2010-08-10 17:29:44
|
Hello, where can I find mpl_toolkits. Because I install matplotlib with ipython and the command yum install python-matplotlib but as a result I have no axes3d.py file and when I tried the examples of the matplotlib site I get the following message: unknown projection 3d Apparently the toolkits mpl3d is missing, which site can provide it? Best regards Jeanguillaume -- Christian JEANGUILLAUME Service de Medecine Nucleaire CHU Larrey 49033 ANGERS FRANCE email: jea...@ie... Tel: 33 (0)2 41 35 34 12 Fax: 33 (0)2 41 35 48 80 LISA : Laboratoire d'Ing�ierie des Syst�es Automatis� (CNRS FRE) |
From: Christoph G. <cg...@uc...> - 2010-08-10 16:14:04
|
On 8/9/2010 3:09 PM, stetrick wrote: > > I am now getting a message that says: > > Fatal Python error: PyEval_RestoreThread: NULL tstate > > This application has requested the Runtime to terminate it in an unusual > way. > > This is with matplotlib 1.0.0, but all versions are 64-bit (python, numpy, > matplotlib). > > Is this something I can fix or ignore? > > Thanks! Which version of numpy are you using? Assuming you are talking about matplotlib-1.0.0.win-amd64-py2.6.exe, you need numpy-1.4.1.win-amd64-py2.6.exe. Christoph |
From: Oz N. <na...@gm...> - 2010-08-10 16:06:33
|
Hi Everyone, I solved the issue using the following code: CS=ax1.pcolormesh(x,y,dolomites,vmin=0, vmax=max(dolomite),cmap=cm.jet_r) fig.colorbar(CS,ticks=[0,max(dolomite)],orientation='horizontal',aspect=40,format='%.1E') ax1.set_title("dolomite [phi]") It's not straight forward to understand, I hope my question will be a good answer for others... Cheers, -- Oz Nahum Graduate Student Zentrum für Angewandte Geologie Universität Tübingen --- Imagine there's no countries it isn't hard to do Nothing to kill or die for And no religion too Imagine all the people Living life in peace |
From: Oz N. <na...@gm...> - 2010-08-10 15:26:08
|
Hi Everyone, I'm struggling to understand how to put the highest value on the ticks of a colorbar. My problem is that the highest value is simply not there, and it looks weird ... I would be happy to solve this issue. See what my code produces, http://yfrog.com/j9wrongip And here is how I want it to be: http://yfrog.com/2pcorrectsp And of course here is my code: from pylab import * import numpy as N from matplotlib.ticker import FuncFormatter, ScalarFormatter a=ScalarFormatter(useOffset=True, useMathText=False) a.set_scientific(True) def read_array2(filename, dtypes,lineskip=3, separator=' '): """ Read a file with an arbitrary number of columns. The type of data in each column is arbitrary It will be cast to the given dtype at runtime This is an improved function that also cleanes the data """ startFromLine = lineskip linesCounter = 1 cast = N.cast # a nice syntax to initialize a list with determine size data = [[] for dummy in xrange(len(dtypes))] for line in open(filename, 'r'): #print type(line) if linesCounter>startFromLine: fields = line.strip().split(separator) #clean double numbers because of minus signs for i, number in enumerate(fields): temp=number.split(" ") if len(temp)>1: #pdb.set_trace() del fields[i] for j, hold in enumerate(temp): #print j, hold #pdb.set_trace() fields.insert(i+j,hold) #print len(fields) del temp #remove trailing calvin degrees in fields for i, number in enumerate(fields): if number[-4]=='-': hold=number[:-4] del fields[i] fields.insert(i,hold) #split fields and append to data for i, number in enumerate(fields): data[i].append(number) #data[i].append(number) linesCounter=linesCounter+1 #cast data to a nice array #pdb.set_trace() for i in xrange(len(dtypes)): data[i] = cast[dtypes[i]](data[i]) return N.rec.array(data, dtype=dtypes) def readTechPlotHeader(fileName): ''' This function reads a Techplot file header format. It returns a list which can be used in other functions, to visualize techplot file format data using Python. the function takes in a file name. ''' fileObject=open(fileName, 'r') fileObject.next() header=fileObject.next() #remove the expresions 'variables = ' and '\n' header=header[12:-1] headerCopy=header #remove all commas, and convert to list header=header.strip().split(',') for x in xrange(len(header)): header[x]=header[x].strip(' ') header[x]=(header[x].strip("\""),'float32') fileObject.close() return header, headerCopy gsp_descr2,headerCopy=readTechPlotHeader('dedo2d_0.gsv') print gsp_descr2 gsp_descr2=N.dtype(gsp_descr2) data = read_array2('dedo2d_0.gsv', gsp_descr2) x,y,dolomite,calcite=data["x"],data["y"],data["dolomite"],data["calcite"] x=N.unique(x) y=N.unique(y) fig = plt.figure(1,figsize=(10, 6)) ax1 = fig.add_subplot(111) x=N.unique(x) y=N.unique(y) print max(dolomite) calcites=resize(calcite,(y.size,x.size)) dolomites=resize(dolomite,(y.size,x.size)) CS=ax1.pcolormesh(x,y,dolomites) ax1.set_title("dolomite [phi]") cbar = fig.colorbar(CS,ticks=[0, 0.0001, 0.00015, 0.0002]) cbar.ax.set_yticklabels(["lo", "med", "hi",'missing']) grid(True, which='minor') from matplotlib.ticker import MultipleLocator, FormatStrFormatter minorLocator = MultipleLocator(1.0) ax1.yaxis.set_minor_locator(minorLocator) ax1.xaxis.set_minor_locator(minorLocator) ax1.set_title("dolomite [phi]") savefig('minerals1.png',papertype='a4', orientation='landscape')#,bbox_inches='tight') show() The correct image is produced with: import numpy as NP from matplotlib import pyplot as PLT A = NP.random.random_integers(0, 2, 100).reshape(10, 10) print A A=A/10000.0 print A fig = PLT.figure() ax1 = fig.add_subplot(111) cax = ax1.pcolormesh(A)#, interpolation="nearest") # set the tickmarks *if* you want cutom (ie, arbitrary) tick labels: cbar = fig.colorbar(cax, ticks=[0, 0.0001, 0.0002]) # note: 'ax' is not the same as the 'axis' instance created by calling 'add_subplot' # the latter instance i bound to the variable 'ax1' to avoid confusing the two cbar.ax.set_yticklabels(["lo", "med", "hi"]) PLT.show() Thanks in advance, (If someone needs, I can directly send the data files, they are not to big, but I wanted to spare them from the list) -- Oz Nahum Graduate Student Zentrum für Angewandte Geologie Universität Tübingen --- Imagine there's no countries it isn't hard to do Nothing to kill or die for And no religion too Imagine all the people Living life in peace |
From: Markus B. <mar...@gm...> - 2010-08-10 00:45:28
|
On Aug 10, 2010, at 5:34 AM, Friedrich Romstedt wrote: > 2010/8/9 Markus Baden <mar...@gm...>: >> On my Macbook Pro I use Python 2.6 as provided by the Enthought >> Python >> Distribution. I ran into some problem with Axes3D so I decided to >> upgrade to the latest version from source. While trying that I got a >> similiar error message as discussed in >> >> http://www.mail-archive.com/mat...@li.../msg12938.html >> >> i.e. error: png.h: No such file or directory >> >> In short matplotlib could not find libpng (or png.h from that). I had >> libpng installed via fink in the usual place /sw/include etc. This >> seems to be a quite natural choice, so I wondered why matplotlib does >> not find that out of the box. Following the tips in the above post I >> looked at basedir in setupext.py For some reason the basedirs for >> darwin where commented out. Uncommenting the basedirs did the trick >> for me [1] and matplotlib happily installed with the libpng from >> fink. >> >> Hope this will help other mac users. Thanks for the great work on >> matplotlib! > > Thanks for reporting finally a working pure-setup.py installation! > > But are you sure it really works, because mixing binary-distributed > and self-compiled packages often leads to import refusal, when the > external libraries (as freetype) are compiled with a different > compiler than Python. Thanks for the warning. Not really sure. So far I have seen no problems, i.e. can happily plot. How can I make sure that I don't ran into those problems? I usually don't mix packages and just hope that the EPD guys update to Matplotlib 1.0 soon. Markus |
From: Adam G. <am...@st...> - 2010-08-10 00:04:29
|
Has anyone been able to successfully compile matplotlib in Cygwin? I would imagine so, so if you've been able to do it, please help! Not quite sure why I'm having so much trouble, but the errors from the build step are below. I think perhaps the python lists are empty (can't figure out what version of the libraries I have). Could someone please instruct me as to how to fix this? It'd be much appreciated. Thanks. $ python setup.py build basedirlist is: ['/usr/local', '/usr'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.0.0 python: 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) [GCC 4.3.4 20090804 (release) 1] platform: cygwin REQUIRED DEPENDENCIES numpy: 1.4.1 freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '/usr/include', '.', '/usr/include/freetype2', * './freetype2'. OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of * '/usr/include', '.' Traceback (most recent call last): File "setup.py", line 162, in <module> if check_for_tk() or (options['build_tkagg'] is True): File "/home/Adam/matplotlib-1.0.0/setupext.py", line 816, in check_for_tk explanation = add_tk_flags(module) File "/home/Adam/matplotlib-1.0.0/setupext.py", line 1080, in add_tk_flags result = parse_tcl_config(tcl_lib_dir, tk_lib_dir) File "/home/Adam/matplotlib-1.0.0/setupext.py", line 938, in parse_tcl_config tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:] IndexError: list index out of range |