Re: [Matplotlib-users] matplotlib threadsafe?

2008-03-21 Thread Eric Firing

 Out of interest, how does one tell MPL to start a new figure and forget 
 everything that's gone before?

You can minimize the amount of package and module-level state 
information by using the oo interface: see examples/agg_oo.py.  If you 
change any rcParams dictionary entries, typically using the rc function, 
then you can restore the dictionary to its default condition with the 
rcdefaults() function.

Eric


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Eric Firing
Chris Withers wrote:
 Michael Droettboom wrote:
 That's cool'n'all, but when is svn going to make it into a Windows 
 binary release? ;-)
   
 I suspect your question is somewhat rhetorical, but...  it will 
 probably be a while ;) 
 
 Why is that? Who cranks out the binary releases on Windows and what 
 compiler do they use?
 
 I know a lot of people (myself included) have had success with MinGW.  
 
 What's the official compiler used, though?
 
 It's a good learning experience, and there's lots on this list willing 
 to help.  If we can get more SVN Windows users on board, more crazy 
 Windows-only bugs will get found and squashed sooner... ;)
 
 Well, tell me how to get the svn trunk and how to compile and I'll give 
 it a go :-)

Assuming you have svn installed on your machine, start here:
http://sourceforge.net/svn/?group_id=80706
You will probably want to modify the checkout command slightly, 
something like this:

svn co 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib 
mpl_svn

(That should be all one line, but the mailer may have broken it.)

There are some Windows-related compilation hints in the INSTALL.txt file 
and in setupext.py.  I think the basic idea is that once you have all 
prerequisites in place, complete with header files, then the standard 
python setup.py install will do the right thing.  The hard part is 
probably getting all the prerequisites installed.  I've never tried on 
Win, so I don't know.

Charlie Moad does the Windows releases.  I don't know what compiler he uses.

It would be nice if some people who have successfully built on Windows 
could collectively assemble a step-by-step account of how to go from a 
bare Win box to a working mpl (preferably compiled with mingw); but 
maybe this would take more effort than it is worth.  I am on shaky 
ground suggesting it, because it is not something I can help with at 
all, and I don't even have a clear picture of what it would require.  I 
gather a similar account would be useful for OS X.

Eric



 
 cheers,
 
 Chris
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Andrew Charles
On Fri, Mar 21, 2008 at 10:13 AM, Christopher Barker
[EMAIL PROTECTED] wrote:
   Compiling Matplotlib from source, or easy_installing the egg


 From the egg:
   ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for

  hmm -- odd, I wouldn't think the egg should be linked against what looks
  like a  macports libJPEG -- are you sure it isn't trying to build the
  egg when you easy_install?

Looking back over the easy_install output it looks as if it does
download another tarball and try to build it. I read another thread
where this was happening to someone else.

I'll look at other libJPEGs - if that doesn't make it fly I might need
to take your other advice and nuke macpython. I'm a little hesitant
about over-writing the system installed numpy though.

Andrew

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] from pylab import nx?

2008-03-21 Thread Michael Droettboom
Chris Withers wrote:
 Eric Firing wrote:
   
 If you are referring to scripts in the matplotlib/examples/ subdirectory 
 then you must have a version in which some of those scripts had not been 
 brought up to date with the rest of matplotlib. 
 

 You should turn them into unit tests as well as examples.
   
The backend_driver.py example runs a number of other examples using a 
number of different backends.  That's been a reasonably successful set 
of regression and coverage tests.  It's not perfect, but it's a start.  
There are also some lower-level unit tests for frequently-reoccurring 
bugs in the unit directory.

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Michael Droettboom
Chris Withers wrote:
 Michael Droettboom wrote:
 That's cool'n'all, but when is svn going to make it into a Windows 
 binary release? ;-)
   
 I suspect your question is somewhat rhetorical, but...  it will 
 probably be a while ;) 

 Why is that? Who cranks out the binary releases on Windows and what 
 compiler do they use?
Matplotlib recently underwent a major refactoring of the code to make it 
easier to add new transformations and projections to the system.  This 
code is significantly less tested than the latest release.  The idea of 
a release is that it is reasonably well-tested and reasonably stable.  
Obviously, the matplotlib releases aren't perfect, but I suspect 0.91.2 
is far more safe and predictable than SVN trunk is right now.

However, there is a branch, matplotlib_0_91_maint, that *theoretically* 
should be the latest release + any important bugfixes, but no new 
features.  I say *theoretically* because occasionally bugfixes are made 
only to the trunk.  If you find such a fix, let us know and hopefully 
someone can backport it.

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Michael Droettboom
I vaguely recall a bug whereby mathtext on PDF was upside down (because 
the direction of the y-axis was not being inverted)... but I can't find 
the bug report.

It does seem to work in 0.90.1 and 0.91.2 (on Linux at least).  Are you 
able to upgrade?

Cheers,
Mike

Simson Garfinkel wrote:
 Hi. I'm making scientific graphs again, so i just got back on this 
 mailing list after a two year hiatus.

 I am using:
 matplotlib-0.90.0-py2.5-macosx-10.4-fat.egg

 Here is a simple program:

 #!/usr/bin/python
 #
 # Do our plots with matplotlib

 import matplotlib
 matplotlib.use('Agg')
 from pylab import *

 fig = figure(num=1,figsize=(6.5,4))
 ax = fig.add_axes([.15,.3,.8,.65])
 ax.set_title(Why is the Y axes upside down?)
 ax.set_yscale('log')
 ax.set_ylabel('Queries per second')

 ax.bar(1,1000,.5,color='r')
 ax.bar(2,5000,.5,color='b')
 ax.bar(3,55000,.5,color='g')

 fig.savefig(broken_log_demo.png)

 Here is the plot with a PNG:



 




 Well, that looks good.

 But here is the plot when I change the type to PDF:




 Notice the the axes are reversed.

 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 

 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Wayne E. Harlan
Chris:

I have used cygwin to compile numpy and scipy svn versions for win XP on 
my old athlon system.  I believe the scipy site has some detailed 
instructions.  However, I have done a lot of compiling on my linux 
system and so that part was easy (configure, make, make install, etc)  I 
don't know about mpl but scipy for sure was very sensitive to the 
platform and the stock scipy distro blew up big time doing curve fitting 
optimizations.  Compiling my own versions made those problems go away, 
thankfully.  You can download cygwin and install it easily enough but 
then you need to pick which of the included programs to install and that 
is a pain unless you have disk space and can do everything. 

For numpy and scipy I did the following in the cygwin prompt after 
cd-ing to where I keep my sources:

  /cygdrive/c/python25/python.exe setup.py config --compiler=mingw32 
build \
 --compiler=mingw32 bdist_wininst  and this produced a windows .exe 
installer.

I tried mpl last night and it failed due to some dependencies, I think 
it was freetype that was missing and I couldn't satisfy the requirements 
but maybe someone on the list can enlighten us.  With that taken care 
of, it should be straightforward.

Wayne

Chris Withers wrote:
 Michael Droettboom wrote:
   
 That's cool'n'all, but when is svn going to make it into a Windows 
 binary release? ;-)
   
   
 I suspect your question is somewhat rhetorical, but...  it will probably 
 be a while ;) 
 

 Why is that? Who cranks out the binary releases on Windows and what 
 compiler do they use?

   
 I know a lot of people (myself included) have had success with MinGW.  
 

 What's the official compiler used, though?

   
 It's a good learning experience, and there's lots on this list willing 
 to help.  If we can get more SVN Windows users on board, more crazy 
 Windows-only bugs will get found and squashed sooner... ;)
 

 Well, tell me how to get the svn trunk and how to compile and I'll give 
 it a go :-)

 cheers,

 Chris

   

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Kenneth Miller
All,

  Is it possible to plot dates on the Y-axis? I'd like to have  
dates on the y axis descending or ascending versus my values on the x  
- axis. Is it possible to do this or simply switch the axis?


Thanks!


Regards,
Ken

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Chris Withers
Kenneth Miller wrote:
   Is it possible to plot dates on the Y-axis? I'd like to have  
 dates on the y axis descending or ascending versus my values on the x  
 - axis. Is it possible to do this or simply switch the axis?

Not sure what you mean, have you just tried it with plot or plot_dates?

What problems are you experiencing?

cheers,

Chris

-- 
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Christopher Barker
Eric Firing wrote:
 It would be nice if some people who have successfully built on Windows 
 could collectively assemble a step-by-step account of how to go from a 
 bare Win box to a working mpl (preferably compiled with mingw); but 
 maybe this would take more effort than it is worth.

I don't think so -- that would be great!

  I  gather a similar account would be useful for OS X.

It would, and it's been done at various times by various people (myself 
included, a good while back). I don't know if there is a recent one out 
there.

both of these should be in an easy-to-find place on the Wiki.

As for OS-X: OS-X is a pain in the ^%^ because Apple doesn't include 
all the libs MPL needs (I'm not up to date on this, but I think libpng, 
libjpeg and libfreetype). On Windows, this is also the case, but I 
understand that the MPL distro includes them. On OS-X, it is just easy 
enough to get them elsewhere that there isn't the motivation to get them 
included in MPL. However, the problem comes in that there are way too 
many ways to get these libs on OS-X:
  - compile from a tarball
  - fink
  - macports
  - various binary installers.

Also, even with these methods, there are issues of how they compiled: 
Intel, PPC, or Universal.

Ideally, we'd all use the same Universal libs, but the fact is that it 
it easier to get it running on your own machine by using fink or macport 
or the tarball, and building just for your system, but then you dont' 
get something fully redistributable.

Further complicating all this is that there are way too many versions of 
Python for OS-X: Framework, fink, macports, activestate, Apple's, 
MacPython, etc.

Personally, I'd really like there to be a decision about what is 
supported by MPL, and I think that should be:

MacPython2.5 (for OS-X 10.3.9 to 10.5)
Universal Builds
Extra libs statically linked in.
Most recent numpy release.
Tk and wx back-ends
Cocoa? (is that functional?)

It's a bit of pain to get set up to build this, but once you're set up, 
it's easy to do and distribute it an everyone can use it.

Also, I THINK it's possible to build a binary distro (egg?) that will 
work with both MacPython2.5 and Apple's 25 (which comes with OS-X 10.5). 
Can anyone confirm this?

Either easy_install or *.dmgs (build with bdist_mpkg) that can be 
downloaded and clicked on would be fine.

The wxPython project supports OS-X builds like this, and it works great.

fink and macports can do their own thing.

Is there currently an appropriate place in the Wiki for How to install 
on OS-X ?

After all that writting, I see:

matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg

on the sourceforge download site -- this looks like it's just what I'm 
suggesting. If that didn't work for the OP, we should figure out why not.


-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plotting filled lines with missing data?

2008-03-21 Thread Chris Withers
Pierre GM wrote:
 Your data is indexed in time, right ? Your x-axis is a date object ? Then use 
 scikits.timeseries
 http://scipy.org/scipy/scikits/wiki/TimeSeries

I'm not sure what this is giving me.
The dates are all python datetimes in a list already.
The missing values started off as '', I turned those into nan and then 
created a ma with the nan's masked.

What more would TimeSeries give me?

 the link above. I must admit we didn't implement poly_between for timeseries. 
 Most likely, we'd have to implement it for regular masked arrays first, as 
 mentioned by Eric.

OK.

 What you could do is to fill your array with some kind of baseline, such as 
 0, 
 or your minimum data, or wtvr. That's just a quick trick and no fix.

Indeed, that's what I had to do.

I have to admit, I see some interesting things while scanning that wiki 
page, but nothing that would have helped me...

cheers,

Chris (who might well be missing something...)

-- 
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Christopher Barker
Andrew Charles wrote:
 Looking back over the easy_install output it looks as if it does
 download another tarball and try to build it. I read another thread
 where this was happening to someone else.

What did you try to install? was it this:

matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg

which I think should work, so if it doesn't, maybe we can figure out why 
not. It worked for me with MacPython2.5 on OS-X 10.4

Charlie, am I right that that should work?

 I'll look at other libJPEGs - if that doesn't make it fly I might need
 to take your other advice and nuke macpython. I'm a little hesitant
 about over-writing the system installed numpy though.

I agree. MacPython is a good way to go, and we should have a binary for 
it, so maybe we can solve this. I don't have Leopard, so I'm not sure I 
can help much though.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 11:27 AM, Kenneth Miller [EMAIL PROTECTED] wrote:
 All,

   Is it possible to plot dates on the Y-axis? I'd like to have
  dates on the y axis descending or ascending versus my values on the x
  - axis. Is it possible to do this or simply switch the axis?

Not a problem -- with recent versions of mpl, you can simply pass a
sequence of date objects directly.  Use Axes.invert_yaxis to change
the order from ascending to descending.  Here is an example loading
some data from a CSV file and plotting floats on the x axis and dates
on the y axis

In [7]: import matplotlib.mlab as mlab

In [8]: r = mlab.csv2rec('aapl.csv')

In [9]: r.sort()

In [10]: r[-5:]
Out[10]:
recarray([ (datetime.date(2008, 2, 11), 128.00,
129.97, 127.2, 129.44, 42886900,
129.44),
   (datetime.date(2008, 2, 12), 130.69, 131.0, 123.62,
124.86, 43749900, 124.86),
   (datetime.date(2008, 2, 13), 126.680001, 129.78,
125.63, 129.41, 34542300, 129.41),
   (datetime.date(2008, 2, 14), 129.41,
130.81, 127.010001, 127.45, 34074900,
127.45),
   (datetime.date(2008, 2, 15), 126.27, 127.08, 124.06, 124.63,
32163400, 124.63)],
  dtype=[('date', '|O4'), ('open', 'f8'), ('high', 'f8'),
('low', 'f8'), ('close', 'f8'), ('volume', 'i4'), ('adj_close',
'f8')])

In [11]: fig = figure()

In [12]: ax = fig.add_subplot(111)

In [13]: ax.plot(r.close, r.date, 'o')
Out[13]: [matplotlib.lines.Line2D instance at 0x237fc10]

In [14]: draw()


In [15]: ax.invert_yaxis()

In [16]: draw()

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Kenneth Miller

On Mar 21, 2008, at 11:56 AM, Chris Withers wrote:

 Kenneth Miller wrote:
  Is it possible to plot dates on the Y-axis? I'd like to have   
 dates on the y axis descending or ascending versus my values on the  
 x  - axis. Is it possible to do this or simply switch the axis?

 Not sure what you mean, have you just tried it with plot or  
 plot_dates?

A common type of graph in my work is to see the value (from 0 to  
something) represented on the x axis, and instead of the y  
representing a value, it represents time. The closer the Y value gets  
to the x-axis, the closer it is to the current time, and the further  
away the further back in time. When i pass plot_dates timestamps for  
the y axis, and integers for the x axis it simply displays the y-axis  
as floats.

Regards,
Kenneth Miller



 What problems are you experiencing?

 cheers,

 Chris

 -- 
 Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Chris Withers
Kenneth Miller wrote:
 
 back in time. When i pass plot_dates timestamps for the y axis, and 
 integers for the x axis it simply displays the y-axis as floats.

did you try:

plot_dates(x,dates,ydate=True)

?

Chris

-- 
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] from pylab import nx?

2008-03-21 Thread Michael Droettboom

Chris Withers wrote:
 Michael Droettboom wrote:
 The backend_driver.py example runs a number of other examples using 
 a number of different backends.  That's been a reasonably successful 
 set of regression and coverage tests.  It's not perfect, but it's a 
 start.  There are also some lower-level unit tests for 
 frequently-reoccurring bugs in the unit directory.

 Indeed, is there any kind of full unit test suite that a developer 
 can run when changing things ot make sure they haven't fubarred anything?

backend_driver.py is, AFAIK, the closest thing to that.  I recently did 
a coverage analysis of it (with coverage.py), and it hits something like 
98% of the non-error case code, so it's pretty good.

What we don't have is an automated regression test framework to see if 
the results remain correct.  There are a number of reasons why this is a 
non-trivial task -- there was a thread about that on this list a few 
months ago.  Unfortunately, I can't find it...  Maybe someone else 
remembers the subject line?

Mike


-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] 'from matplotlib.cbook import is_scalar, dedent' ImportError: cannot import name dedent

2008-03-21 Thread pmarsh
Hello List,

I am using python-matplotlib version 0.87.7-0.3ubuntu1(feisty) and
having some problems with a script that uses it. I get this import error
and am not sure how to debug it further, any assistance would be greatly
appreciated.

Best regards, 

Paul marsh

-

crank examples # pwd
/home/a_downloads/basemap-0.9.9.1/examples
crank examples # python simpletest.py
Traceback (most recent call last):
  File simpletest.py, line 1, in module
from matplotlib.toolkits.basemap import Basemap
  File
/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py, 
line 1, in module
from basemap import __doc__, __version__
  File
/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py, line 
20, in module
from matplotlib.cbook import is_scalar, dedent
ImportError: cannot import name dedent
crank examples # python -c from matplotlib.toolkits.basemap import
basemap_datadir; 
Traceback (most recent call last):
  File string, line 1, in module
  File
/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py, 
line 1, in module
from basemap import __doc__, __version__
  File
/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py, line 
20, in module
from matplotlib.cbook import is_scalar, dedent
ImportError: cannot import name dedent
crank examples # 

-


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Vary point color with scatter

2008-03-21 Thread Michaël Douchin
Hi list,

I have a set of data with 3 columns :
x = x coordinate of the point
y = y coordinate
z = temperature

I can't see how to set a different color for each point function of 
temperature value.

I have tried, which draw a colorfull beautiful map, the color varying 
with the row rank of x (not what I want)

**
sqla=SELECT x, y, temperature FROM import_parcelle a WHERE 
dat_loc=' + date_traite + ' AND code_uc=' + code_uc + ' ORDER BY 
a.dateheure;
resa=db.query(sqla)
data=resa.dictresult()
x= [float(a[x]) for a in data] # -- extraction de la colonne x
y= [float(a[y]) for a in data] # -- extraction de la colonne y
z= [float(a[temperature]) for a in data] # -- extraction de la 
colonne temperature

scatter(x, y, c=arange(len(x)), cmap=cm.spring)
title(Carte des temperatures(L/min))
xlim(min(x)-10,max(x)+10)
ylim(min(y)-10,max(y)+10)
**

What is the good way to do what I reach for ?
I have much trouble to know how to define the c parameter of scatter. I 
saw the arrange thing somewhere in internet, but don't understand what 
it is for.

Thanks in advance for your help.
Michael

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Scatterplot problem

2008-03-21 Thread Sean Hammond
Okay I've learnt a bit more about this:

http://img229.imageshack.us/img229/6467/scatterplot5st6.png

I need to explicitly make a new figure as well as a new axis, and put
the rc calls before the figure calls, rc changes only seem to take
effect on figures created afterwards. Also I was stupidly using the plot
function (for plotting lines) for a scatter plot, I've now discovered
the scatter function.

Things are pretty much how I want them now, but I still have a couple of
questions:

How do I get rid of the redundant ticks on the top and right edges?

Is there any way to stop some of my text labels from overlapping?

Why is there such a big gap between the plot itself and the axes ticks?
The scatter function seems to do this, but I don't see any option to
control the size of the gap. I wonder if I've done something weird like
create an axes within an axes. I don't mind the gap much, it's just
surprising, and could do with being much smaller to make the figure
easier to read.

Here's my new source code:

