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
(47) |
2
(13) |
3
(12) |
4
(16) |
5
(3) |
6
(6) |
7
(20) |
8
(45) |
9
(24) |
10
(30) |
11
(14) |
12
(4) |
13
(1) |
14
(6) |
15
(6) |
16
(10) |
17
(15) |
18
(13) |
19
(4) |
20
|
21
(14) |
22
(13) |
23
(9) |
24
(19) |
25
(24) |
26
|
27
(4) |
28
(20) |
29
(17) |
30
(7) |
|
|
|
From: Friedrich R. <fri...@gm...> - 2010-06-28 20:05:25
|
2010/6/28 Ranjit Chacko <rjc...@gm...>: > I just tried compiling with the following command: > sudo make -f make.osx fetch deps mpl_build mpl_install I don't know, I saw now so many people running into trouble with make.osx, would you, as a test case, please apply the following steps to your installation: First, I see that the freetype is linked in statically, but still it cannot be loaded on startup time (this _something_foobar symbol seems the first one it attemts to load). I remember that make.osx is intended for binary distributable generation, and therefore it links statically. I want to propose a different solution here. Would you please modify first your matplotlib setupext.py in the following way. We'll attemt a build without make.osx and fetch etc., but a real distutil build with dynamic linking :-) !: On the line with 'darwin' : [], add: 'darwin' : ['/usr/local'], and maybe also '/usr/X11/lib' or '/usr/X11' and let the /lib suffix alone, but I think as you installed pkg-config, it could maybe work also out of the box. For me, I were not aware of pkg-config for OS X, so I still don't have it :-). If you are not sure, simply try to run pkg-config in the console, by tab expansion, if it finds it, it's installed. I also attach the modified files for your convenience, but you should use diff because I built that time 0.99.1.2, and something may have changed by that. Then, please compile (if you did not already do that), libpng 1.4 (not 1.2!) and libfreetype2 from the official sources. Always use the following environment variables: export CC=gcc-4.2 (To not use 4.0 occasionally) export MACOSX_DEPLOYMENT_TARGET=10.5 (To avoid certain warnings which are quite annoying during build. If you attemt to use py2app for deployment on 10.3 or 10.4 you should modify of course.) It is important that you compile *all* your software which is incorporated with the same variables. Well, at least I by accident one time set _TARGET to another value after ./configure, and it refused to compile then. So, feel free to experiment, but please document properly and, most important, tell us the results! I'm still in the ascending branch of my OS X learning curve. Maybe now it's the right moment to compile Python (1.6.5, I think not 1.7) and then numpy again with this settings. For Python, use ./configure --enable-framework Then compile libfreetype2. Compile libpng 1.4 or whatever. Now it's time to compile matplotlib itself. Just use the usual flags, and, for me, it worked like a charm. But one modification has to be made: matplotlib isn't compatible with libpng 1.4 from the beginning, please add the following lines to src/_png.cpp: #define png_infopp_NULL (png_infopp)NULL #define int_p_NULL (int*)NULL Somewhere before the actual code, it doesn't matter where, but after the #include <png.cpp> of course. I also attach the file, same applies, run diff before. It's my obligation to provide a proper matplotlib patch for this issue, but for now please patch by hand. There are several reasons why to compile Python yourself: It will use the new Tcl/Tk, which is much more beautiful than the old one. It will compile with the compatible flags. Well that's it I think. If you intend to use PIL btw, you have to compile Python yourself. Now you should be done. If you run into some problems, please tell us. Friedrich |
From: Alexander D. <ale...@go...> - 2010-06-28 18:54:06
|
Hi, I hope someone can answer this colorbar related question. I have a plot, to which I am drawing a colorbar. The standard colorbar ranges from the values -1 (blue) over 0 (green) to e.g. 1(red). So far so good. But now I want to change the colorbar that it shows only the colors between 0 and 1. What I mean is: the colorbar should start at value 0 (with green) and go to 1(red), and leave the original plot unchanged. I ad some example code below to make it more clear. In the example plot created, only the values between 0 and 1 are interesting and should be shown in the colorbar, but not -1 (blue). But I want the original plot unchanged! If anyone has an idea that would be great. Cheers Alex import numpy as np import matplotlib import pylab as py f = py.figure() # create toy image im = -np.ones((100,100)) for x in range(20,80): for y in range(20,80): im[x,y] = random.random() # create imshow subplot ax = f.add_subplot(111) result = ax.imshow(im) # Create the colorbar axc, kw = matplotlib.colorbar.make_axes(ax) cb = matplotlib.colorbar.Colorbar(axc, result) # Set the colorbar result.colorbar = cb py.show() |
From: Alexander D. <Ale...@go...> - 2010-06-28 18:43:38
|
Hi, I hope someone can answer this colorbar related question. I have a plot, to which I am drawing a colorbar. The standard colorbar ranges from the values -1 (blue) over 0 (green) to e.g. 1(red). So far so good. But now I want to change the colorbar that it shows only the colors between 0 and 1. What I mean is: the colorbar should start at value 0 (with green) and go to 1(red), and leave the original plot unchanged. I ad some example code below to make it more clear. In the example plot created, only the values between 0 and 1 are interesting and should be shown in the colorbar, but not -1 (blue). But I want the original plot unchanged! If anyone has an idea that would be great. Cheers Alex import numpy as np import matplotlib import pylab as py f = py.figure() # create toy image im = -np.ones((100,100)) for x in range(20,80): for y in range(20,80): im[x,y] = random.random() # create imshow subplot ax = f.add_subplot(111) result = ax.imshow(im) # Create the colorbar axc, kw = matplotlib.colorbar.make_axes(ax) cb = matplotlib.colorbar.Colorbar(axc, result) # Set the colorbar result.colorbar = cb py.show() |
From: Martinho MA <mm...@ua...> - 2010-06-28 18:21:21
|
hummm ok, I was thinking griddata could accept 2d input ... anyway, to use mask or flat arrays is the same. I use a mask because in some cases I will find masked values I shall not use in the interpolation. Yes, griddata uses delaunay be default, but if the natgrid toolkit is installed, griddata will use it instead. And that is my case. So, now, griddata+natgrid is giving me nice results, But I am really interested in delaunay for speed reasons. With delaunay I can create the tri object and apply it to any number of variables. However I still think there is some problem with delaunay. I created another test where I simply change my target yi, adding data outside the limits. I was expecting the data inside the original data limits would not differ. But it was not the case. Actually I obtain very bad results, with great unreal discontinuities I send the tow cases attached thanks you mma Benjamin Root wrote: > The griddata function should be doing delaunay triangulation by > default, so the result from griddata should be identical to the second > plot. I see that you are using a "mask" for x0, y0, v0. This is > unnescessary, as you really want to pass the "flat" arrays. > > I can not get a masked array from griddata. Actually, I have to pass > in flat arrays to make it work at all. And the result is identical to > the second plot: > > ui = pylab.mlab.griddata(x0.flat, y0.flat, v0.flat, xi, yi) > > As to whether the result is "correct" or not, I am not qualified to > say, so I will leave that to someone else to determine. > > Ben Root > > On Sun, Jun 27, 2010 at 8:28 PM, Martinho MA <mm...@ua... > <mailto:mm...@ua...>> wrote: > > Hello, > > I need to interpolate from a 2d grid to another one. > I tryed to use griddata (with natgrid) but the returned data if > fully masked. So, I used directly delaunay triangulation and I > obtained quite bad results!! > > I send attached a small code and the output figure as png. I also > send my data as npz (32k). > To generate it just run > >>python test.py 1 > > or from python: > >import test > >test.go() > > Thanks for the help > mma > > > matplotlib.__version__ > 0.99.1 > > uname -a > Linux cxx 2.6.25.20-0.7-default #1 SMP 2010-02-26 20:32:57 +0100 > x86_64 x86_64 x86_64 GNU/Linux > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first <http://sprint.com/first> -- > http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Bill E. <ee...@ae...> - 2010-06-28 18:20:44
|
>> If you don't mind trying developer releases, use basemap 0.99.5 from >> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap>, which should >> work with numpy 1.4.1. > Success! (well, the import worked) I can also report success with the developer release. Works a treat with numpy 1.4.1. Very nice. --Bill Eaton |
From: Aman T. <ama...@gm...> - 2010-06-28 18:00:25
|
Hi, I'm currently using a scatter plot on a Basemap and I'd like to set the zorder of the individual points based on their temperature. The higher the temperature, the higher the zorder. Also, i'm using a colorbar to set the colors for the plot. Here is a snippet of my code: x = np.array(val) fig.sca(ax1) lon_0 =(urcrnrlon+llcrnrlon)/2 lat_0 =(urcrnrlat+llcrnrlat)/2 m = Basemap(llcrnrlon=llcrnrlon,llcrnrlat=llcrnrlat,urcrnrlon=urcrnrlon, urcrnrlat=urcrnrlat,resolution='i',projection='cyl',lon_0=lon_0,lat_0=lat_0) m.drawcoastlines() m.drawmapboundary() m.drawparallels(np.arange(llcrnrlat-1,urcrnrlat+1,5.)) m.drawmeridians(np.arange(llcrnrlon-1,urcrnrlon+1,5.)) m.fillcontinents(color='white',lake_color='aqua') m.drawcountries(linewidth=1) lons,lats = m(lon,lat) #I can do it this way, but this screws up the colorbar #for i in range(len(x)): # m.scatter(lons[i],lats[i],c=x[i],marker='o',picker=5,zorder=x[i]) m.scatter(lons,lats,c=x,marker='o',picker=5) plt.title('Time Range: %s to %s'%(startDay.strftime("%b-%d %H:%M"),endDay.strftime("%b-%d %H:%M"))) plt.colorbar(shrink=0.5) Is there anyway to set the zorder of the points without using the loop in commented code? Any help would be greatly appreciated. Thanks, Aman -- Aman Thakral B.Eng & Biosci, M.Eng Design |
From: Aman T. <ath...@we...> - 2010-06-28 17:56:38
|
Hi, I'm currently using a scatter plot on a Basemap and I'd like to set the zorder of the individual points based on their temperature. The higher the temperature, the higher the zorder. Also, i'm using a colorbar to set the colors for the plot. Here is a snippet of my code: x = np.array(val) fig.sca(ax1) lon_0 =(urcrnrlon+llcrnrlon)/2 lat_0 =(urcrnrlat+llcrnrlat)/2 m = Basemap(llcrnrlon=llcrnrlon,llcrnrlat=llcrnrlat,urcrnrlon=urcrnrlon, urcrnrlat=urcrnrlat,resolution='i',projection='cyl',lon_0=lon_0,lat_0=lat_0) m.drawcoastlines() m.drawmapboundary() m.drawparallels(np.arange(llcrnrlat-1,urcrnrlat+1,5.)) m.drawmeridians(np.arange(llcrnrlon-1,urcrnrlon+1,5.)) m.fillcontinents(color='white',lake_color='aqua') m.drawcountries(linewidth=1) lons,lats = m(lon,lat) #I can do it this way, but this screws up the colorbar #for i in range(len(x)): # m.scatter(lons[i],lats[i],c=x[i],marker='o',picker=5,zorder=x[i]) m.scatter(lons,lats,c=x,marker='o',picker=5) plt.title('Time Range: %s to %s'%(startDay.strftime("%b-%d %H:%M"),endDay.strftime("%b-%d %H:%M"))) plt.colorbar(shrink=0.5) Is there anyway to set the zorder of the points without using the loop in commented code? Any help would be greatly appreciated. Thanks, Aman |
From: Ranjit C. <rjc...@gm...> - 2010-06-28 17:21:45
|
I just tried compiling with the following command: sudo make -f make.osx fetch deps mpl_build mpl_install At first it was failing almost immediately, but then I changed make.osx so that it was fetching zlib-1.2.5 and it got further but still failed. The log is at the link below: http://pastebin.org/363644 On Mon, Jun 28, 2010 at 9:36 AM, Ranjit Chacko <rjc...@gm...> wrote: > I edited the make.osx file also which you can see here: > http://titanpad.com/94eSOCozk4 > > > > On Mon, Jun 28, 2010 at 9:19 AM, Ranjit Chacko <rjc...@gm...> wrote: > >> Thanks so much for your help. I really appreciate it. >> >> This is what I get when I run otool: >> ft2font.so (architecture ppc7400): >> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version >> 1.2.3) >> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current >> version 7.9.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current >> version 88.3.11) >> /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current >> version 1.0.0) >> /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version >> 47.1.0) >> ft2font.so (architecture i386): >> /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version >> 1.2.3) >> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current >> version 7.9.0) >> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current >> version 88.3.11) >> /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current >> version 1.0.0) >> >> This is the output of gcc --version: >> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) >> >> And the output of g++: >> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) >> >> I'm not really sure what the steps I followed are anymore. After things >> didn't work I just tried different things I saw described on different blogs >> or mailing list archives. >> >> I'm not sure if I used pkg-config though. I'm trying to compile matplotlib >> on 10.6. At first nothing was working, and then I downloaded Xcode again and >> checked off the option to include the 10.4 libraries, so both are present >> now. Both gcc-.40 and gcc-4.2 are present but I'm not really sure what's >> being used when. >> >> Thanks again. >> >> -Ranjit >> >> >> On Sun, Jun 27, 2010 at 2:22 PM, Friedrich Romstedt < >> fri...@gm...> wrote: >> >>> First, since you said you used pkg-config I would like to know what >>> libfreetype the ft2font.so lib is actually linked against. Can you >>> issue an otool -L ft2font.so in the matplotlib's directory? This will >>> tell you what libs are used. >>> >>> I think most important is the compiler used, but since you are on 10.4 >>> apparently, I don't know what the recent compiler for you is. Is it >>> gcc-4.0? (It seems to be.) Are there other gcc's around which could >>> have been used for the libfreetype2, or for Python itself? Can you >>> issue in a clean shell gcc --version, and it seems you used c++ as the >>> command for .cpp sources, right, so can you issue c++ --version too? >>> >>> And what were your steps to get it build from the weird errors you >>> posted before (I didn't get a clue from them). >>> >>> I don't know if I can help you but at least I can try to, right .... >>> >>> Friedrich >>> >>> 2010/6/25 Ranjit Chacko <rjc...@gm...>: >>> > I finally somehow managed to get matplotlib to compile but now when I >>> try to >>> > import matplotlib.pyplot I get the following error: >>> > >>> > ImportError: >>> > >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >>> > 2): Symbol not found: _FT_Attach_File >>> > Referenced from: >>> > >>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >>> > Expected in: dynamic lookup >>> >> >> > |
From: Benjamin R. <ben...@ou...> - 2010-06-28 17:02:55
|
Hmm, there is definitely a difference in qualiity. Thanks for the tip!/ Ben Root On Mon, Jun 28, 2010 at 11:46 AM, Eric Firing <ef...@ha...> wrote: > On 06/28/2010 04:30 AM, Benjamin Root wrote: > > Just to note, in Linux, one can use the pdf2ps command. I believe > > I recommend the pdftops command if you have it, instead of pdf2ps. At > least on my system (ubuntu 10.04), pdf2ps seems to be embedding coarse > bit-mapped versions of the fonts. The output looks pretty bad. > > Eric > > > Windows users can use GhostScript to convert a pdf into an eps file > > rather than using Illustrator for a simple conversion process. > > > > Ben Root > > > > On Sun, Jun 27, 2010 at 2:12 PM, Eric Firing <ef...@ha... > > <mailto:ef...@ha...>> wrote: > > > > On 06/27/2010 08:06 AM, Eliss Parke wrote: > > > I'm creating charts in matplotlib and saving them using > > > savefig('chart.eps'). How can I make the labels actually be text > > rather > > > than paths, which seems to be the default? (when I open the .eps > > files > > > in Illustrator, I can't edit them as text) > > > > When you say "labels", are you referring to the tick labels? > > > > If so, near the top of your script, try: > > > > import matplotlib > > matplotlib.rcParams['axes.unicode_minus'] = False > > > > Otherwise all tick labels are treated as unicode by default, and > unicode > > is rendered in the ps backend as a sequence of glyphs rather than as > a > > single text string. > > > > You might also consider using matplotlib to write pdf files instead > of > > ps. The eps format is older and more limited in its capabilities > than > > pdf. You can always convert pdf to eps as a last step, if eps is > what > > you ultimately need. I've never used Illustrator, but I presume it > can > > happily import pdf and export eps. > > > > Eric > > > > > > > > I'm using the latest matplotlib and python on Windows XP. > > > > > > Thanks > > > Eliss > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Sprint > > > What will you do first with EVO, the first 4G phone? > > > Visit sprint.com/first <http://sprint.com/first> -- > > http://p.sf.net/sfu/sprint-com-first > > > > > > > > > > > > _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > <mailto:Mat...@li...> > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first <http://sprint.com/first> -- > > http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > <mailto:Mat...@li...> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Eric F. <ef...@ha...> - 2010-06-28 16:46:38
|
On 06/28/2010 04:30 AM, Benjamin Root wrote: > Just to note, in Linux, one can use the pdf2ps command. I believe I recommend the pdftops command if you have it, instead of pdf2ps. At least on my system (ubuntu 10.04), pdf2ps seems to be embedding coarse bit-mapped versions of the fonts. The output looks pretty bad. Eric > Windows users can use GhostScript to convert a pdf into an eps file > rather than using Illustrator for a simple conversion process. > > Ben Root > > On Sun, Jun 27, 2010 at 2:12 PM, Eric Firing <ef...@ha... > <mailto:ef...@ha...>> wrote: > > On 06/27/2010 08:06 AM, Eliss Parke wrote: > > I'm creating charts in matplotlib and saving them using > > savefig('chart.eps'). How can I make the labels actually be text > rather > > than paths, which seems to be the default? (when I open the .eps > files > > in Illustrator, I can't edit them as text) > > When you say "labels", are you referring to the tick labels? > > If so, near the top of your script, try: > > import matplotlib > matplotlib.rcParams['axes.unicode_minus'] = False > > Otherwise all tick labels are treated as unicode by default, and unicode > is rendered in the ps backend as a sequence of glyphs rather than as a > single text string. > > You might also consider using matplotlib to write pdf files instead of > ps. The eps format is older and more limited in its capabilities than > pdf. You can always convert pdf to eps as a last step, if eps is what > you ultimately need. I've never used Illustrator, but I presume it can > happily import pdf and export eps. > > Eric > > > > > I'm using the latest matplotlib and python on Windows XP. > > > > Thanks > > Eliss > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first <http://sprint.com/first> -- > http://p.sf.net/sfu/sprint-com-first > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > <mailto:Mat...@li...> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first <http://sprint.com/first> -- > http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Benjamin R. <ben...@ou...> - 2010-06-28 16:24:51
|
The griddata function should be doing delaunay triangulation by default, so the result from griddata should be identical to the second plot. I see that you are using a "mask" for x0, y0, v0. This is unnescessary, as you really want to pass the "flat" arrays. I can not get a masked array from griddata. Actually, I have to pass in flat arrays to make it work at all. And the result is identical to the second plot: ui = pylab.mlab.griddata(x0.flat, y0.flat, v0.flat, xi, yi) As to whether the result is "correct" or not, I am not qualified to say, so I will leave that to someone else to determine. Ben Root On Sun, Jun 27, 2010 at 8:28 PM, Martinho MA <mm...@ua...> wrote: > Hello, > > I need to interpolate from a 2d grid to another one. > I tryed to use griddata (with natgrid) but the returned data if fully > masked. So, I used directly delaunay triangulation and I obtained quite bad > results!! > > I send attached a small code and the output figure as png. I also send my > data as npz (32k). > To generate it just run > >>python test.py 1 > > or from python: > >import test > >test.go() > > Thanks for the help > mma > > > matplotlib.__version__ > 0.99.1 > > uname -a > Linux cxx 2.6.25.20-0.7-default #1 SMP 2010-02-26 20:32:57 +0100 x86_64 > x86_64 x86_64 GNU/Linux > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: C M <cmp...@gm...> - 2010-06-28 16:09:06
|
On Mon, Jun 28, 2010 at 11:31 AM, Jim Vickroy <Jim...@no...> wrote: > Carlos Grohmann wrote: > > I've been searching but coudn't find any example on how to add a > progress bar to a wxpython+matplotlib app. > I'd like my app to show a progress bar while some gridding and > contouring are being done. Or, if you don't want a separate dialog popping up, just use wx.Gauge--it is a progress bar, and you can choose to put it near (maybe under) your plot in the layout. Che |
From: Jim V. <Jim...@no...> - 2010-06-28 15:31:13
|
Carlos Grohmann wrote: > I've been searching but coudn't find any example on how to add a > progress bar to a wxpython+matplotlib app. > I'd like my app to show a progress bar while some gridding and > contouring are being done. > > this is the code I'm using (without preogress bar) > > > funcs = {"Natural Neighbor":'nn', > "Triangulation":'linear',"Multiquadric":'multiquadric',"Inverse > Multiquadric":'inverse multiquadric',"Gaussian":'gaussian',"Linear > RBF":'linear',"Cubic":'cubic',"Quintic":'quintic',"Thin-plate > Spline":'thin-plate'} > > # check what kind of interpolation are we using > if interp == 'Natural Neighbor' or interp == 'Triangulation': # > Delaunay-based (mlab) > xi = yi = np.linspace(-1.1,1.1,ngrid) > zi = griddata(node_x,node_y,z,xi,yi,interp=funcs[interp]) > else: # Radial basis functions (scipy) > ti = np.linspace(-1.1,1.1,ngrid) > xi, yi = np.meshgrid(ti, ti) > rbf = Rbf(node_x, node_y, z, > function=funcs[interp],epsilon=epsilon,smooth=smoothing) > zi = rbf(xi, yi) > > ## we only want the points that lie inside the circle, > ## so we have to create a polygon to select the interpolated values > polyXY = [] > u = np.arange(0,361,1) > t = np.radians(u) > x = np.cos(t) > y = np.sin(t) > polyXY.append(zip(x,y)) > verts = np.array(polyXY) > verts = verts[0] > xyflat = zip(xi.flat,yi.flat) > pmask = points_inside_poly(xyflat, verts) > pmask2 = np.reshape(pmask,(ngrid,ngrid)) > zmask = ma.masked_where(pmask2==False,zi) > zi = zmask > > axes.contour(xi,yi,zi) > > > TIA > Carlos > > > Hello Carlos, Is the wx ProgressDialog class not suitable for your application? -- jv |
From: Carlos G. <car...@gm...> - 2010-06-28 15:03:14
|
I've been searching but coudn't find any example on how to add a progress bar to a wxpython+matplotlib app. I'd like my app to show a progress bar while some gridding and contouring are being done. this is the code I'm using (without preogress bar) funcs = {"Natural Neighbor":'nn', "Triangulation":'linear',"Multiquadric":'multiquadric',"Inverse Multiquadric":'inverse multiquadric',"Gaussian":'gaussian',"Linear RBF":'linear',"Cubic":'cubic',"Quintic":'quintic',"Thin-plate Spline":'thin-plate'} # check what kind of interpolation are we using if interp == 'Natural Neighbor' or interp == 'Triangulation': # Delaunay-based (mlab) xi = yi = np.linspace(-1.1,1.1,ngrid) zi = griddata(node_x,node_y,z,xi,yi,interp=funcs[interp]) else: # Radial basis functions (scipy) ti = np.linspace(-1.1,1.1,ngrid) xi, yi = np.meshgrid(ti, ti) rbf = Rbf(node_x, node_y, z, function=funcs[interp],epsilon=epsilon,smooth=smoothing) zi = rbf(xi, yi) ## we only want the points that lie inside the circle, ## so we have to create a polygon to select the interpolated values polyXY = [] u = np.arange(0,361,1) t = np.radians(u) x = np.cos(t) y = np.sin(t) polyXY.append(zip(x,y)) verts = np.array(polyXY) verts = verts[0] xyflat = zip(xi.flat,yi.flat) pmask = points_inside_poly(xyflat, verts) pmask2 = np.reshape(pmask,(ngrid,ngrid)) zmask = ma.masked_where(pmask2==False,zi) zi = zmask axes.contour(xi,yi,zi) TIA Carlos -- Prof. Carlos Henrique Grohmann - Geologist D.Sc. Institute of Geosciences - Univ. of São Paulo, Brazil http://www.igc.usp.br/pessoais/guano http://lattes.cnpq.br/5846052449613692 Linux User #89721 ________________ Can’t stop the signal. |
From: Benjamin R. <ben...@ou...> - 2010-06-28 14:31:12
|
Just to note, in Linux, one can use the pdf2ps command. I believe Windows users can use GhostScript to convert a pdf into an eps file rather than using Illustrator for a simple conversion process. Ben Root On Sun, Jun 27, 2010 at 2:12 PM, Eric Firing <ef...@ha...> wrote: > On 06/27/2010 08:06 AM, Eliss Parke wrote: > > I'm creating charts in matplotlib and saving them using > > savefig('chart.eps'). How can I make the labels actually be text rather > > than paths, which seems to be the default? (when I open the .eps files > > in Illustrator, I can't edit them as text) > > When you say "labels", are you referring to the tick labels? > > If so, near the top of your script, try: > > import matplotlib > matplotlib.rcParams['axes.unicode_minus'] = False > > Otherwise all tick labels are treated as unicode by default, and unicode > is rendered in the ps backend as a sequence of glyphs rather than as a > single text string. > > You might also consider using matplotlib to write pdf files instead of > ps. The eps format is older and more limited in its capabilities than > pdf. You can always convert pdf to eps as a last step, if eps is what > you ultimately need. I've never used Illustrator, but I presume it can > happily import pdf and export eps. > > Eric > > > > > I'm using the latest matplotlib and python on Windows XP. > > > > Thanks > > Eliss > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Dr. D. K. <dav...@on...> - 2010-06-28 12:47:46
|
On 06/28/10 01:37 PM, Michael Droettboom wrote: > There is a set of nose tests installed in matplotlib.tests. It can be > invoked with: > > import matplotlib > matplotlib.test() > > or (from the commandline): > > nosetests matplotlib.tests > > Mike Thank you Mike. We don't have 'nosetests' as a part of Sage, but it should be possible to write a script which just executes the first two lines. I'll add that to Sage so we can run the matplotlib test suite. Dave > On 06/27/2010 08:24 AM, Dr. David Kirkby wrote: >> Matplotlib is used as part of the Sage project, where we aim to run test-suites >> that are part of upstream packages where possible. Someone suggested it would be >> good if we did that for Matplotlib, which we currently do not do. However, on >> reading the contents of the source directory (README.txt, INSTALL etc) I could >> not find any reference to how to test Matplotlib. >> >> Is there such a test suite, and if so how does one invoke it? >> >> Dave >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > |
From: Michael D. <md...@st...> - 2010-06-28 12:37:14
|
There is a set of nose tests installed in matplotlib.tests. It can be invoked with: import matplotlib matplotlib.test() or (from the commandline): nosetests matplotlib.tests Mike On 06/27/2010 08:24 AM, Dr. David Kirkby wrote: > Matplotlib is used as part of the Sage project, where we aim to run test-suites > that are part of upstream packages where possible. Someone suggested it would be > good if we did that for Matplotlib, which we currently do not do. However, on > reading the contents of the source directory (README.txt, INSTALL etc) I could > not find any reference to how to test Matplotlib. > > Is there such a test suite, and if so how does one invoke it? > > Dave > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
From: Martinho MA <mm...@ua...> - 2010-06-28 01:28:44
|
Hello, I need to interpolate from a 2d grid to another one. I tryed to use griddata (with natgrid) but the returned data if fully masked. So, I used directly delaunay triangulation and I obtained quite bad results!! I send attached a small code and the output figure as png. I also send my data as npz (32k). To generate it just run >>python test.py 1 or from python: >import test >test.go() Thanks for the help mma matplotlib.__version__ 0.99.1 uname -a Linux cxx 2.6.25.20-0.7-default #1 SMP 2010-02-26 20:32:57 +0100 x86_64 x86_64 x86_64 GNU/Linux |
From: Friedrich R. <fri...@gm...> - 2010-06-27 21:22:33
|
First, since you said you used pkg-config I would like to know what libfreetype the ft2font.so lib is actually linked against. Can you issue an otool -L ft2font.so in the matplotlib's directory? This will tell you what libs are used. I think most important is the compiler used, but since you are on 10.4 apparently, I don't know what the recent compiler for you is. Is it gcc-4.0? (It seems to be.) Are there other gcc's around which could have been used for the libfreetype2, or for Python itself? Can you issue in a clean shell gcc --version, and it seems you used c++ as the command for .cpp sources, right, so can you issue c++ --version too? And what were your steps to get it build from the weird errors you posted before (I didn't get a clue from them). I don't know if I can help you but at least I can try to, right .... Friedrich 2010/6/25 Ranjit Chacko <rjc...@gm...>: > I finally somehow managed to get matplotlib to compile but now when I try to > import matplotlib.pyplot I get the following error: > > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, > 2): Symbol not found: _FT_Attach_File > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so > Expected in: dynamic lookup |
From: Eric F. <ef...@ha...> - 2010-06-27 19:12:43
|
On 06/27/2010 08:06 AM, Eliss Parke wrote: > I'm creating charts in matplotlib and saving them using > savefig('chart.eps'). How can I make the labels actually be text rather > than paths, which seems to be the default? (when I open the .eps files > in Illustrator, I can't edit them as text) When you say "labels", are you referring to the tick labels? If so, near the top of your script, try: import matplotlib matplotlib.rcParams['axes.unicode_minus'] = False Otherwise all tick labels are treated as unicode by default, and unicode is rendered in the ps backend as a sequence of glyphs rather than as a single text string. You might also consider using matplotlib to write pdf files instead of ps. The eps format is older and more limited in its capabilities than pdf. You can always convert pdf to eps as a last step, if eps is what you ultimately need. I've never used Illustrator, but I presume it can happily import pdf and export eps. Eric > > I'm using the latest matplotlib and python on Windows XP. > > Thanks > Eliss > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Eliss P. <eli...@gm...> - 2010-06-27 18:06:43
|
I'm creating charts in matplotlib and saving them using savefig('chart.eps'). How can I make the labels actually be text rather than paths, which seems to be the default? (when I open the .eps files in Illustrator, I can't edit them as text) I'm using the latest matplotlib and python on Windows XP. Thanks Eliss |
From: Dr. D. K. <dav...@on...> - 2010-06-27 12:49:23
|
Matplotlib is used as part of the Sage project, where we aim to run test-suites that are part of upstream packages where possible. Someone suggested it would be good if we did that for Matplotlib, which we currently do not do. However, on reading the contents of the source directory (README.txt, INSTALL etc) I could not find any reference to how to test Matplotlib. Is there such a test suite, and if so how does one invoke it? Dave |
From: Benjamin R. <ben...@ou...> - 2010-06-25 20:46:12
|
Oh, wait a minute, you are doing a Frameworks install on a Mac. I think there are others here that might be able to comment on Mac installs. Ben On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko <rjc...@gm...> wrote: > Hi Ben, > > Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib > developer wiki doesn't turn up anything. There isn't anything in the > ~/.matplotlib directory. I just went ahead and recompiled numpy and > matplotlib, and got the same error. > > -Ranjit > > > On Fri, Jun 25, 2010 at 12:59 PM, Benjamin Root <ben...@ou...> wrote: > >> Ranjit, >> >> There are a couple of possibilities. The first is that the TrueType fonts >> packages weren't detected during the build, so matplotlib compiled without >> it, leading to your issue. I have also seen an issue where your >> ~/.matplotlib/ needs to be cleaned out of font-related files. Another >> possibility has to do with building both numpy and matplotlib. I have found >> that if I update the numpy source code and rebuild it, then I have to >> rebuild matplotlib. Now that you managed to get a complete build. I would >> go back and completely eliminate the build directories of matplotlib (and >> numpy, if you have it), and rebuild. Build numpy first if you have that >> from source, and then build matplotlib. >> >> So, first double-check your TrueType Font packages and see if you comply >> with the dependencies listed on the developer wiki. If so, then check your >> .matplotlib directory for any fontCache files and remove it. Lastly, do a >> complete clean and rebuild of matplotlib (the cleaning part is very >> important). >> >> I hope that helps, >> Ben Root >> >> On Fri, Jun 25, 2010 at 11:56 AM, Ranjit Chacko <rjc...@gm...>wrote: >> >>> I finally somehow managed to get matplotlib to compile but now when I try >>> to import matplotlib.pyplot I get the following error: >>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> AttributeError: 'module' object has no attribute 'pyplot' >>> >>> from matplotlib import pyplot as plot >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", >>> line 6, in <module> >>> from matplotlib.figure import Figure, figaspect >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", >>> line 18, in <module> >>> from axes import Axes, SubplotBase, subplot_class_factory >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", >>> line 12, in <module> >>> import matplotlib.axis as maxis >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", >>> line 10, in <module> >>> import matplotlib.font_manager as font_manager >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", >>> line 52, in <module> >>> from matplotlib import ft2font >>> ImportError: >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >>> 2): Symbol not found: _FT_Attach_File >>> Referenced from: >>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >>> Expected in: dynamic lookup >>> >>> What is going wrong here? >>> >>> Thanks, >>> >>> -Ranjit >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > |
From: Benjamin R. <ben...@ou...> - 2010-06-25 20:44:49
|
Sorry, it isn't a developer wiki (numpy and scipy have that...). But here are the requirements to make sure that they are installed. http://matplotlib.sourceforge.net/users/installing.html#build-requirements Ben Root On Fri, Jun 25, 2010 at 3:31 PM, Ranjit Chacko <rjc...@gm...> wrote: > Hi Ben, > > Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib > developer wiki doesn't turn up anything. There isn't anything in the > ~/.matplotlib directory. I just went ahead and recompiled numpy and > matplotlib, and got the same error. > > -Ranjit > > > On Fri, Jun 25, 2010 at 12:59 PM, Benjamin Root <ben...@ou...> wrote: > >> Ranjit, >> >> There are a couple of possibilities. The first is that the TrueType fonts >> packages weren't detected during the build, so matplotlib compiled without >> it, leading to your issue. I have also seen an issue where your >> ~/.matplotlib/ needs to be cleaned out of font-related files. Another >> possibility has to do with building both numpy and matplotlib. I have found >> that if I update the numpy source code and rebuild it, then I have to >> rebuild matplotlib. Now that you managed to get a complete build. I would >> go back and completely eliminate the build directories of matplotlib (and >> numpy, if you have it), and rebuild. Build numpy first if you have that >> from source, and then build matplotlib. >> >> So, first double-check your TrueType Font packages and see if you comply >> with the dependencies listed on the developer wiki. If so, then check your >> .matplotlib directory for any fontCache files and remove it. Lastly, do a >> complete clean and rebuild of matplotlib (the cleaning part is very >> important). >> >> I hope that helps, >> Ben Root >> >> On Fri, Jun 25, 2010 at 11:56 AM, Ranjit Chacko <rjc...@gm...>wrote: >> >>> I finally somehow managed to get matplotlib to compile but now when I try >>> to import matplotlib.pyplot I get the following error: >>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> AttributeError: 'module' object has no attribute 'pyplot' >>> >>> from matplotlib import pyplot as plot >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", >>> line 6, in <module> >>> from matplotlib.figure import Figure, figaspect >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", >>> line 18, in <module> >>> from axes import Axes, SubplotBase, subplot_class_factory >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", >>> line 12, in <module> >>> import matplotlib.axis as maxis >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", >>> line 10, in <module> >>> import matplotlib.font_manager as font_manager >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", >>> line 52, in <module> >>> from matplotlib import ft2font >>> ImportError: >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >>> 2): Symbol not found: _FT_Attach_File >>> Referenced from: >>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >>> Expected in: dynamic lookup >>> >>> What is going wrong here? >>> >>> Thanks, >>> >>> -Ranjit >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > |
From: Ranjit C. <rjc...@gm...> - 2010-06-25 20:31:42
|
Hi Ben, Thanks for the tips. How do I check the TrueType fonts? Googling matplotlib developer wiki doesn't turn up anything. There isn't anything in the ~/.matplotlib directory. I just went ahead and recompiled numpy and matplotlib, and got the same error. -Ranjit On Fri, Jun 25, 2010 at 12:59 PM, Benjamin Root <ben...@ou...> wrote: > Ranjit, > > There are a couple of possibilities. The first is that the TrueType fonts > packages weren't detected during the build, so matplotlib compiled without > it, leading to your issue. I have also seen an issue where your > ~/.matplotlib/ needs to be cleaned out of font-related files. Another > possibility has to do with building both numpy and matplotlib. I have found > that if I update the numpy source code and rebuild it, then I have to > rebuild matplotlib. Now that you managed to get a complete build. I would > go back and completely eliminate the build directories of matplotlib (and > numpy, if you have it), and rebuild. Build numpy first if you have that > from source, and then build matplotlib. > > So, first double-check your TrueType Font packages and see if you comply > with the dependencies listed on the developer wiki. If so, then check your > .matplotlib directory for any fontCache files and remove it. Lastly, do a > complete clean and rebuild of matplotlib (the cleaning part is very > important). > > I hope that helps, > Ben Root > > On Fri, Jun 25, 2010 at 11:56 AM, Ranjit Chacko <rjc...@gm...>wrote: > >> I finally somehow managed to get matplotlib to compile but now when I try >> to import matplotlib.pyplot I get the following error: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> AttributeError: 'module' object has no attribute 'pyplot' >> >>> from matplotlib import pyplot as plot >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py", >> line 6, in <module> >> from matplotlib.figure import Figure, figaspect >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py", >> line 18, in <module> >> from axes import Axes, SubplotBase, subplot_class_factory >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py", >> line 12, in <module> >> import matplotlib.axis as maxis >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", >> line 10, in <module> >> import matplotlib.font_manager as font_manager >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", >> line 52, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, >> 2): Symbol not found: _FT_Attach_File >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so >> Expected in: dynamic lookup >> >> What is going wrong here? >> >> Thanks, >> >> -Ranjit >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |