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
(2) |
|
2
(4) |
3
(16) |
4
(4) |
5
(15) |
6
(16) |
7
(6) |
8
(4) |
|
9
(9) |
10
(5) |
11
(8) |
12
(14) |
13
(19) |
14
(21) |
15
(8) |
|
16
(6) |
17
(10) |
18
(22) |
19
(15) |
20
(7) |
21
(21) |
22
(1) |
|
23
(6) |
24
(16) |
25
(12) |
26
(11) |
27
(27) |
28
(7) |
29
|
|
30
(4) |
31
(5) |
|
|
|
|
|
|
From: Tim B. <tim...@ma...> - 2011-01-18 07:11:18
|
Thanks, Paul! A bit of tweaking in my actual app but it now works beautifully! On 18/01/2011, at 4:08 PM, Paul Ivanov wrote: > Tim Burgess, on 2011-01-18 13:32, wrote: >> I'm generating images that I want to use as overlays in Google >> Earth. Thus, I would like the masked portion of the numpy >> arrays I am using to appear as transparent. However, I seem to >> consistently get white instead of a transparent point. >> >> To clarify the issue, I wrote this short piece of code. I am >> setting both the figure background to transaprent and the >> masked value to transparent but I get white. >> >> I have pulled the current svn code and built matplotlib. I get >> the same issue. >> >> from numpy import ma >> import matplotlib.pyplot as plt >> from pylab import colorbar, imshow, show, cm >> >> >> def main(): >> a = ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]]) >> fig = plt.figure() >> fig.patch.set_alpha(0.0) >> cmap = cm.jet >> cmap.set_bad(alpha=0.0) >> imshow(a, interpolation='nearest', cmap=cmap) >> colorbar() >> show() > > Hi Tim, > > sorry to hear of your troubles - add these two lines to get your > desired effect: > > ax = plt.gca() > ax.patch.set_alpha(0.0) > > The figure has a patch associated with it, but so does each axes > subplot, which is what you were seeing through the transparent > portion of your masked array image. > > best, > -- > Paul Ivanov > 314 address only used for lists, off-list direct email at: > http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Paul I. <piv...@gm...> - 2011-01-18 06:08:29
|
Tim Burgess, on 2011-01-18 13:32, wrote: > I'm generating images that I want to use as overlays in Google > Earth. Thus, I would like the masked portion of the numpy > arrays I am using to appear as transparent. However, I seem to > consistently get white instead of a transparent point. > > To clarify the issue, I wrote this short piece of code. I am > setting both the figure background to transaprent and the > masked value to transparent but I get white. > > I have pulled the current svn code and built matplotlib. I get > the same issue. > > from numpy import ma > import matplotlib.pyplot as plt > from pylab import colorbar, imshow, show, cm > > > def main(): > a = ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]]) > fig = plt.figure() > fig.patch.set_alpha(0.0) > cmap = cm.jet > cmap.set_bad(alpha=0.0) > imshow(a, interpolation='nearest', cmap=cmap) > colorbar() > show() Hi Tim, sorry to hear of your troubles - add these two lines to get your desired effect: ax = plt.gca() ax.patch.set_alpha(0.0) The figure has a patch associated with it, but so does each axes subplot, which is what you were seeing through the transparent portion of your masked array image. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Tim B. <tim...@ma...> - 2011-01-18 03:29:17
|
I'm generating images that I want to use as overlays in Google Earth. Thus, I would like the masked portion of the numpy arrays I am using to appear as transparent. However, I seem to consistently get white instead of a transparent point. To clarify the issue, I wrote this short piece of code. I am setting both the figure background to transaprent and the masked value to transparent but I get white. I have pulled the current svn code and built matplotlib. I get the same issue. from numpy import ma import matplotlib.pyplot as plt from pylab import colorbar, imshow, show, cm def main(): a = ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]]) fig = plt.figure() fig.patch.set_alpha(0.0) cmap = cm.jet cmap.set_bad(alpha=0.0) imshow(a, interpolation='nearest', cmap=cmap) colorbar() show() Any thoughts? Tim B |
|
From: Mike M. <mmu...@py...> - 2011-01-17 20:29:28
|
Scientific Python Tools not only for Scientists and Engineers ============================================================= This is the title of my three-hour tutorial at PyCon US: http://us.pycon.org/2011/schedule/sessions/164/ It is a compressed version of my much longer course about: * NumPy * SciPy * matplotlib/IPython * extensions with C and Fortran So if your are new to these tools and go to PyCon, you might consider taking the tutorial. Also, if you know somebody who would likely be interested in this tutorial, please spread the word. Thanks. Mike -- Mike Müller mmu...@py... |
|
From: Ryan M. <rm...@gm...> - 2011-01-17 18:44:13
|
On Mon, Jan 17, 2011 at 11:35 AM, Eric Firing <ef...@ha...> wrote: > On 01/17/2011 05:42 AM, Bala subramanian wrote: >> Friends, >> I have created a figure (with two rows and two columns) and i drew four >> contourf plots (A,B,C,D etc). All the four contourf has the same >> coloring and bounds. I do not want to draw a colorbar() for each of the >> plots separately but only one colorbar at the bottom of the four >> plots.Something like the following scheme. >> >> plot1 plot2 >> plot3 plot4 >> colorbar >> >> I tried using mpl.colorbar.ColorbarBase as given in >> http://matplotlib.sourceforge.net/examples/api/colorbar_only.html >> example to draw the colorbar. However i find the colorbar that is >> created is overlapping over the plots. Kindly let me know what is the >> correct way of adjuting its location and size or any other way to create >> this colorbar. > > You should not ordinarily need to use ColorbarBase. For something like > what you are describing, see > > http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html Well, I learned something today. I had always been turning to ColorbarBase for cases like this. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
|
From: Eric F. <ef...@ha...> - 2011-01-17 17:35:59
|
On 01/17/2011 05:42 AM, Bala subramanian wrote: > Friends, > I have created a figure (with two rows and two columns) and i drew four > contourf plots (A,B,C,D etc). All the four contourf has the same > coloring and bounds. I do not want to draw a colorbar() for each of the > plots separately but only one colorbar at the bottom of the four > plots.Something like the following scheme. > > plot1 plot2 > plot3 plot4 > colorbar > > I tried using mpl.colorbar.ColorbarBase as given in > http://matplotlib.sourceforge.net/examples/api/colorbar_only.html > example to draw the colorbar. However i find the colorbar that is > created is overlapping over the plots. Kindly let me know what is the > correct way of adjuting its location and size or any other way to create > this colorbar. You should not ordinarily need to use ColorbarBase. For something like what you are describing, see http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html Eric > > My code is attached with this mail. > > Thanks, > Bala > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Paul I. <piv...@gm...> - 2011-01-17 16:56:56
|
Hi Bala, Bala subramanian, on 2011-01-17 16:42, wrote: > I have created a figure (with two rows and two columns) and i drew four > contourf plots (A,B,C,D etc). All the four contourf has the same coloring > and bounds. I do not want to draw a colorbar() for each of the plots > separately but only one colorbar at the bottom of the four plots.Something > like the following scheme. > > plot1 plot2 > plot3 plot4 > colorbar Here's one way of getting the type of plot you want. I just incremented NROW by one, and for the colorbar axes creation, changed it to be: ax5=FIG.add_subplot(NROW,1,NROW) which is a quick way to get the last row to span both columns. (I had to comment some things out to get the plot to run without needing the data). > I tried using mpl.colorbar.ColorbarBase as given in > http://matplotlib.sourceforge.net/examples/api/colorbar_only.html example to > draw the colorbar. However i find the colorbar that is created is > overlapping over the plots. Kindly let me know what is the correct way of > adjuting its location and size or any other way to create this colorbar. There, the axes are created to not overlap by hand tuning the rectangle parameters passed (left, bottom, width, top). You can get the same using the trick I used above, or get more sophisticated combinations using GridSpec [1], or if you want to get even fancier, with the AxesGrid toolkit [2] 1. http://matplotlib.sourceforge.net/users/gridspec.html 2. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html#toolkit-axes best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Bala s. <bal...@gm...> - 2011-01-17 15:43:53
|
Friends,
I have created a figure (with two rows and two columns) and i drew four
contourf plots (A,B,C,D etc). All the four contourf has the same coloring
and bounds. I do not want to draw a colorbar() for each of the plots
separately but only one colorbar at the bottom of the four plots.Something
like the following scheme.
plot1 plot2
plot3 plot4
colorbar
I tried using mpl.colorbar.ColorbarBase as given in
http://matplotlib.sourceforge.net/examples/api/colorbar_only.html example to
draw the colorbar. However i find the colorbar that is created is
overlapping over the plots. Kindly let me know what is the correct way of
adjuting its location and size or any other way to create this colorbar.
My code is attached with this mail.
Thanks,
Bala
|
|
From: Alex S <sch...@gm...> - 2011-01-17 15:32:05
|
Thank you very much for the help, I'm sorry I didn't reply to you. I ended up doing what you recommend against, which is I took my fontlist.cache and copied it to the other computers C:\Documents and Settings\username\.matplotlib folder. This worked, maybe because all the computers here have the same font that for some reason didn't get included in the fontlist for everyone else. I know it's not perfect and that if I tried to get the program to work for anyone outside of work it would probably crash horribly, but it works now so I think I'll just leave it. Thank you very much Mike, you might not remember but you were the one that taught me how to get it into New Century Schoolbook in the first place. http://old.nabble.com/Changing-the-font-td28111472.html#a28118916 Here it is , for old times sake. Michael Droettboom-3 wrote: > > On 01/13/2011 11:38 AM, Alex S wrote: >> Hi there, >> I've made a program that makes plots using New Century Schoolbook Lt Std >> font. I did this by inserting this into the matplotlibrc file: >> >> font.family : New Century Schoolbook LT Std # serif #sans-serif >> >> There's also a "fontlist.cache" file that I think points to it when it >> says: >> >> . >> . >> . >> (dp283 >> g12 >> g45 >> sg14 >> S'New Century Schoolbook LT Std' >> p284 >> sg16 >> I400 >> sg17 >> g13 >> sg18 >> . >> . >> . >> >> This all works fine on my computer. But I'm trying to make it run on >> other >> people's computers (off a network drive) but when I do the plots all go >> back >> into Ariel font and all the spacing and stuff gets screwed up. Running >> the >> exact same exe from the same place, my computer continues to make them >> with >> the correct font. I have copied the matplotlibrc file and the >> fontlist.cache file from my hard drive (C:...Matplotlib) to the mpl-data >> folder in the dist folder (from py2exe) but that didn't work. >> >> Does anyone have any ideas for fixing this stuff? I think it might just >> be >> a matter of including the right files in the Py2Exe setup file but I >> don't >> know which ones. Or maybe changing how I select the font, which was a >> roundabout way of doing it from the start. > The fontList.cache file maps from the properties (names, weights, > slants) etc. of the fonts available on a particular system to their file > path. You should definitely not ship this file with the exe, but rather > allow it to be regenerated from scratch on each system, since the > selection and locations of fonts is very likely to be different. > > I think "New Century Schoolbook" is one of the fonts that ships with > Windows, so you can probably count on it being there. If not, you need > to ship the font as part of the exe by adding it to mpl-data/fonts/ttf > and then following the instructions to include the fonts given here: > > http://www.py2exe.org/index.cgi/MatPlotLib >> When I run the plots >> (successfully on my computer) it says this at one point: >> >> c:\Python26\lib\site-packages\matplotlib\backends\backend_pdf.py:982: >> UserWarning: 'newcenturyschlbkltstd-roman.otf' can not be subsetted into >> a >> Type 3 font. The entire font will be embedded in the output. >> >> Maybe that has somethign to do with what's going on? >> > I don't think that's related. All this means is that when it embeds the > font into the PDF file, it has to embed the entire thing rather than > only the characters that are being used. (Resulting in a larger PDF > file, but otherwise fine.) To avoid this message, you can set the > rcParam "pdf.fonttype" to 42. > > Cheers, > Mike >> >> >> Thanks a lot, >> Alex >> > > > -- > Michael Droettboom > Science Software Branch > Space Telescope Science Institute > Baltimore, Maryland, USA > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/Font-not-carrying-through-Py2Exe-tp30663871p30676209.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: <ren...@po...> - 2011-01-17 15:20:52
|
Hello John As you update legend.py with draggable() function, how can create my draggable legend with old version of matplotlib as if use ax.legend(), it always gives me None so I cann't use Adam Fraser's code Draggable(ax.legend()) class. Regards, Renfan With Alstom, preserve the environment. Is printing this email really necessary ? :._______________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. |
|
From: Uri L. <las...@mi...> - 2011-01-17 08:39:13
|
For convenience of use, I implemented three simple scales. I have not yet tested it rigorously, but the usage is similar to protovis scales. https://github.com/laserson/pytools/blob/master/scale.py Uri ................................................................................... Uri Laserson Graduate Student, Biomedical Engineering Harvard-MIT Division of Health Sciences and Technology M +1 917 742 8019 las...@mi... On Sun, Jan 16, 2011 at 21:23, Paul Ivanov <piv...@gm...> wrote: > Uri Laserson, on 2011-01-16 17:41, wrote: > > Hi all, > > > > Does there already exist some python implementation (in MPL or other) of > an > > easy-to-use 1D scale transformation? This is something analogous to > > processing's map function or protovis's scale functionality. It would > work > > something like: > > > > s = linear().domain(5,100).range(13000,15000) > > > > or > > > > s = root(p=5).domain(0.1,0.6).range(0,1) > > > > There could be multiple versions, including linear, log, symlog, root > > (power), discrete, etc. > > Hi Uri, > > I think that the closest we have matplotlib is > matplotlib.colors.Normalize[1] and matplotlib.colors.LogNorm[2], but > both of these have a fixed range of the 0-1 (which is the reason > they are in colors). Both of these do end up with an inverse > method that you could leverage to get an arbitrary range, though. > > 1. > http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.Normalize > 2. > http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.LogNorm > > -- > Paul Ivanov > 314 address only used for lists, off-list direct email at: > http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAk0zqBAACgkQe+cmRQ8+KPcfSwCdGJp3J4uENsx11VMKAJdxkLEG > SEMAn1qqBYY8G6M1bcsfl7+7yc3doKiw > =x2vj > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: mdekauwe <mde...@gm...> - 2011-01-17 06:14:06
|
Hi from what I can see if I call fig.autofmt_xdate() with a the twinx command the xaxis labels do not roatate as you might expect. There seem to be a few threads on this e.g. http://old.nabble.com/autofmt_xdate()-broken-for-twinx()-p30248577.html However does anyone know a workaround until there is a later version available? Much appreciated, Martin -- View this message in context: http://old.nabble.com/autofmt_xdate-and-twinx--tp30676174p30676174.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Paul I. <piv...@gm...> - 2011-01-17 02:23:56
|
Uri Laserson, on 2011-01-16 17:41, wrote: > Hi all, > > Does there already exist some python implementation (in MPL or other) of an > easy-to-use 1D scale transformation? This is something analogous to > processing's map function or protovis's scale functionality. It would work > something like: > > s = linear().domain(5,100).range(13000,15000) > > or > > s = root(p=5).domain(0.1,0.6).range(0,1) > > There could be multiple versions, including linear, log, symlog, root > (power), discrete, etc. Hi Uri, I think that the closest we have matplotlib is matplotlib.colors.Normalize[1] and matplotlib.colors.LogNorm[2], but both of these have a fixed range of the 0-1 (which is the reason they are in colors). Both of these do end up with an inverse method that you could leverage to get an arbitrary range, though. 1. http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.Normalize 2. http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.LogNorm -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Uri L. <las...@mi...> - 2011-01-16 22:41:31
|
Hi all, Does there already exist some python implementation (in MPL or other) of an easy-to-use 1D scale transformation? This is something analogous to processing's map function or protovis's scale functionality. It would work something like: s = linear().domain(5,100).range(13000,15000) or s = root(p=5).domain(0.1,0.6).range(0,1) There could be multiple versions, including linear, log, symlog, root (power), discrete, etc. Thanks! Uri ................................................................................... Uri Laserson Graduate Student, Biomedical Engineering Harvard-MIT Division of Health Sciences and Technology M +1 917 742 8019 las...@mi... |
|
From: Drew S. <dre...@gm...> - 2011-01-16 21:15:16
|
Ben, Sorry to take so long getting back. I found a solution. Perhaps not the best one but I discovered that using close() after a show() or save() worked for me. Stumbled across it a day or two after posting. Drew Benjamin Root-2 wrote: > > On Mon, Jan 3, 2011 at 11:36 AM, Drew Stokes <dre...@gm...> > wrote: > >> >> Hi, >> I'm very new to Matplotlib and python but I ma getting excellent results >> in >> what I am trying to achieve. That said I have come up against an issue I >> can't seem to find a resolution to and was wondering if someone here may >> be >> able to help out. >> >> I have a script that generates a number of plots. The first plot comes >> out >> fine but there seems to be a little hang over in regards to format or >> data >> into the following plots. I have alternated the script by putting each >> plot >> first and the same applies the first plot is fine the rest are ok but >> there >> are odd points plotted. I wonder if there is a method of flushing or >> clearing formats etc that I could use. Sorry if I'm getting terminology >> wrong this is all still rather new to me. >> >> Drew >> > > Drew, > > Do you have a very simple script that reproduces the issue you are > experiencing? From the script, we might be able to spot what is wrong. > > Ben Root > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/clearing-previous-format-changes-tp30579911p30676161.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Drew S. <dre...@gm...> - 2011-01-16 21:15:07
|
Ben, Sorry to take so long getting back. I found a solution. Perhaps not the best one but I discovered that using close() after a show() or save() worked for me. Stumbled across it a day or two after posting. Drew Benjamin Root-2 wrote: > > On Mon, Jan 3, 2011 at 11:36 AM, Drew Stokes <dre...@gm...> > wrote: > >> >> Hi, >> I'm very new to Matplotlib and python but I ma getting excellent results >> in >> what I am trying to achieve. That said I have come up against an issue I >> can't seem to find a resolution to and was wondering if someone here may >> be >> able to help out. >> >> I have a script that generates a number of plots. The first plot comes >> out >> fine but there seems to be a little hang over in regards to format or >> data >> into the following plots. I have alternated the script by putting each >> plot >> first and the same applies the first plot is fine the rest are ok but >> there >> are odd points plotted. I wonder if there is a method of flushing or >> clearing formats etc that I could use. Sorry if I'm getting terminology >> wrong this is all still rather new to me. >> >> Drew >> > > Drew, > > Do you have a very simple script that reproduces the issue you are > experiencing? From the script, we might be able to spot what is wrong. > > Ben Root > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/clearing-previous-format-changes-tp30579911p30676160.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Ryan N. <rne...@gm...> - 2011-01-16 19:12:05
|
Hello everyone,
I frequently use subscripts and superscripts in text on my plots, but
I've noticed that the line and character spacing (kerning ?) is not
always as I would expect. For most things, this is not a problem.
However, I would occasionally like various text objects to line up with
one another, and at these times, this spacing difference can become a issue.
I guess I have a couple questions at this point... First, is this
expected? Second, is there any (simple) way I can control the line and
character spacing? I see there is a 'linespacing' keyword argument;
however, this seems to be a multiplier relative to the total text height
for each line not an absolute, fixed height of every line. For character
spacing, is there a special symbol I could insert to add or removing
spacing between characters?
I'm using Matploblib 1.0.0 that ships with Python(x,y) for Windows.
Below is a test script that highlights these differences (at least on my
system).
Any help or suggestions are most appreciated. (I don't know much TeX, so
I appologize if these differences are obvious for those in the know.)
Ryan
import matplotlib.pyplot as plt
plt.rc('font', size=25.0)
plt.text(0.25, 0.25,
'X1Y2\nX1Y2\nX$_1$Y$_2$\nX$_{1}$Y$_{2}$\n$X_1Y_2$\n$X_{1}Y_{2}$')
plt.text(0.75, 0.25,
'X1Y2\nX1Y2\nX$^1$Y$^2$\nX$^{1}$Y$^{2}$\n$X^1Y^2$\n$X^{1}Y^{2}$')
plt.text(0.5, 0.25, 'X$_{1}$Y$_{2}$\nX$^{1}$Y$^{2}$\n$X_1Y_2$\n$X^1Y^2$')
plt.show()
|
|
From: Larry E. <cpp...@su...> - 2011-01-16 12:11:17
|
subplot(numRows, numCols, plotNum) On my local disk, the file: file:///usr/share/doc/python-matplotlib-doc/html/api/pyplot_api.html#matplotlib.pyplot.subplot contains: subplot(numRows, numCols, plotNum) where plotNum = 1 is the first plot number and increasing plotNums fill rows first. max(plotNum) == numRows * numCols and then, a little later: New subplots that overlap old will delete the old axes. However, that doc does not explain what a row or column is or what overlap means. Is there some way the figure is partitioned into rows and columns and the subplots appear in these rows and columns. If so, then how is this partition done? Does subplot(1,2,1) appear to the left and at same level as subplot(1,2,2)? What if there's subplot(1,2,1) and subplot(2,1,1). Do they overlap and if so, why? IOW, what's the definition of overlap? TIA. -regards, Larry |
|
From: Leslie B. <les...@sy...> - 2011-01-16 03:02:06
|
**update** matplotlib 1.0.0 setup worked on one but did not work on a second Mac OS X 10.6.6. The second one again failed with a missing dependency. It seems to depend on what previous packages may have been installed. The following seems to be a complete fix: 1. On Mac OS X 10.6.x (in my case...6) 2. Install Apple Xcode (requires registration as an Apple developer) 3. Install MacPorts http://www.macports.org/ 4. Check that all library dependencies for matplotlib in Python 2.6 have been satisfied by first running (with Administrator privileges): sudo port install py26-matplotlib (this will use MacPorts script to install matplotlib 1.0.0) 5. (optional) you can reinstall now matplotlib from http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download **now** it works :-) PS note to matplotlib developers. The above may suggest that matplotlib may have a dependency that is not present on a virgin OSX Xcode machine but which is incidentally installed by some other package usually present on a developer's machine and so whose absence is not noticed when preparing the installation script. On 16/01/2011, at 10:22 AM, Leslie Burnett wrote: > Thank you. You are correct. The matplotlib version 1.0.0 works for me too! > > I will post this reply so that others can be aware that the problem seems to be only with matplotlib version 1.0.1. > The previous version matplotlib 1.0.0 works ok with Mac OS X 10.6.6 Snow Leopard and Apple Python 2.6.1 > > On 15/01/2011, at 11:04 PM, Kurt Mueller wrote: > >> >> Am 15.01.2011 um 12:07 schrieb Leslie Burnett: >>> My apologies if this question is a bit simple, but I am new to Python, but I think I've done all the RTFM things and still hit a brick wall. I can see from Google that I am not the first to strike this problem, but no solutions seem to be posted. >>> I am trying to install matplotlib on a Mac OSX 10.6 (Snow Leopard)(OS fully up to date). >>> When I try to install, I get the error message: >>>> lipo: can't open input file: /var/tmp//cctV2zuc.out (No such file or directory) >>>> error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1 >> >> >> On a fully updated Mac OSX 10.6.6 the installation of >> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download >> did work for me. >> >> -- >> kur...@gm... >> > |
|
From: Leslie B. <les...@sy...> - 2011-01-15 23:22:17
|
Thank you. You are correct. The matplotlib version 1.0.0 works for me too! I will post this reply so that others can be aware that the problem seems to be only with matplotlib version 1.0.1. The previous version matplotlib 1.0.0 works ok with Mac OS X 10.6.6 Snow Leopard and Apple Python 2.6.1 On 15/01/2011, at 11:04 PM, Kurt Mueller wrote: > > Am 15.01.2011 um 12:07 schrieb Leslie Burnett: >> My apologies if this question is a bit simple, but I am new to Python, but I think I've done all the RTFM things and still hit a brick wall. I can see from Google that I am not the first to strike this problem, but no solutions seem to be posted. >> I am trying to install matplotlib on a Mac OSX 10.6 (Snow Leopard)(OS fully up to date). >> When I try to install, I get the error message: >>> lipo: can't open input file: /var/tmp//cctV2zuc.out (No such file or directory) >>> error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1 > > > On a fully updated Mac OSX 10.6.6 the installation of > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download > did work for me. > > -- > kur...@gm... > |
|
From: Eric F. <ef...@ha...> - 2011-01-15 20:58:14
|
On 01/15/2011 09:35 AM, Daniel Mader wrote: > Hi, > > for my thesis I have a laaaaarge number of plots generated > by--again--a laaaaaaarge number of Python scripts. > > Now I need a moderate font size for all of them for the thesis while > for a presentation and poster it needs to be much bigger. > > In order to keep track of all the plots and files I use a script which > just calls them and copies the relevant files to a folder: > > > import pylab, shutil, subprocess > > cwd = os.getcwd() > dest = './pyplots/' > > p20 = '../20_Glasses+Liquids/' > p21 = '../21_LensDesign/' > p22 = '../22_comsol/' > p23 = '../23_OSLO/' > p23_glc = '../23_OSLO/OSLO_glc/' > > def main(): > runP20() > > def runP20(): > os.chdir(p20) > subprocess.call([sys.executable, 'Generic_OpticalLiquids.py']) > os.chdir(cwd) > shutil.copy(p20+'Generic_OpticalLiquids_n-V.pdf', dest) > > This might be a very clumsy approach but I find it very helpful. The > problem is that changing any rcParam has no effect on the created > files, opposed to using execfile instead of subprocess.call(). > > What can I do to change plot settings globally for that task? If I understand correctly what you are trying to do, you need to set your rcParams in a matplotlibrc file that will be the one found for a given run through all your scripts; or modify your scripts so that they take rcParams on the command line, and modify your master run-all script so that it feeds those rcParams to each script as it is called. For the first approach, you can either have your master script copy a given matplotlibrc file into each subdirectory before doing your chdir() to that subdirectory, or you can simply set that matplotlibrc file at the beginning of the run, using a single location on the search path for matplotlibrc. That search path includes a path that you may set using the environment variable MATPLOTLIBRC, and, relative to your home directory, ".matplotlib/". For either type of path, note that it is a directory that is specified; the file is always named "matplotlibrc". Eric > > Thanks in advance, > Daniel > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: todd r. <tod...@gm...> - 2011-01-15 20:06:49
|
On X11 systems, windows generally provide information about themselves to the system. These include things like the window title, window class, window role, and window type. These allow window managers to properly handle the windows, and in some window managers (like KDE's kwin), lets you set rules for windows of certain types. As best as I can tell, by default matplotlib does not provide most of this information. It provides the window title and the window type, but it doesn't seem to provide the window class or the window role. These two properties, however, are exactly the properties someone would want to use when trying to set up rules for particular windows. This makes it impossible to set window-specific rules for the plots. Is there something in the matplotlib configuration that would let someone set these properties, and if not is there any way matplotlib could set them itself? I'm sorry if this is a common question. -Todd |
|
From: Daniel M. <dan...@go...> - 2011-01-15 19:35:33
|
Hi, for my thesis I have a laaaaarge number of plots generated by--again--a laaaaaaarge number of Python scripts. Now I need a moderate font size for all of them for the thesis while for a presentation and poster it needs to be much bigger. In order to keep track of all the plots and files I use a script which just calls them and copies the relevant files to a folder: import pylab, shutil, subprocess cwd = os.getcwd() dest = './pyplots/' p20 = '../20_Glasses+Liquids/' p21 = '../21_LensDesign/' p22 = '../22_comsol/' p23 = '../23_OSLO/' p23_glc = '../23_OSLO/OSLO_glc/' def main(): runP20() def runP20(): os.chdir(p20) subprocess.call([sys.executable, 'Generic_OpticalLiquids.py']) os.chdir(cwd) shutil.copy(p20+'Generic_OpticalLiquids_n-V.pdf', dest) This might be a very clumsy approach but I find it very helpful. The problem is that changing any rcParam has no effect on the created files, opposed to using execfile instead of subprocess.call(). What can I do to change plot settings globally for that task? Thanks in advance, Daniel |
|
From: Kurt M. <kur...@su...> - 2011-01-15 12:05:03
|
Am 15.01.2011 um 12:07 schrieb Leslie Burnett: > My apologies if this question is a bit simple, but I am new to Python, but I think I've done all the RTFM things and still hit a brick wall. I can see from Google that I am not the first to strike this problem, but no solutions seem to be posted. > I am trying to install matplotlib on a Mac OSX 10.6 (Snow Leopard)(OS fully up to date). > When I try to install, I get the error message: >> lipo: can't open input file: /var/tmp//cctV2zuc.out (No such file or directory) >> error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1 On a fully updated Mac OSX 10.6.6 the installation of http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download did work for me. -- kur...@gm... |
|
From: Leslie B. <les...@sy...> - 2011-01-15 11:30:12
|
Dear Matplotlib users My apologies if this question is a bit simple, but I am new to Python, but I think I've done all the RTFM things and still hit a brick wall. I can see from Google that I am not the first to strike this problem, but no solutions seem to be posted. I am trying to install matplotlib on a Mac OSX 10.6 (Snow Leopard)(OS fully up to date). When I try to install, I get the error message: > lipo: can't open input file: /var/tmp//cctV2zuc.out (No such file or directory) > error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1 (full session messages are pasted at the end of this post) I reach this same point via a variety of varied different installation strategies, which I have documented and outlined below. Any assistance or guidance would be gratefully received. With many thanks Leslie Burnett Sydney University === System: Mac OSX 10.6.6 Xcode installed and up to date Python 2.6.1 (Apple) > Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin NumPy installed OK (so I think I have mastered the process of "python setup.py build" and "... install") === Pathways leading to the error message: I obtained Matplotlib from the matplotlib home page download link to sourceforge a) mpkg/dmg installation 1.0.1-r0 fails with message "can't be installed on this disk. matplotlib requires System Python 2.6 to install" b) matplotlib-1.0.1.tar, then cd to tar directory, then "sudo python setup.py build" fails with the missing *.out error message above. c) easy-install using "sudo sh setuptools-0.6c11-py2.6.egg" fails with same missing *.out error message === I have tried this on two different Macs, with same outcome and same error messages. I have also searched the matplotlib archives ditto Google for this problem. I can see others have encountered it, but noone seems to have posted a solution. === Here is the full terminal transcript of the attempted build. Firstly the directory listing, then the build messages: > matplotlib-1.0.1 user$ ls > CHANGELOG MANIFEST.in __init__.py lib setup.py ttconv > CXX Makefile agg24 license setupegg.py > INSTALL PKG-INFO build make.osx setupext.py > INTERACTIVE README.txt doc matplotlibrc.template setupext.pyc > KNOWN_BUGS TODO examples setup.cfg.template src > matplotlib-1.0.1 user$ sudo python setup.py build > Password:******* > basedirlist is: [] > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.0.1 > python: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC > 4.2.1 (Apple Inc. build 5646)] > platform: darwin > > REQUIRED DEPENDENCIES > numpy: 1.2.1 > freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in any > * of '.', './freetype2'. > > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > * Could not find 'libpng' headers in any of '.' > Tkinter: Tkinter: 67083, Tk: 8.5, Tcl: 8.5 > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Mac OS X native: yes > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: present, version unknown > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: /bin/sh: gs: command not found > latex: no > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz'] > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.6-universal-2.6/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.macosx-10.6-universal-2.6/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include/freetype2 -I./freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/ft2font.cpp -o build/temp.macosx-10.6-universal-2.6/src/ft2font.o > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory > src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory > src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory > src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used > lipo: can't open input file: /var/tmp//ccX1tCpD.out (No such file or directory) > error: command 'gcc-4.2' failed with exit status 1 > |