rc('xtick.major',size=8)
rc('xtick',direction='out')
rc('ytick.major',size=8)
rc('ytick',direction='out')
fig = figure(facecolor='white' )
axes(frameon=False)
title('Comparison of lower- and upper-bounds per function in week one
and week two')
l =
scatter(functions.lowerboundsweek1,functions.lowerboundsweek2,marker='s',color='g')
u =
scatter(functions.upperboundsweek1,functions.upperboundsweek2,marker='^',color='b')
legend((l,u),('Lower-bounds','Upper-bounds'),'best')
plot([0,1],[0,1],color='#99',linestyle='--')
xlabel('Week 1')
ylabel('Week 2')
xticks(functions.upperboundsweek1+functions.lowerboundsweek1,'
'*len(functions.upperboundsweek1+functions.lowerboundsweek1))
yticks(functions.upperboundsweek2+functions.lowerboundsweek2,'
'*len(functions.upperboundsweek2+functions.lowerboundsweek2))
for function,x,y in
map(None,functions.shortnames,functions.upperboundsweek1,functions.upperboundsweek2):
annotate(function,xy=(x,y),size=8,color='b')   
for function,x,y in
map(None,functions.shortnames,functions.lowerboundsweek1,functions.lowerboundsweek2):
annotate(function,xy=(x,y),size=8,color='g') 


On Tue, 2008-02-26 at 16:51 +, chombee wrote:
 I'm having a couple of problems drawing a basic relational scatter plot.
 (Specifically, it's called a dot-dash-plot in the book I have and is
 described as framing the bivariate scatter with the marginal distribution
 of each variable.) The idea is that you have a bivariate scatter plot
 and use the two marginal frequency distributions of the data as the two
 axes.
 
 1. By setting the x and y tick length and using space characters as the
 tick labels I was able to get ticks only and no labels on the axes as I
 want. But these ticks appear along the top and right edges of the plot,
 as well as the left and bottom. Is there any way to get rid of the top
 and right ticks?
 
 2. I'm getting phantom numbers on my axes, the 0.2, 0.4, 0.6 etc. I
 don't know where these are coming from or what they measure (my data
 ranges from 0-7 on both axes, not 0-1).
 
 3. I want to label each data point with a string. I'm doing this with
 annotate but the strings sometimes overlap each other. Any idea how to
 avoid this?
 
 Here's a PNG of my plot as it is:
 
 http://img137.imageshack.us/img137/4015/scatterplotlk2.png
 
 And here's the source:
 
 # datax and datay are equal length lists of floats, the data I want to 
 # plot. labels is another equal length list containing the strings I 
 # want to label the data points with. All three lists are in the same
 # order.
 
 axes(frameon=False)
 rc('xtick.major',size=8)
 rc('xtick',direction='out')
 xticks(datax,' '*len(datax))
 rc('ytick.major',size=8)
 rc('ytick',direction='out')
 yticks(datay,' '*len(datay))
 plot(datax,datay,'r.')
 plot([0,7],[0,7])
 xlabel('Proportion of total number of cards, week 1')
 ylabel('Proportion of total number of cards, week 2')
 title('Frequency of cards per function')
 for label,x,y in map(None,labels,datax,datay):
 annotate(function,xy=(x,y),size=8)
 
 Thanks!
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] problem with agg

2008-03-21 Thread Luis Carlos Garelli
 Greetings... I am working using
the matplotlib version 0.90.1, and i am having some strange problems with
my application. When i execute in some pcs, there is no
problem at all, but in others pcs, i receive this message:

File pylab.pyc, line 1 in ?
File matplotlib\pylab.pyc, line 203 in ?
File matplotlib\axes.pyc, line 14 in ?
File matplotlib\agg.pyc, line 5 in ?
File matplotlib\_agg.pyc, line 12 in ?
File matplotlib\_agg.pyc, line 10 in ?
ImportError: Dll Load Failed

All the pc's have Windows Xp, most of them Pentium 4, some
are Pentium D. I don't know what may be the issue. All those
pcs have the same software, just different hardware, i hope
you could help me with this little problem. Thanks in advance...
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Francesco Biscani
Hi all,

Christopher Barker wrote:
 The only difference that my users see between an app written in Python 
 and C++ is that the Python one has more features...and fewer bugs.
   

I'm currently working mostly in C++ and exploring integration with 
Python through Boost.Python+IPython+MPL. I enjoy working in Python, but 
I'm afraid of making a more consistent switch mainly for fear of losing 
the static type checking that C++ gives me. I have the horrifying 
feeling that if I were to write much code in Python I could break it in 
so many ways just because of this, and I'd have the constant perception 
of not having my back covered by the compiler, at least for this kind of 
errors.

It's true that probably I'd get the software up and running in less time 
with Python, but I think that I would spend much more time making sure 
it behaves as expected and fortifying it, so to speak. Am I totally 
offset here?

 Francesco.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] I really need help about installing matplotlib.

2008-03-21 Thread lovegf86

Please Help me.
I am a beginner in programming.  Due to my research, I should know how to
make graph using python and matplotlib.  
I went to matplotlib website and downloaded and installed enthought python
Enthought python is a package that include numpy, wxPython GUI toolkit and
SciPy.
I installed Enthought python at
C:/Python24
and downloaded and installed matplotlib
C:/
I did know which things I downloaded.. But I downloaded..
matplotlib-0.91.2.win32-py2.4.exe
matplotlib-0.91.2-py2.4-win32.egg
matplotlib-0.91.2.tar.gz  
Did I downloaded right things?
Anyway, I installed and opened Python(Idle) and tried to make a graph
from pylab import *
RuntimeError: module compiled against version 109 of C-API but this
version of numpy is 90907

Traceback (most recent call last):
  File pyshell#2, line 1, in -toplevel-
from pylab import *
  File C:\Python24\Lib\site-packages\pylab.py, line 1, in -toplevel-
from matplotlib.pylab import *
  File C:\Python24\Lib\site-packages\matplotlib\pylab.py, line 208, in
-toplevel-
from matplotlib import mpl  # pulls in most modules
  File C:\Python24\Lib\site-packages\matplotlib\mpl.py, line 1, in
-toplevel-
from matplotlib import artist
  File C:\Python24\Lib\site-packages\matplotlib\artist.py, line 4, in
-toplevel-
from transforms import identity_transform
  File C:\Python24\Lib\site-packages\matplotlib\transforms.py, line 254,
in -toplevel-
from matplotlib._transforms import Value, Point, Interval, Bbox, Affine
ImportError: numpy.core.multiarray failed to import

What is the problem?
Do I need to update numpy?
Please help me, I am so desperate..


-- 
View this message in context: 
http://www.nabble.com/I-really-need-help-about-installing-matplotlib.-tp15773095p15773095.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] PNG filesize

2008-03-21 Thread Einar M. Einarsson

Hi all,

I'm trying to find ways to make the file-size of my PNG images smaller.

When I generate my 660*440px image I get a big 168kb file.
(8bit RGB color model, has  an alpha channel (need that) but no
interlacing scheme)

Here it is:
http://metphys.org/eme/T05.png

I'm using the savefig method of-course.


To see how much I could compress it I used pngcrush (the best tool
according to the interwebs) and got it down to 128kb.

But thats still way to large for my intended use. (plotting results
from an operational weather model, see. www.belgingur.is
We are currently using IDL.)

 From what I've read about PNG files, which is supposed to be rather
