Re: [Matplotlib-users] API_CHANGES & MIGRATION.txt

2008-11-19 Thread Michael Droettboom
I'll go ahead and convert these.

Cheers,
Mike

John Hunter wrote:
> On Tue, Nov 18, 2008 at 3:41 AM, Benjamin Bardiaux <[EMAIL PROTECTED]> wrote:
>   
>> Dear matplotlib users,
>>
>> I'l looking for the files
>>
>> http://matplotlib.sf.net/API_CHANGES
>> http://matplotlib.sourceforge.net/MIGRATION.txt
>>
>> that seem to have disappear from the new sf website.
>> 
>
> Thanks -- I've re-added these and put links to them in the "need help"
> sidebar at http://matplotlib.sf.net.  You may need to refresh your
> browser to see the new links.  We should include these in the rest
> docs proper, so they are exposed to the sphinx search tool, but I just
> went with the quick and easy for now.
>
> JDH
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] API_CHANGES & MIGRATION.txt

2008-11-19 Thread Michael Droettboom
I have converted API_CHANGES to "reST-light", meaning most of the older 
notes are just literal text blocks.

MIGRATION.txt is mostly out of date (particularly the part about 0.98.x 
being "bleeding edge").  The meat of its information (migrating from 
0.91 to 0.98) is actually just a reference to API_CHANGES.  The other 
useful bits of information---how to check out from a branch and use 
svnmerge.py---are already duplicated in the developer documentation.  
I'd suggest just removing the file.  Any objections?

The links in the sidebar will need to be updated/removed.  I don't see 
the new sidebar in SVN.  Did you just make the changes locally, John?

Cheers,
Mike

Michael Droettboom wrote:
> I'll go ahead and convert these.
>
> Cheers,
> Mike
>
> John Hunter wrote:
>   
>> On Tue, Nov 18, 2008 at 3:41 AM, Benjamin Bardiaux <[EMAIL PROTECTED]> wrote:
>>   
>> 
>>> Dear matplotlib users,
>>>
>>> I'l looking for the files
>>>
>>> http://matplotlib.sf.net/API_CHANGES
>>> http://matplotlib.sourceforge.net/MIGRATION.txt
>>>
>>> that seem to have disappear from the new sf website.
>>> 
>>>   
>> Thanks -- I've re-added these and put links to them in the "need help"
>> sidebar at http://matplotlib.sf.net.  You may need to refresh your
>> browser to see the new links.  We should include these in the rest
>> docs proper, so they are exposed to the sphinx search tool, but I just
>> went with the quick and easy for now.
>>
>> JDH
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] API_CHANGES & MIGRATION.txt

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 8:46 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> I have converted API_CHANGES to "reST-light", meaning most of the older
> notes are just literal text blocks.

Excellent, thanks.

> MIGRATION.txt is mostly out of date (particularly the part about 0.98.x
> being "bleeding edge").  The meat of its information (migrating from 0.91 to
> 0.98) is actually just a reference to API_CHANGES.  The other useful bits of
> information---how to check out from a branch and use svnmerge.py---are
> already duplicated in the developer documentation.  I'd suggest just
> removing the file.  Any objections?

None from me.

> The links in the sidebar will need to be updated/removed.  I don't see the
> new sidebar in SVN.  Did you just make the changes locally, John?

Yep, forgot to commit them.  They should be in now.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] complex labels

2008-11-19 Thread David Geller
Is it possible to easily create "complex labels", rather than simple 
strings? I would like each label to be a text block, composed of strings 
of various fonts and colors and relative positioning.

Thanks!


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation problem

2008-11-19 Thread domenico09

I got the same problem on  my portable(windowx XP) but not on my desk
top(windows XP) !
I reinstalled python, numpy and matplotlib either from internet and from my
desk top (where things works well) but I got the same problem!
thanks for any sugegstion
Best Regards
Domenico


Frank Lagor wrote:
> 
> Hi,
> 
> I am sorry to bug you all with an installation problem, but I need
> some additional help to get this figured out.
> 
> I previously had a matplotlib installed and working fine, but it was
> necessary for me to redo some other installations like numpy when I
> needed a complete lapack library.  This also led to me installing
> another version of g77, because numpy needed a specific library that
> was only provide by the g77 version of fortran for some reason.
> Anyways, numpy works great but I went back to install matplotlib and I
> ran into trouble.  After the installation process, if I try to import
> matplotlib.pylab I get the following errors:
> 
> from matplotlib._path import affine_transform
> ImportError: /ronaldo/pkg/dfranci/gcc-g77-3.4.6/lib64/libgcc_s.so.1:
> version `GCC_4.2.0' not found (required by /usr/lib64/libstdc++.so.6)
> 
> Is this a problem that I can fix in the matplotlib installation or do
> I need to go back up to the numpy installation?
> 
> I should note that I do not have gcc-4.2.0 on my system.
> 
> Thanks in advance,
> Frank
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Installation-problem-tp20427671p20576644.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Save a plot background

2008-11-19 Thread Hrafnkell Pálsson



> This will turn off the rendering of both the background rectangle as
> well as all the ticks and their associated labels, ticklines and
> gridlines.  Perhaps Jeff can advise you vis-a-vis the basemap api what
> the equivalent is
> 

Ok, I tested your example and see what you mean.
But if I understood you correctly this won't allow me to retain the
watermark and the dots I've used for marking cities.
It would be nice if I could retain the whole background, if it wouldn't
matter whether I retrieved the background or actually plotted it.
But even just avoiding plotting the coastline every time would save a lot of
time.



> Perhaps Jeff can advise you vis-a-vis the basemap api what
> the equivalent is 
> 

Could you, Jeff, give me a nudge in the right direction? I've read through
the basemap documentation but didn't notice anything that might help.

Hrafnkell
-- 
View this message in context: 
http://www.nabble.com/Save-a-plot-background-tp20519596p20582574.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Save a plot background

2008-11-19 Thread Jeff Whitaker
Hrafnkell Pálsson wrote:
>
>   
>> This will turn off the rendering of both the background rectangle as
>> well as all the ticks and their associated labels, ticklines and
>> gridlines.  Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is
>>
>> 
>
> Ok, I tested your example and see what you mean.
> But if I understood you correctly this won't allow me to retain the
> watermark and the dots I've used for marking cities.
> It would be nice if I could retain the whole background, if it wouldn't
> matter whether I retrieved the background or actually plotted it.
> But even just avoiding plotting the coastline every time would save a lot of
> time.
>
>
>
>   
>> Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is 
>>
>> 
>
> Could you, Jeff, give me a nudge in the right direction? I've read through
> the basemap documentation but didn't notice anything that might help.
>
> Hrafnkell
>   

Hrafnkell:  You can go by the example John gave,  using figure and axes 
instance methods.  Basemap just draws stuff on the current figure and axes 
instances.

Are you recreating the Basemap instance every time you generate a plot?  If the 
projection isn't changing, you can save a lot of overhead by re-using a single 
Basemap instance.  You can even pickle it to a file for use in another script.

-Jeff

-- 
Jeffrey S. Whitaker Phone  : (303)497-6313
Meteorologist   FAX: (303)497-6449
NOAA/OAR/PSD  R/PSD1Email  : [EMAIL PROTECTED]
325 BroadwayOffice : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Scatter is slow to render many points

2008-11-19 Thread Gregory Desvignes

Hi all,

I'm using matplotlib inside the backend_gtkagg with the scatter function 
to draw a simple graph with 2 to 4 points. The points may have 
only 2 differents sizes and 4 differents color depending on some criteria 
and should be 'clickable'.

The problem is that the plot rendering is very slow when it deals with 
~1 points, especially if we compare it with the rendering of the plot 
function using simple points (as the "data_browser.py" example)

Does anybody knows if there is a way to make things going a little 
bit faster?

Thanks,
Gregory

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Bug saving semilogy plots with a axvline

2008-11-19 Thread wafels

Hello,

I can confirm and extend this bug report.  The axvline also moves to the
wrong position on resizing the matplotlib display window (Mac OS X 10.5.5,
Python 2.5.1, Matplotlib 0.98.3).

Thanks



João Luís Silva-2 wrote:
> 
> Hi,
> 
> A vertical line on the x axis of a semilogy plot will be in the correct 
> position, but when saved with the save button of the toolbar it will be 
> placed in an incorrect position, although savefig will do the right 
> thing. Furthermore, zooming will not move the axvline correctly.
> 
> Matplotlib version: 0.98.3
> 
> Example script:
> -
> 
> import matplotlib.pyplot as pl
> import numpy as np
> 
> x = np.linspace(0.0,1.0,100)
> 
> pl.semilogy(x,x**2)
> pl.axvline(x=0.5,ls='--',color='k')
> pl.show()
> #pl.savefig("saved_image.png")
> -
> 
> image.png was saved using the toolbar, saved_image.png using savefig.
> 
> Regards,
> João Silva
> 
>  
>  
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bug-saving-semilogy-plots-with-a-axvline-tp20565983p20582273.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Can't create graphs

2008-11-19 Thread Ron Brennan
Hello,

I am completely new to Matplotlib.  I can't seem to get my script (a copy
and paste from a Histogram example) to generate a graph. When I run my
script, the command prompt returns.

Is there something I am missing?

#
# histogram.py
#
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt

mu, sigma = 100, 15
x = mu + sigma*np.random.randn(1)

# the histogram of the data
n, bins, patches = plt.hist(x, 50, normed=1, facecolor='green', alpha=0.75)

# add a 'best fit' line
y = mlab.normpdf( bins, mu, sigma)
l = plt.plot(bins, y, 'r--', linewidth=1)

plt.xlabel('Smarts')
plt.ylabel('Probability')
plt.title(r'$\mathrm{Histogram\ of\ IQ:}\ \mu=100,\ \sigma=15$')
plt.axis([40, 160, 0, 0.03])
plt.grid(True)

plt.show()

Calling with:
python histogram.py
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Yang Zhang
Hi, does anybody know why I'm getting this error importing pylab? 
Thanks in advance!

Traceback (most recent call last):
   File "/Users/Kates/Documents/ps11.py", line 9, in 
 from pylab import *
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
 
line 1, in 
 from matplotlib.pylab import *
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
 
line 208, in 
 from matplotlib import mpl  # pulls in most modules
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
 
line 3, in 
 from matplotlib import axis
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
 
line 20, in 
 from font_manager import FontProperties
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
 
line 40, in 
 from matplotlib import ft2font
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
 
2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
   Referenced from: 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
   Reason: image not found

-- 
Yang Zhang
http://www.mit.edu/~y_z/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation problem

2008-11-19 Thread Frank Lagor
On Wed, Nov 19, 2008 at 4:52 AM,  <[EMAIL PROTECTED]> wrote:
>
> Frank Lagor wrote:
>>
>> Hi,
>>
>> I am sorry to bug you all with an installation problem, but I need
>> some additional help to get this figured out.
>>
>> I previously had a matplotlib installed and working fine, but it was
>> necessary for me to redo some other installations like numpy when I
>> needed a complete lapack library.  This also led to me installing
>> another version of g77, because numpy needed a specific library that
>> was only provide by the g77 version of fortran for some reason.
>> Anyways, numpy works great but I went back to install matplotlib and I
>> ran into trouble.  After the installation process, if I try to import
>> matplotlib.pylab I get the following errors:
>>
>> from matplotlib._path import affine_transform
>> ImportError: /ronaldo/pkg/dfranci/gcc-g77-3.4.6/lib64/libgcc_s.so.1:
>> version `GCC_4.2.0' not found (required by /usr/lib64/libstdc++.so.6)
>>
>> Is this a problem that I can fix in the matplotlib installation or do
>> I need to go back up to the numpy installation?
>>
>> I should note that I do not have gcc-4.2.0 on my system.
>>
>> Thanks in advance,
>> Frank
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> Quoted from:
> http://www.nabble.com/Installation-problem-tp20427671p20427671.html
>
> I have the same problem on my portable (windows XP) but everithing works on 
> my desk top!!
> Do you have received any answer?
> Thanks
> Domenico
>
>
>


Hi Domenico,

Yes, the problem was resolved and it all works great now.  I can't
tell you exactly what fixed it because I am no an expert on library
files, compiling stuff, etc.  However, here is what I thought:  I
thought that the libstdc++.so was not finding the correct library
files for the compiler or that there was a difference between the
version of gcc compiler used to make the libstdc++.so file and the gcc
compiler that I used to build other python related dependencies like
numpy.  So here is what I did:  (I'm sorry but I do not know how to do
this in wondows.  I only know what I did linux)

1) Installed a brand new version on the gcc suite of compilers on my
computer.  (I took a long time to do this, but I wanted to make sure
that all the library files and the compilers that I used matched up
and worked well.)  I seem to recall that there was one flag which was
important: I think it was --with-gnu-ld, which tells gcc to use the
gnu ld program for linking library files.   Please also be sure to set
the LD_LIBRARY_PATH variable to find all the appropriate library
files.

2) I rebuilt LAPACK and ATLAS (because I was having trouble with them
too and I knew that numpy depended on the lapack routines.

3) I rebuilt numpy.

4) I installed matplotlib.

I know this probably seems like overkill, but it is what I had to do
to get my machine working.

Sorry I can't be of more help, these issues are pretty specific to the
individual computer.

Best of luck,

Frank

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Bug saving semilogy plots with a axvline

2008-11-19 Thread Eric Firing
wafels wrote:
> Hello,
> 
> I can confirm and extend this bug report.  The axvline also moves to the
> wrong position on resizing the matplotlib display window (Mac OS X 10.5.5,
> Python 2.5.1, Matplotlib 0.98.3).
> 
> Thanks

It looks like the transform for the line made by axvline is not getting 
updated when view limits change.  The problem is found in svn, after the 
changes I made to axvline, as well as in 0.98.3.  I can't track it down 
right now.

Eric

> 
> 
> 
> João Luís Silva-2 wrote:
>> Hi,
>>
>> A vertical line on the x axis of a semilogy plot will be in the correct 
>> position, but when saved with the save button of the toolbar it will be 
>> placed in an incorrect position, although savefig will do the right 
>> thing. Furthermore, zooming will not move the axvline correctly.
>>
>> Matplotlib version: 0.98.3
>>
>> Example script:
>> -
>>
>> import matplotlib.pyplot as pl
>> import numpy as np
>>
>> x = np.linspace(0.0,1.0,100)
>>
>> pl.semilogy(x,x**2)
>> pl.axvline(x=0.5,ls='--',color='k')
>> pl.show()
>> #pl.savefig("saved_image.png")
>> -
>>
>> image.png was saved using the toolbar, saved_image.png using savefig.
>>
>> Regards,
>> João Silva
>>
>>  
>>  
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Can't create graphs

2008-11-19 Thread Goyo
Make sure yu're using a backend with a user interface.

http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend

El mié, 19-11-2008 a las 10:49 -0500, Ron Brennan escribió:
> Hello,
> 
> I am completely new to Matplotlib.  I can't seem to get my script (a
> copy and paste from a Histogram example) to generate a graph. When I
> run my script, the command prompt returns.
> 
> Is there something I am missing?
> 
> # 
> # histogram.py 
> # 
> import numpy as np
> import matplotlib.mlab as mlab
> import matplotlib.pyplot as plt
> 
> mu, sigma = 100, 15
> x = mu + sigma*np.random.randn(1)
> 
> # the histogram of the data
> n, bins, patches = plt.hist(x, 50, normed=1, facecolor='green',
> alpha=0.75)
> 
> # add a 'best fit' line
> y = mlab.normpdf( bins, mu, sigma)
> l = plt.plot(bins, y, 'r--', linewidth=1)
> 
> plt.xlabel('Smarts')
> plt.ylabel('Probability')
> plt.title(r'$\mathrm{Histogram\ of\ IQ:}\ \mu=100,\ \sigma=15$')
> plt.axis([40, 160, 0, 0.03])
> plt.grid(True)
> 
> plt.show()
> 
> Calling with:
> python histogram.py
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___ Matplotlib-users mailing list 
> Matplotlib-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
It appears that matplotlib is having trouble finding the freetype
dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
check that folder to see if the dylib is there. If it isn't, reinstall
the X11 dev tools. If it is, something is wrong with the dynamic lib
opening, so I'd recommend removing matplotlib from your
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
folder and doing a fresh build/install.

Josh

On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <[EMAIL PROTECTED]> wrote:
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
>
> Traceback (most recent call last):
>   File "/Users/Kates/Documents/ps11.py", line 9, in 
> from pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in 
> from matplotlib.pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in 
> from matplotlib import mpl  # pulls in most modules
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in 
> from matplotlib import axis
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in 
> from font_manager import FontProperties
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in 
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>   Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>   Reason: image not found
>
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Embedding Basemap in a wx app

2008-11-19 Thread Mauro Cavalcanti
Dear ALL,

Greetings. Trying to develop a desktop application for interactive
mapping using wxPython and Matplotlib, I have been doing some
experiments with embedding maps generated by the Basemap module into a
wxPython frame.

Although there are many nice exemples of using Matplotlib graphs in
wxWpython and other GUI frontends, I could not find any examples of
doing this with the Basemap module.

As a quick start, I put together the the code below (adapted from one
of the examples available in the Matplotlib website):

--

#!/usr/bin/env python
import matplotlib
import matplotlib.pyplot

from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.figure import Figure

from mpl_toolkits.basemap import Basemap

from wx import *

class CanvasFrame(Frame):
def __init__(self):
Frame.__init__(self,None,-1,
'CanvasFrame',size=(550,350))

self.SetBackgroundColour(NamedColor("WHITE"))

self.figure = Figure()

self.canvas = FigureCanvas(self, -1, self.figure)

self.sizer = BoxSizer(VERTICAL)
self.sizer.Add(self.canvas, 1, LEFT | TOP | GROW)
self.SetSizer(self.sizer)
self.Fit()

self.add_toolbar()  # comment this out for no toolbar

# This functions plots the Basemap
self.plot_map()

def add_toolbar(self):
self.toolbar = NavigationToolbar2Wx(self.canvas)
self.toolbar.Realize()
if Platform == '__WXMAC__':
# Mac platform (OSX 10.3, MacPython) does not seem to 
cope with
# having a toolbar in a sizer. This work-around gets 
the buttons
# back, but at the expense of having the toolbar at the 
top
self.SetToolBar(self.toolbar)
else:
# On Windows platform, default window size is 
incorrect, so set
# toolbar width to figure width.
tw, th = self.toolbar.GetSizeTuple()
fw, fh = self.canvas.GetSizeTuple()
# By adding toolbar in sizer, we are able to put it at 
the bottom
# of the frame - so appearance is closer to GTK version.
# As noted above, doesn't work for Mac.
self.toolbar.SetSize(Size(fw, th))
self.sizer.Add(self.toolbar, 0, LEFT | EXPAND)
# update the axes menu on the toolbar
self.toolbar.update()

def plot_map(self):
map = Basemap()
map.drawcoastlines()
map.drawcountries()
map.drawmapboundary()
map.fillcontinents(color='lime', lake_color='aqua')
map.drawmapboundary(fill_color='aqua')
matplotlib.pyplot.show()

class App(App):

def OnInit(self):
'Create the main window and insert the custom frame'
frame = CanvasFrame()
frame.Show(True)
return True

app = App(0)
app.MainLoop()

--

Well, the above code works, but notice that after the Basemap plot is
displayed on a usual plotting window, *another*, blank, plotting
window appears! Can anyone figure out how to avoid that?

Another problem is that the instruction
"self.canvas.print_figure('test.png',dpi=100)", if used in place of
matplotlib.pyplot.show() method, has not effect and no figure is
written to disk.

Also, a call to method "self.canvas.draw()" has not effect, either.

Any hints?

Thanks in advance for any assistance you can provide.

With best regards,

-- 
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: [EMAIL PROTECTED]
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib egg finds wrong version of numpy

2008-11-19 Thread Christopher Barker
Jeff Mangum wrote:
>> BUILDING MATPLOTLIB
>> matplotlib: 0.98.3
>> python: 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)  [GCC
>> 4.0.1 (Apple Inc. build 5465)]
>>   platform: darwin

You'll need to get easy_install to use the right Python anyway, but do 
you need to build MPL? can you use the binary:

matplotlib-0.98.3-py2.5-macosx-10.3.egg

(note that that is OS-X 10.3 and above)

you may have to re-name it to:

matplotlib-0.98.3-py2.5.egg

to get easy_install to recognize it.


-CHB


-- 
Christopher Barker, Ph.D.
Oceanographer

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

[EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
The sensitive root folders (like /usr) are hidden from the Finder so
that it's hard for someone that doesn't know about them to
accidentally delete/move something sensitive that's supposed to stay
put. You can get around this easily either with Terminal or Finder
itself.

If you're comfortable with Terminal:

-Open Terminal
-Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
-Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
-Look at the output. It should spit back "libfreetype.6.dylib" at you.
If it spits back nothing, the file is missing.

If you're not comfortable with Terminal:

-Open a Finder window
-From the menubar, click Go -> Go to Folder...
-Type "/usr/X11R6/lib" (without quotes) and push ENTER
-Look in the list of files yourself to see if the file
libfreeype.6.dylib is there.

Also, for future reference, when getting help on a mailing list, make
sure to hit "Reply-all" instead of just "Reply" so that the
conversation stays on the mailing list and doesn't turn into a private
email correspondence between just you and one other person.

Josh

On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
> Thanks!  I don't know how to find the /usr/X11R6/lib folder though.  I
> searched for it, but I couldn't find it.
> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>
> It appears that matplotlib is having trouble finding the freetype
> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
> check that folder to see if the dylib is there. If it isn't, reinstall
> the X11 dev tools. If it is, something is wrong with the dynamic lib
> opening, so I'd recommend removing matplotlib from your
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> folder and doing a fresh build/install.
> Josh
> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <[EMAIL PROTECTED]> wrote:
>
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
> Traceback (most recent call last):
>   File "/Users/Kates/Documents/ps11.py", line 9, in 
> from pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in 
> from matplotlib.pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in 
> from matplotlib import mpl  # pulls in most modules
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in 
> from matplotlib import axis
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in 
> from font_manager import FontProperties
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in 
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>   Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>   Reason: image not found
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
Could you try just typing "cd /usr", then "ls" and checking what
folders are in there? Is there an X11 folder in there at all?

Josh

On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
> So I have downloaded matplotlib I'm sure, but when I type "cd
> /usr/X11R6/lib" into the terminal is says "no such file or directory."
> Do you know what this means?
> Thanks for all your help,
> Katie
> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>
> The sensitive root folders (like /usr) are hidden from the Finder so
> that it's hard for someone that doesn't know about them to
> accidentally delete/move something sensitive that's supposed to stay
> put. You can get around this easily either with Terminal or Finder
> itself.
> If you're comfortable with Terminal:
> -Open Terminal
> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
> If it spits back nothing, the file is missing.
> If you're not comfortable with Terminal:
> -Open a Finder window
> -From the menubar, click Go -> Go to Folder...
> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
> -Look in the list of files yourself to see if the file
> libfreeype.6.dylib is there.
> Also, for future reference, when getting help on a mailing list, make
> sure to hit "Reply-all" instead of just "Reply" so that the
> conversation stays on the mailing list and doesn't turn into a private
> email correspondence between just you and one other person.
> Josh
> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
>
> Thanks!  I don't know how to find the /usr/X11R6/lib folder though.  I
> searched for it, but I couldn't find it.
> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
> It appears that matplotlib is having trouble finding the freetype
> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
> check that folder to see if the dylib is there. If it isn't, reinstall
> the X11 dev tools. If it is, something is wrong with the dynamic lib
> opening, so I'd recommend removing matplotlib from your
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> folder and doing a fresh build/install.
> Josh
> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <[EMAIL PROTECTED]> wrote:
> Hi, does anybody know why I'm getting this error importing pylab?
> Thanks in advance!
> Traceback (most recent call last):
>   File "/Users/Kates/Documents/ps11.py", line 9, in 
> from pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
> line 1, in 
> from matplotlib.pylab import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 208, in 
> from matplotlib import mpl  # pulls in most modules
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
> line 3, in 
> from matplotlib import axis
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
> line 20, in 
> from font_manager import FontProperties
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
> line 40, in 
> from matplotlib import ft2font
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>   Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>   Reason: image not found
> --
> Yang Zhang
> http://www.mit.edu/~y_z/
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>
> --
> Katie Thomas
> Department of Biology
> Massachusetts Institute of Technology | Class of 2010
>
>
>
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Christopher Barker
Joshua Lippai wrote:
> If you're not comfortable with Terminal:
> 
> -Open a Finder window
> -From the menubar, click Go -> Go to Folder...


You can also re-set finder to show you the hidden dirs -- I always have 
mine set up that way. The easiest way is to use a utility called 
"TinkerTool", but you can also change the finder setting with the 
command line:

http://lifehacker.com/software/command-line/show-hidden-files-in-finder-188892.php


-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

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

[EMAIL PROTECTED]

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
Either way, the problem is that matplotlib is trying to access a file
somewhere that doesn't exist (and needs to exist). Make sure you have
X11 installed on the computer (simple spotlight search should turn up
the app frontend), and then install the X11 package from Apple's Xcode
developer tools (available on the install discs for the operating
system or online from developer.apple.com in the downloads section of
the members site with a free ADC account. If you end up downloading
the tools, keep in mind that Xcode Developer Tools 2.5 are the latest
working version for OS X 10.4, and 3.1.1 is the latest working version
for 10.5 (since it's a large download). Once you're sure you have the
X11 tools installed, remove matplotlib and do a clean install.

Josh

On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
> Could you try just typing "cd /usr", then "ls" and checking what
> folders are in there? Is there an X11 folder in there at all?
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
>> So I have downloaded matplotlib I'm sure, but when I type "cd
>> /usr/X11R6/lib" into the terminal is says "no such file or directory."
>> Do you know what this means?
>> Thanks for all your help,
>> Katie
>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>>
>> The sensitive root folders (like /usr) are hidden from the Finder so
>> that it's hard for someone that doesn't know about them to
>> accidentally delete/move something sensitive that's supposed to stay
>> put. You can get around this easily either with Terminal or Finder
>> itself.
>> If you're comfortable with Terminal:
>> -Open Terminal
>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
>> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
>> If it spits back nothing, the file is missing.
>> If you're not comfortable with Terminal:
>> -Open a Finder window
>> -From the menubar, click Go -> Go to Folder...
>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
>> -Look in the list of files yourself to see if the file
>> libfreeype.6.dylib is there.
>> Also, for future reference, when getting help on a mailing list, make
>> sure to hit "Reply-all" instead of just "Reply" so that the
>> conversation stays on the mailing list and doesn't turn into a private
>> email correspondence between just you and one other person.
>> Josh
>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
>>
>> Thanks!  I don't know how to find the /usr/X11R6/lib folder though.  I
>> searched for it, but I couldn't find it.
>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>> It appears that matplotlib is having trouble finding the freetype
>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>> check that folder to see if the dylib is there. If it isn't, reinstall
>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>> opening, so I'd recommend removing matplotlib from your
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
>> folder and doing a fresh build/install.
>> Josh
>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <[EMAIL PROTECTED]> wrote:
>> Hi, does anybody know why I'm getting this error importing pylab?
>> Thanks in advance!
>> Traceback (most recent call last):
>>   File "/Users/Kates/Documents/ps11.py", line 9, in 
>> from pylab import *
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
>> line 1, in 
>> from matplotlib.pylab import *
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
>> line 208, in 
>> from matplotlib import mpl  # pulls in most modules
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
>> line 3, in 
>> from matplotlib import axis
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
>> line 20, in 
>> from font_manager import FontProperties
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
>> line 40, in 
>> from matplotlib import ft2font
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>>   Referenced from:
>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>>   Reason: image not found
>> --
>> Yang Zhang
>> http://www.mit.edu/~y_z/
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a 

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Joshua Lippai
Note: If you don't have X11 installed at all (not just the dev tools,
but not even X11 itself, which would mean you're running something
pre_leopard I assume), you can install this as one of the optional
components of your OS X install disc.

Josh

On Wed, Nov 19, 2008 at 1:11 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
> Either way, the problem is that matplotlib is trying to access a file
> somewhere that doesn't exist (and needs to exist). Make sure you have
> X11 installed on the computer (simple spotlight search should turn up
> the app frontend), and then install the X11 package from Apple's Xcode
> developer tools (available on the install discs for the operating
> system or online from developer.apple.com in the downloads section of
> the members site with a free ADC account. If you end up downloading
> the tools, keep in mind that Xcode Developer Tools 2.5 are the latest
> working version for OS X 10.4, and 3.1.1 is the latest working version
> for 10.5 (since it's a large download). Once you're sure you have the
> X11 tools installed, remove matplotlib and do a clean install.
>
> Josh
>
> On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
>> Could you try just typing "cd /usr", then "ls" and checking what
>> folders are in there? Is there an X11 folder in there at all?
>>
>> Josh
>>
>> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
>>> So I have downloaded matplotlib I'm sure, but when I type "cd
>>> /usr/X11R6/lib" into the terminal is says "no such file or directory."
>>> Do you know what this means?
>>> Thanks for all your help,
>>> Katie
>>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:
>>>
>>> The sensitive root folders (like /usr) are hidden from the Finder so
>>> that it's hard for someone that doesn't know about them to
>>> accidentally delete/move something sensitive that's supposed to stay
>>> put. You can get around this easily either with Terminal or Finder
>>> itself.
>>> If you're comfortable with Terminal:
>>> -Open Terminal
>>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
>>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
>>> -Look at the output. It should spit back "libfreetype.6.dylib" at you.
>>> If it spits back nothing, the file is missing.
>>> If you're not comfortable with Terminal:
>>> -Open a Finder window
>>> -From the menubar, click Go -> Go to Folder...
>>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER
>>> -Look in the list of files yourself to see if the file
>>> libfreeype.6.dylib is there.
>>> Also, for future reference, when getting help on a mailing list, make
>>> sure to hit "Reply-all" instead of just "Reply" so that the
>>> conversation stays on the mailing list and doesn't turn into a private
>>> email correspondence between just you and one other person.
>>> Josh
>>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
>>>
>>> Thanks!  I don't know how to find the /usr/X11R6/lib folder though.  I
>>> searched for it, but I couldn't find it.
>>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
>>> It appears that matplotlib is having trouble finding the freetype
>>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
>>> check that folder to see if the dylib is there. If it isn't, reinstall
>>> the X11 dev tools. If it is, something is wrong with the dynamic lib
>>> opening, so I'd recommend removing matplotlib from your
>>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
>>> folder and doing a fresh build/install.
>>> Josh
>>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <[EMAIL PROTECTED]> wrote:
>>> Hi, does anybody know why I'm getting this error importing pylab?
>>> Thanks in advance!
>>> Traceback (most recent call last):
>>>   File "/Users/Kates/Documents/ps11.py", line 9, in 
>>> from pylab import *
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py",
>>> line 1, in 
>>> from matplotlib.pylab import *
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
>>> line 208, in 
>>> from matplotlib import mpl  # pulls in most modules
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py",
>>> line 3, in 
>>> from matplotlib import axis
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
>>> line 20, in 
>>> from font_manager import FontProperties
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py",
>>> line 40, in 
>>> from matplotlib import ft2font
>>> ImportError:
>>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
>>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
>>>   Referenced from:
>>> /Library

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Katie Thomas
So I have downloaded matplotlib I'm sure, but when I type "cd /usr/ 
X11R6/lib" into the terminal is says "no such file or directory."

Do you know what this means?
Thanks for all your help,
Katie

On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:


The sensitive root folders (like /usr) are hidden from the Finder so
that it's hard for someone that doesn't know about them to
accidentally delete/move something sensitive that's supposed to stay
put. You can get around this easily either with Terminal or Finder
itself.

If you're comfortable with Terminal:

-Open Terminal
-Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
-Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
-Look at the output. It should spit back "libfreetype.6.dylib" at you.
If it spits back nothing, the file is missing.

If you're not comfortable with Terminal:

-Open a Finder window
-From the menubar, click Go -> Go to Folder...
-Type "/usr/X11R6/lib" (without quotes) and push ENTER
-Look in the list of files yourself to see if the file
libfreeype.6.dylib is there.

Also, for future reference, when getting help on a mailing list, make
sure to hit "Reply-all" instead of just "Reply" so that the
conversation stays on the mailing list and doesn't turn into a private
email correspondence between just you and one other person.

Josh

On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]>  
wrote:
Thanks!  I don't know how to find the /usr/X11R6/lib folder  
though.  I

searched for it, but I couldn't find it.
On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:

It appears that matplotlib is having trouble finding the freetype
dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
check that folder to see if the dylib is there. If it isn't,  
reinstall

the X11 dev tools. If it is, something is wrong with the dynamic lib
opening, so I'd recommend removing matplotlib from your
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages

folder and doing a fresh build/install.
Josh
On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang  
<[EMAIL PROTECTED]> wrote:


Hi, does anybody know why I'm getting this error importing pylab?
Thanks in advance!
Traceback (most recent call last):
  File "/Users/Kates/Documents/ps11.py", line 9, in 
from pylab import *
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/pylab.py",

line 1, in 
from matplotlib.pylab import *
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/pylab.py",

line 208, in 
from matplotlib import mpl  # pulls in most modules
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/mpl.py",

line 3, in 
from matplotlib import axis
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/axis.py",

line 20, in 
from font_manager import FontProperties
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/font_manager.py",

line 40, in 
from matplotlib import ft2font
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/ft2font.so,

2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/ft2font.so

  Reason: image not found
--
Yang Zhang
http://www.mit.edu/~y_z/
- 

This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great

prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010






--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Katie Thomas
Oh, I figured it out.  It's not there.  How do I reinstall the X11  
dev tools?


On Nov 19, 2008, at 3:57 PM, Joshua Lippai wrote:


Could you try just typing "cd /usr", then "ls" and checking what
folders are in there? Is there an X11 folder in there at all?

Josh

On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <[EMAIL PROTECTED]>  
wrote:

So I have downloaded matplotlib I'm sure, but when I type "cd
/usr/X11R6/lib" into the terminal is says "no such file or  
directory."

Do you know what this means?
Thanks for all your help,
Katie
On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote:

The sensitive root folders (like /usr) are hidden from the Finder so
that it's hard for someone that doesn't know about them to
accidentally delete/move something sensitive that's supposed to stay
put. You can get around this easily either with Terminal or Finder
itself.
If you're comfortable with Terminal:
-Open Terminal
-Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER
-Type "ls libfreetype.6.dylib" (without quotes) and push ENTER
-Look at the output. It should spit back "libfreetype.6.dylib" at  
you.

If it spits back nothing, the file is missing.
If you're not comfortable with Terminal:
-Open a Finder window
-From the menubar, click Go -> Go to Folder...
-Type "/usr/X11R6/lib" (without quotes) and push ENTER
-Look in the list of files yourself to see if the file
libfreeype.6.dylib is there.
Also, for future reference, when getting help on a mailing list, make
sure to hit "Reply-all" instead of just "Reply" so that the
conversation stays on the mailing list and doesn't turn into a  
private

email correspondence between just you and one other person.
Josh
On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <[EMAIL PROTECTED]>  
wrote:


Thanks!  I don't know how to find the /usr/X11R6/lib folder  
though.  I

searched for it, but I couldn't find it.
On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote:
It appears that matplotlib is having trouble finding the freetype
dynamic lib in your /usr/X11R6/lib folder when it references it. I'd
check that folder to see if the dylib is there. If it isn't,  
reinstall

the X11 dev tools. If it is, something is wrong with the dynamic lib
opening, so I'd recommend removing matplotlib from your
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages

folder and doing a fresh build/install.
Josh
On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang  
<[EMAIL PROTECTED]> wrote:

Hi, does anybody know why I'm getting this error importing pylab?
Thanks in advance!
Traceback (most recent call last):
  File "/Users/Kates/Documents/ps11.py", line 9, in 
from pylab import *
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/pylab.py",

line 1, in 
from matplotlib.pylab import *
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/pylab.py",

line 208, in 
from matplotlib import mpl  # pulls in most modules
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/mpl.py",

line 3, in 
from matplotlib import axis
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/axis.py",

line 20, in 
from font_manager import FontProperties
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/font_manager.py",

line 40, in 
from matplotlib import ft2font
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/matplotlib/ft2font.so,

2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
site-packages/matplotlib/ft2font.so

  Reason: image not found
--
Yang Zhang
http://www.mit.edu/~y_z/
- 

This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great

prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010




--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010






--
Katie Thomas
Department of Biology
Massachusetts Institute of Technology | Class of 2010




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://mobl

[Matplotlib-users] Histogram Examples

2008-11-19 Thread Ron Brennan
Hello,

Does anyone know where I can find some histogram examples.  The ones with
the documentation are not as self-explanatory as I would have liked.

I'm not a mathematician and I am struggling to understand the math behind
the magic.

Can anyone help?

Thanks,
Ron
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Can't create graphs

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 1:22 PM, Goyo <[EMAIL PROTECTED]> wrote:
> Make sure yu're using a backend with a user interface.
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend

Also, you can get more verbose input at runtime with the --verbose-helpful flag:

> python histogram.py --verbose-helpful

This will tell you what backend you are running, where your
matplotlibrc file is (which controls the backend), etc.  See also

  http://matplotlib.sourceforge.net/faq/installing_faq.html

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 3:06 PM, Katie Thomas <[EMAIL PROTECTED]> wrote:
> Oh, I figured it out.  It's not there.  How do I reinstall the X11 dev

I have some notes on how to install on OS X that covers this -- see

  http://ipython.scipy.org/moin/Py4Science/InstallationOSX

The explanation on the xcode dev tools is brief, and reads::

  install gcc and other developer tools

  Install XCode developer tools from the Leopard install CD under
optional packages. Verify the install -- check for a working gcc

   > gcc --version
   i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

  If you don't have the cd (or not a very recent one), you can get
XCodetools from the Apple   Developer Connection:

  http://developer.apple.com/tools/download/

  you may have to join (for free) and login.

Hope this helps,
JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Embedding Basemap in a wx app

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote:

> Greetings. Trying to develop a desktop application for interactive
> mapping using wxPython and Matplotlib, I have been doing some
> experiments with embedding maps generated by the Basemap module into a
> wxPython frame.

You are almost there.  You need to create your own axes instance

self.ax = self.figure.add_subplot(111)

and then pass this to your basemap

map = Basemap(ax=self.ax)

after you have issued all your basemap commands, manually force a draw

  self.figure.canvas.draw()

and *do not* import pyplot or call pyplot.show()

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Installation problem

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 3:56 AM, domenico09 <[EMAIL PROTECTED]> wrote:
>
> I got the same problem on  my portable(windowx XP) but not on my desk
> top(windows XP) !
> I reinstalled python, numpy and matplotlib either from internet and from my
> desk top (where things works well) but I got the same problem!
> thanks for any sugegstion

Have you tried the enthought python distribution or python xy?  Both
are single click installers that come with python, numpy, ipython,
matplotlib and more.

  http://www.enthought.com/products/epd.php
  http://www.pythonxy.com/foreword.php

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Scatter is slow to render many points

2008-11-19 Thread John Hunter
On Wed, Nov 19, 2008 at 8:56 AM, Gregory Desvignes
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm using matplotlib inside the backend_gtkagg with the scatter function
> to draw a simple graph with 2 to 4 points. The points may have
> only 2 differents sizes and 4 differents color depending on some criteria
> and should be 'clickable'.
>
> The problem is that the plot rendering is very slow when it deals with
> ~1 points, especially if we compare it with the rendering of the plot
> function using simple points (as the "data_browser.py" example)
>
> Does anybody knows if there is a way to make things going a little
> bit faster?

"plot" with markers is *much* faster than scatter.  If you have only a
few different sizes and a few different colors, if you issue several
plot commands with one or more marker symbols

  plot(x1, y1, 'o', ms=10, color='red')
  plot(x2 y2, 's', ms=20, color='green')
  plot(x3, y3, '+', ms=8, color='blue')

It might be up to an order of magnitude faster.  And the individual
points will be selectable using the pick events, as described in

  http://matplotlib.sourceforge.net/users/event_handling.html

Hope this helps,
JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Embedding Basemap in a wx app

2008-11-19 Thread John Hunter
I'm CC-ing the list, because Jeff Whitaker is the basemap developer,
and he will probably want to add it to the basemap examples.  Thanks
for the contribution.

On Wed, Nov 19, 2008 at 4:31 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote:
> Dear John,
>
> It worked fine!
>
> Thank you very much for your help. I would like to donate the working
> example source code  (attached) to the Matplotlib examples section,
> just in case it may be helpful to someone else.
>
> I intend to provide a more sophisticated exemple soon.
>
> With warmest regards,
>
> 2008/11/19 John Hunter <[EMAIL PROTECTED]>:
>> On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote:
>>
>>> Greetings. Trying to develop a desktop application for interactive
>>> mapping using wxPython and Matplotlib, I have been doing some
>>> experiments with embedding maps generated by the Basemap module into a
>>> wxPython frame.
>>
>> You are almost there.  You need to create your own axes instance
>>
>>self.ax = self.figure.add_subplot(111)
>>
>> and then pass this to your basemap
>>
>>map = Basemap(ax=self.ax)
>>
>> after you have issued all your basemap commands, manually force a draw
>>
>>  self.figure.canvas.draw()
>>
>> and *do not* import pyplot or call pyplot.show()
>>
>> JDH
>>
>
>
>
> --
> Dr. Mauro J. Cavalcanti
> Ecoinformatics Studio
> P.O. Box 46521, CEP 20551-970
> Rio de Janeiro, RJ, BRASIL
> E-mail: [EMAIL PROTECTED]
> Web: http://studio.infobio.net
> Linux Registered User #473524 * Ubuntu User #22717
> "Life is complex. It consists of real and imaginary parts."
>

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Another question

2008-11-19 Thread Mauro Cavalcanti
Dear ALL,

Another (this time possibly quite silly) question: how can I make a
Basemap cover entirely the display area of the GUI backend (ie.,
without the top, bottom, left, right spaces)?

I tried something like:

self.figure = Figure()
self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, top=1.55)

but could not control the bottom (or top) margins.

Thanks in advance for any hints.

Best regards,

-- 
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: [EMAIL PROTECTED]
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Another question

2008-11-19 Thread Eric Firing
Mauro Cavalcanti wrote:
> Dear ALL,
> 
> Another (this time possibly quite silly) question: how can I make a
> Basemap cover entirely the display area of the GUI backend (ie.,
> without the top, bottom, left, right spaces)?
> 
> I tried something like:
> 
> self.figure = Figure()
> self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, top=1.55)
> 
> but could not control the bottom (or top) margins.

The reason is that a map has a fixed aspect ratio, and there is no 
mechanism for automatically shrinking the appropriate figure dimension 
to eliminate extra space.  You will have adjust the figure dimensions 
manually.

Eric

> 
> Thanks in advance for any hints.
> 
> Best regards,
> 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users