compact image format, it seems to me that the most effective way is
to have an indexed color table.

So to cut it short:

Is there any way to save a PNG file with an indexed color table?

Or do you see any other way to shrink the files?


Best regards.
Einar M. Einarsson
www.belgingur.is

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] issues with yahoo historical data candlestick drawing in finance.py

2008-03-21 Thread Michael Redman
Hi all,

I apologize in advance if these issues have already been addressed.  I did a
search of the mailing lists and did not find them discussed but I may have
missed them.

I had some trouble getting the historical quotes data from yahoo to work,
apparently because yahoo changed the format of the dates in their output files
- once I changed the date format string in finance.py it worked fine.

Also the color of the candlestick shadow line that shows the day's range was
hard-coded to be black.  Because it didn't show up on my charts with black
backgrounds, I changed the code to make the shadow match the color of the
candle's real body.

I am attaching a diff of my finance.py, which on my Debian Etch system came in
a package that says its version is 0.87.7-0.3.

Please keep in mind that I do not intend the code I am attaching to be a
comprehensive fix, just a simple kludge.  I am totally new both to matplotlib
and to python and I have only done as much kludge-ing as was necessary to get
the code to do what I needed it to do right now.  I will leave doing things the
right way, to people already more familiar with the language and the code.

Peace,
Michael


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
53c53
 dt = datetime.date(*time.strptime(datestr, '%d-%b-%y')[:3])
---
 dt = datetime.date(*time.strptime(datestr, '%Y-%m-%d')[:3])
268c268
 color='k',
---
 color=color,
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Compiler error on OS X 10.5.2 in agg

2008-03-21 Thread Andrew Jaffe


Hi All,

Zachary Pincus wrote:

 Can you tell me where you specified the -Os option to gcc to escape  
 the problem?
 
 So the compile that command that failed is printed right above the  
 error message it generated. (The long line that starts  with  
 'gcc' ...). I just copied this command, edited the -O3 to an -Os, and  
 pasted that command-line back into the terminal. Total low-tech hack,  
 as I didn't want to much with the setup.py file to fix compile flags  
 on a per-file basis.
 
 After that file is compiled manually, you can re-run 'python setup.py  
 build', and it will start up at the next step after the error.
 
 I got the same error in another step, which was a bit trickier to fix,  
 because for some reason, src/_image.cpp gets copied to src/image.cpp  
 on a temporary basis, and then compiled. (I presume the file isn't  
 also modified?) But after the compile errors out, the copy is deleted,  
 so just pasting in the offending gcc command doesn't work. So I had to  
 manually copy src/_image.cpp to scr/image.cpp, and then paste in the  
 modified gcc command.
 
 Ugh! I'd really love some help reducing this to a test case that I can  
 send to Apple.

I've got the same error(s) in the same situation (10.5.2). I haven't 
seen it any other context nor have had any success in reducing to a test 
case, alas. Could this have to do with picking up libraries (from fink 
or elsewhere) and/or different compiler versions? I've got XCode 3 and 
gcc 4.0. (I've actually got the apple 4.2 preview release as well but 
that craps out even earlier, I assume due to library version mismatches...)

Andrew


 
 Zach
 
 
 On Mar 13, 2008, at 12:16 PM, Stephane Raynaud wrote:
 
 Hi,

 I got the same problem.
 Can you tell me where you specified the -Os option to gcc to escape  
 the problem?


 On Mon, Mar 10, 2008 at 4:35 AM, Zachary Pincus [EMAIL PROTECTED] 
 wrote:
 Hello,

 I just tried to compile the SVN head of matplotlib (r4994) from  
 source
 on OS X 10.5.2 (with source builds of python 2.5.2 and the SVN head  
 of
 numpy), and ran into an internal compiler error in the agg code.
 (pkgconfig 0.23 and wxPython 2.8.7.1 also present and accounted for.)

 Here's the compile line and error:
 building 'matplotlib.backends._backend_agg' extension
 gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno- 
 fused-
 madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -I/Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/site-packages/numpy/core/include -I/usr/X11/include/
 libpng12 -I/usr/local/include -I/usr/include -I/usr/X11R6/include -
 I. -I/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
 python2.5/
 site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/
 X11/include/freetype2 -I/usr/X11/include -I/usr/local/include -I/ 
 usr/
 include -I/usr/X11R6/include -I. -I/Library/Frameworks/
 Python.framework/Versions/2.5/include/python2.5 -c src/_image.cpp -o
 build/temp.macosx-10.4-i386-2.5/src/_image.o
 cc1plus: warning: command line option -Wstrict-prototypes is valid
 for C/ObjC but not for C++
 src/_image.cpp: In member function 'Py::Object
 _image_module::from_images(const Py::Tuple)':
 src/_image.cpp:842: error: insn does not satisfy its constraints:
 (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
 (mem:QI (plus:SI (reg/f:SI 6 bp)
   (const_int -280 [0xfee8])) [0 SR.2969+0
 S1 A8])
   (reg:QI 5 di)) 56 {*movqi_1} (nil)
   (nil))
 src/_image.cpp:842: internal compiler error: in
 reload_cse_simplify_operands, at postreload.c:391
 Please submit a full bug report, with preprocessed source if
 appropriate.
 See URL:http://developer.apple.com/bugreporter for instructions.
 This seems to be an agg and OS X error; it's cropped up here:
 http://trac.osgeo.org/mapserver/ticket/2368
 and John Hunter reported it on the agg list here:
 http://article.gmane.org/gmane.comp.graphics.agg/3963

 Unfortunately, the error appears to either not have been fixed by the
 10.5.1 update, as suggested in the email thread cited above, or the
 error re-appeared in 10.5.2.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PNG filesize

2008-03-21 Thread Ted Drain
I'd guess PNG won't get much smaller because you have a lot of different
colored pixels.  PNG compresses most when you have a sparser plot.  I'd
suggest that you try using JPG.  It will compress the multi-colored portion
of your plot way down.  You may see a few artifacts if you look carefully at
the axes: instead of pixels white,black,white you might get
white,grey,black,grey,white.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Einar M. Einarsson
 Sent: Monday, March 17, 2008 5:08 AM
 To: matplotlib-users@lists.sourceforge.net
 Subject: [Matplotlib-users] PNG filesize
 
 
 Hi all,
 
 I'm trying to find ways to make the file-size of my PNG images smaller.
 
 When I generate my 660*440px image I get a big 168kb file.
 (8bit RGB color model, has  an alpha channel (need that) but no
 interlacing scheme)
 
 Here it is:
 http://metphys.org/eme/T05.png
 
 I'm using the savefig method of-course.
 
 
 To see how much I could compress it I used pngcrush (the best tool
 according to the interwebs) and got it down to 128kb.
 
 But thats still way to large for my intended use. (plotting results
 from an operational weather model, see. www.belgingur.is
 We are currently using IDL.)
 
  From what I've read about PNG files, which is supposed to be rather
 compact image format, it seems to me that the most effective way is
 to have an indexed color table.
 
 So to cut it short:
 
 Is there any way to save a PNG file with an indexed color table?
 
 Or do you see any other way to shrink the files?
 
 
 Best regards.
 Einar M. Einarsson
 www.belgingur.is
 
 ---
 --
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Simson Garfinkel

On Mar 21, 2008, at 6:12 AM, Michael Droettboom wrote:
 I vaguely recall a bug whereby mathtext on PDF was upside down  
 (because the direction of the y-axis was not being inverted)... but  
 I can't find the bug report.

 It does seem to work in 0.90.1 and 0.91.2 (on Linux at least).  Are  
 you able to upgrade?


Hm.

On my Linux box, Well, easy_install should upgrade me to 91.2, but  
won't build because ft2build.h is missing...?  Apparently that's part  
of freetype v2, which I have installed...

On my Mac, easy_install says that matplotlib 0.87.7 is the active  
version and the best version.

I guess I can't easy install...



02:46 PM t:/home/simsong# easy_install matplotlib
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading 
http://sourceforge.net/project/showfiles.php?group_id=80706package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Best match: matplotlib 0.91.2
Downloading 
http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.2.tar.gz?modtime=1199627250big_mirror=0
Processing matplotlib-0.91.2.tar.gz
Running matplotlib-0.91.2/setup.py -q bdist_egg --dist-dir /tmp/ 
easy_install-YMu8YK/matplotlib-0.91.2/egg-dist-tmp-AOR3hR
= 
= 
= 
= 

BUILDING MATPLOTLIB
 matplotlib: 0.91.2
 python: 2.4.4 (#1, Oct 23 2006, 13:58:18)  [GCC 4.1.1
 20061011 (Red Hat 4.1.1-30)]
   platform: linux2

REQUIRED DEPENDENCIES
  numpy: 1.0.3
  freetype2: found, but unknown version (no pkg-config)
 * WARNING: Could not find 'freetype2' headers  
in any
 * of '/usr/local/include', '/usr/include', '.',
 * '/usr/local/include/freetype2',
 * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
 libpng: found, but unknown version (no pkg-config)
 * Could not find 'libpng' headers in any of
 * '/usr/local/include', '/usr/include', '.'
Tkinter: no
 * Tkinter present, but header files are not  
found.
 * You may need to install development packages.
   wxPython: no
 *  WXAgg's accelerator requires `wx-config'.   
The
 * `wx-config' executable could not be located  
in any
 * directory of the PATH environment variable.  
If you
 * want to build WXAgg, and wx-config is in some
 * other location or has some other name, set  
the
 * WX_CONFIG environment variable to the full  
path of
 * the executable like so:  export WX_CONFIG=/ 
usr/lib
 * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
   Gtk+: no
 * pygtk present but import failed
 Qt: Qt: 3.3.7, PyQt: 3.17
Qt4: no
  Cairo: 1.2.6

OPTIONAL DATE/TIMEZONE DEPENDENCIES
   datetime: present, version unknown
   dateutil: present, version unknown
   pytz: 2006p

OPTIONAL USETEX DEPENDENCIES
 dvipng: 1.5
ghostscript: 8.15.4
  latex: 3.141592
pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
  configobj: matplotlib will provide
   enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]
= 
= 
= 
= 

warning: no files found matching 'NUMARRAY_ISSUES'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'matplotlibrc'
warning: no files found matching 'lib/matplotlib/toolkits'
no previously-included directories found matching 'examples/_tmp_*'
In file included from src/ft2font.cpp:2:
src/ft2font.h:11:22: error: ft2build.h: No such file or directory
src/ft2font.h:12:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:13:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:14:10: error: #include expects FILENAME or FILENAME
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:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:75: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:75: error: ISO C++ forbids declaration of ‘FT_Face’ with  
no type
src/ft2font.h:81: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:81: error: ISO C++ forbids declaration of ‘FT_Face’ with  
no type
src/ft2font.h:121: 

[Matplotlib-users] Color schemes for XY plots?

2008-03-21 Thread Kenneth Miller
All,

A quick question

So i've experimented with pcolor, and it's not really what I'm looking  
for. What I'm attempting to do is plot some XY coordinates, just a  
simple function, with the line being colored differently depending on  
the value of that function. So if perhaps you were plotting  
temperature vs time, you'd see the line change to red when it  
approached higher temperatures and blue when it approached lower  
temperatures.

Any advice as to how to do this?

Regards,
Ken

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How do I change the font size for the default coordinates?

2008-03-21 Thread John Hunter
On Thu, Mar 20, 2008 at 7:32 PM, carlwenrich [EMAIL PROTECTED] wrote:

  I've searched the user manual (and this forum) but I don't see anything that
  helps.


Assuming you mean what we call the tick labels:

import matplotlib
matplotlib.rcParams['xtick.labelsize'] = 14
matplotlib.rcParams['ytick.labelsize']  = 14

These can also be changed in your matplotlibrc file -- see
http://matplotlib.sf.net/matplotlibrc

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 'from matplotlib.cbook import is_scalar, dedent' ImportError: cannot import name dedent

2008-03-21 Thread John Hunter
On Sat, Feb 23, 2008 at 3:25 AM, pmarsh [EMAIL PROTECTED] wrote:
 Hello List,

  I am using python-matplotlib version 0.87.7-0.3ubuntu1(feisty) and
  having some problems with a script that uses it. I get this import error
  and am not sure how to debug it further, any assistance would be greatly
  appreciated.

It looks like the basemap version you are using is assuming a more
recent version of matplotlib.  You will probably either need to
upgrade to  more recent matplotlib (0.91.2 is the most recent) or
downgrade to an older basemap.

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Color schemes for XY plots?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 2:34 PM, Kenneth Miller [EMAIL PROTECTED] wrote:


  So i've experimented with pcolor, and it's not really what I'm looking
  for. What I'm attempting to do is plot some XY coordinates, just a
  simple function, with the line being colored differently depending on
  the value of that function. So if perhaps you were plotting
  temperature vs time, you'd see the line change to red when it
  approached higher temperatures and blue when it approached lower
  temperatures.


The multi-colored line recipe should be enough to get you started:

  http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Vary point color with scatter

2008-03-21 Thread John Hunter
On Tue, Feb 26, 2008 at 3:23 AM, Michaël Douchin
[EMAIL PROTECTED] wrote:

  What is the good way to do what I reach for ?
  I have much trouble to know how to define the c parameter of scatter. I
  saw the arrange thing somewhere in internet, but don't understand what
  it is for.


Have you tried the scatter demos? See for example
http://matplotlib.sf.net/examples/scatter_demo2.py

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 2:00 AM, Eric Firing [EMAIL PROTECTED] wrote:

  Charlie Moad does the Windows releases.  I don't know what compiler he uses.

  It would be nice if some people who have successfully built on Windows
  could collectively assemble a step-by-step account of how to go from a
  bare Win box to a working mpl (preferably compiled with mingw); but
  maybe this would take more effort than it is worth.  I am on shaky
  ground suggesting it, because it is not something I can help with at
  all, and I don't even have a clear picture of what it would require.  I
  gather a similar account would be useful for OS X.

I made fairly detailed notes when I build numpy, scipy and mpl on a
pristine powerbook:
http://ipython.scipy.org/moin/Py4Science/InstallationOSX

Unfortunately, I am having the same compiler error that Zachary and
others are discussing in another thread (on the trunk but not the
branch)

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Alan G Isaac
On Sat, 01 Mar 2008, Francesco Biscani apparently wrote:
 I'm currently working mostly in C++ and exploring 
 integration with Python through Boost.Python+IPython+MPL. 
 I enjoy working in Python, but I'm afraid of making a more 
 consistent switch mainly for fear of losing the static 
 type checking that C++ gives me. I have the horrifying 
 feeling that if I were to write much code in Python 
 I could break it in so many ways just because of this, and 
 I'd have the constant perception of not having my back 
 covered by the compiler, at least for this kind of errors. 



I suspect there is no answer to this fear except trying it.

If you want to hear your fear ridiculed, you can post this
query on comp.lang.python.  If you want to hear your fear
lauded for its sensibility, post it to comp.lang.c++.

That said, note that Python supports properties (getters and 
setters) that can do runtime checking.

Also Python 3 supports function annotations, which someone 
will certainly exploit to provide type checking.  
I guess you might find PEP 3119 (ABCs) relevant as well.

Cheers,
Alan Isaac




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] update: BUG - axes problem update

2008-03-21 Thread Simson Garfinkel
1. Moving to matplotlib-0.91.2 solved the problem with PDF generation  
on log axes.

2. Installing matplotlib-0.91.2 on Linux required installing these  
packages first:
* freetype-devel
* libpng-devel

(Those packages were NOT installed automatically by easy_install)



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] question #2 - labeled bar graphs

2008-03-21 Thread Simson Garfinkel
Is there an easy way to label bars with the value of the bar at that  
point? I am doing log bars and it would be nice to have them labeled.

I guess I can do this manually using text() and the values returned by  
bar(); is there an automatic way to do it?

Thanks!


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PNG filesize

2008-03-21 Thread Eric Firing
Einar M. Einarsson wrote:
 Hi all,
 
 I'm trying to find ways to make the file-size of my PNG images smaller.
 
 When I generate my 660*440px image I get a big 168kb file.
 (8bit RGB color model, has  an alpha channel (need that) but no
 interlacing scheme)
 
 Here it is:
 http://metphys.org/eme/T05.png
 
 I'm using the savefig method of-course.
 
 
 To see how much I could compress it I used pngcrush (the best tool
 according to the interwebs) and got it down to 128kb.
 
 But thats still way to large for my intended use. (plotting results
 from an operational weather model, see. www.belgingur.is
 We are currently using IDL.)
 
  From what I've read about PNG files, which is supposed to be rather
 compact image format, it seems to me that the most effective way is
 to have an indexed color table.
 
 So to cut it short:
 
 Is there any way to save a PNG file with an indexed color table?

Perhaps this should be supported natively in mpl; but until it is, you 
can do the conversion after the fact using pngquant or pngnq. 
Presumably, if you don't in fact have more than 256 colors, this 
conversion will be lossless.

I have not tried this; my suggestion is based on the descriptions of 
pngquant and pngnq packages in Ubuntu feisty.  Here is the latter:


tool for optimizing PNG (Portable Network Graphics) images
Pngnq is a tool for quantizing 32-bit RGBA PNG images to 8-bit RGBA pallete
PNG. It's is an adaptation by Stuart Coyle of Greg Roelf's pnqquant. While
pngquant uses a median cut algorithm, Pngnq uses Anthony Dekker's neuquant
algorithm (http://members.ozemail.com.au/~dekker/NEUQUANT.HTML), generally
resulting in better looking results than pngquant.

Optimizers (like pngcrush and optipng) optimize the compression, usually
losslessly. pngnq quantizes colors down to 256 (or fewer) distinct RGBA
combinations, which is quite lossy. Optimized PNGs are usually two to four
times smaller than the 32-bit versions.

  Homepage: http://www.cybertherial.com/pngnq/pngnq.html
---
 
 Or do you see any other way to shrink the files?
 
 
 Best regards.
 Einar M. Einarsson
 www.belgingur.is
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem with matplotlib and pdflatex

2008-03-21 Thread Alex Coventry

I'm trying to use some matplotlib-generated pdfs in a pdflatex document,
and seeing some extremely weird and disruptive size effects.  The
resulting pdfs can be seen at

http://research.janelia.org/coventry/paper.pdf
http://research.janelia.org/coventry/paper-small.pdf

The first results from the code 

\begin{figure}
  \centering
  \subfigure[Prior distribution]{\label{fig:prior-graph}
\includegraphics[width=6in]{prior-example}
  }
  \subfigure[Posterior distribution]{\label{fig:posterior-graph}
\includegraphics[width=6in]{posterior-example}
  }
\end{figure}

and the second from the same code with width=5cm.  The two pdfs I'm
trying to include are at 

http://research.janelia.org/coventry/prior-example.pdf and
http://research.janelia.org/coventry/posterior-example.pdf

It doesn't matter what order I include them in, I get the same size
effects.  If I generate postscript files with matplotlib and convert
them to pdfs, I don't get this problem.  So I have a workaround, but I
would like to know how to create usable pdfs directly, and thought
reporting this might be useful to matplotlib development.

Best,
Alex

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] question #2 - labeled bar graphs

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 4:18 PM, Simson Garfinkel [EMAIL PROTECTED] wrote:
 Is there an easy way to label bars with the value of the bar at that
  point? I am doing log bars and it would be nice to have them labeled.

  I guess I can do this manually using text() and the values returned by
  bar(); is there an automatic way to do it?

There is nothing built in (though it would be a nice feature).  Here
is a simple example:


import numpy as np
import matplotlib.pyplot as plt

N = 5
menMeans = (20, 35, 30, 35, 27)
menStd =   (2, 3, 4, 1, 2)

ind = np.arange(N)  # the x locations for the groups
width = 0.35   # the width of the bars

fig = plt.figure()
ax = fig.add_subplot(111)
rects1 = ax.bar(ind, menMeans, width, color='r', yerr=menStd)

womenMeans = (25, 32, 34, 20, 25)
womenStd =   (3, 5, 2, 3, 3)
rects2 = ax.bar(ind+width, womenMeans, width, color='y', yerr=womenStd)

# add some
ax.set_ylabel('Scores')
ax.set_title('Scores by group and gender')
ax.set_xticks(ind+width, ('G1', 'G2', 'G3', 'G4', 'G5') )

ax.legend( (rects1[0], rects2[0]), ('Men', 'Women') )

def autolabel(rects):
# attach some text labels
for rect in rects:
height = rect.get_height()
ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d'%int(height),
ha='center', va='bottom')

autolabel(rects1)
autolabel(rects2)
#fig.savefig('barchart_demo')
plt.show()

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib threadsafe?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 1:40 AM, Eric Firing [EMAIL PROTECTED] wrote:

   Out of interest, how does one tell MPL to start a new figure and forget
   everything that's gone before?

  You can minimize the amount of package and module-level state
  information by using the oo interface: see examples/agg_oo.py.  If you
  change any rcParams dictionary entries, typically using the rc function,
  then you can restore the dictionary to its default condition with the
  rcdefaults() function.

I think it is comparatively rare to modify rc params within code (and
never necessary since you can achieve the same by setting properties
directly using the API) so if the rc params are the only global
information we are using (and I am not aware of other problems off the
top of my head but you might be well served to post to the antigrain
mailing list to see if agg is thread safe) it shouldn't pose a serious
problem.

JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-21 Thread Chris Withers
Hey Matthias,

Matthias Michler wrote:
 maybe something like the following helps you:
 -
 from pylab import *
 from time import sleep
 
 ion() # interactive mode 'on'
 figure()
 ax = subplot(111, autoscale_on=True)
 
 x, y = [0], [0]
 line = plot(x, y, label=my_data)[0]  
 # get the line-object as the first 
 element 
 # of the tuple returned by plot
 legend()
 for i in arange(10):
 x.append(i)   # append new values
 y.append(i**2)
 line.set_data(x,y)# reset data
 ax.relim()# reset axes limits
 ax.autoscale_view()   # rescale axes
 draw()# redraw current figure
 sleep(0.5)# wait 0.5 seconds
 
 ioff()

This is perfect, except for one little thing...

My x-axis is time, and as new points are plotted, even though I'm 
following the above recipe pretty closely, the x-tick spacing isn't 
getting sorted out, so I end up with just a jumble as the tick labels 
for the x-axis. Do you know why this might be?

 I don't know how to make this somehow interactive concerning the data input. 
 but maybe you save the data to a file and read them every 15 or 20 minutes.

This isn't a problem, I just run in a while True loop and leave it 
running until I close the plot window.

Shame I get that horrible exception when I do close the plot window, 
wish I knew how to make it stop :-S

cheers,

Chris

-- 
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Simson Garfinkel
Dear Francesco,

I'm sorry --- it is hard not to read your message and laugh. You  
really think that the static type checking of C++ is protecting you?  
Well, it may be, but C++ is unsafe in so many other ways that you are  
not doing yourself a favor by working in it.

If you want to use a typesafe language, you really should be using  
Java or Python.  Java will give you both static and dynamic type  
checking. Python will give you runtime type checking. C++ gives you a  
good feeling until something goes wrong and it crashes.



On Feb 29, 2008, at 5:29 PM, Francesco Biscani wrote:

 Hi all,

 Christopher Barker wrote:
 The only difference that my users see between an app written in  
 Python
 and C++ is that the Python one has more features...and fewer bugs.


 I'm currently working mostly in C++ and exploring integration with
 Python through Boost.Python+IPython+MPL. I enjoy working in Python,  
 but
 I'm afraid of making a more consistent switch mainly for fear of  
 losing
 the static type checking that C++ gives me. I have the horrifying
 feeling that if I were to write much code in Python I could break it  
 in
 so many ways just because of this, and I'd have the constant  
 perception
 of not having my back covered by the compiler, at least for this  
 kind of
 errors.

 It's true that probably I'd get the software up and running in less  
 time
 with Python, but I think that I would spend much more time making sure
 it behaves as expected and fortifying it, so to speak. Am I totally
 offset here?

 Francesco.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Andrew Charles
Yes it was the matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg I tried to
install. I've posted the entire easy_install output below. I'll let
the list know if i resolve the problem.

Andrew

---

Processing matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg
creating 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg
Extracting matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg to
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
Adding matplotlib 0.91.2 to easy-install.pth file

Installed 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg
Processing dependencies for matplotlib==0.91.2
Searching for matplotlib==0.91.2
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading 
http://sourceforge.net/project/showfiles.php?group_id=80706package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Best match: matplotlib 0.91.2
Downloading 
http://downloads.sourceforge.net/matplotlib/matplotlib-0.91.2.tar.gz?modtime=1199627250big_mirror=0
Processing matplotlib-0.91.2.tar.gz
Running matplotlib-0.91.2/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-QGmbAu/matplotlib-0.91.2/egg-dist-tmp-hsIe8R

BUILDING MATPLOTLIB
matplotlib: 0.91.2
python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)  [GCC
4.0.1 (Apple Computer, Inc. build 5363)]
  platform: darwin

REQUIRED DEPENDENCIES
 numpy: 1.0.5.dev4897
 freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.24
   Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
  wxPython: no
* wxPython not found
  Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to import gtk in your build/install environment
Qt: no
   Qt4: no
 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
  datetime: present, version unknown
  dateutil: matplotlib will provide
  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
dvipng: no
   ghostscript: 8.57
 latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
 configobj: matplotlib will provide
  enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

warning: no files found matching 'NUMARRAY_ISSUES'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'matplotlibrc'
warning: no files found matching 'lib/matplotlib/toolkits'
no previously-included directories found matching 'examples/_tmp_*'
In file included from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
 from ./CXX/WrapPython.h:47,
 from ./CXX/Extensions.hxx:48,
 from src/ft2font.h:18,
 from src/ft2font.cpp:2:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1:
warning: SIZEOF_LONG redefined
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
 from src/ft2font.h:12,
 from src/ft2font.cpp:2:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning:
this is the location of the previous definition
In file included from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
 from ./CXX/WrapPython.h:47,
 from ./CXX/Extensions.hxx:48,
 from src/ft2font.h:18,
 from src/ft2font.cpp:2:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1:
warning: SIZEOF_LONG redefined
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
 from src/ft2font.h:12,
 from src/ft2font.cpp:2:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning:
this is the location of the previous definition
In file included from /usr/include/math.h:26,
 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
 from
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
 from ./CXX/WrapPython.h:47,
 from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function ‘scalb’
ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccG9WQI9.out (No such