Re: [Matplotlib-users] py2exe message" RuntimeError: Could not find the matplotlib data files"?

2010-02-19 Thread Christoph Gohlke
 leads me to
.

- Christoph

On 2/19/2010 7:11 PM, Wayne Watson wrote:
>  OK, I'm on Win7.  From the py2exe tutorial,  I've found that  hello.exe
> works as expected by the tutorial. That file is in the dist folder.
> I've now tried this program, pylab_scatter.py:
> 
> #!/usr/bin/env python
> from pylab import *
> 
> N = 30
> x = 0.9*rand(N)
> y = 0.9*rand(N)
> area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses
> scatter(x,y,s=area, marker='^', c='r')
> 
> show()
> 
> It runs properly in IDLE.
> ==
> It appears to compile properly. Now from the cmd prompt window:
> C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>pylab_scatter.exe
> Traceback (most recent call last):
>   File "pylab_scatter.py", line 2, in 
>   File "pylab.pyc", line 1, in 
>   File "matplotlib\__init__.pyc", line 677, in 
>   File "matplotlib\__init__.pyc", line 598, in rc_params
>   File "matplotlib\__init__.pyc", line 552, in matplotlib_fname
>   File "matplotlib\__init__.pyc", line 242, in wrapper
>   File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached
>   File "matplotlib\__init__.pyc", line 478, in _get_data_path
> RuntimeError: Could not find the matplotlib data files 
> <---What is this?
> 
> C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>
> ==
> I Googled this  py2exe message "RuntimeError: Could not find the
> matplotlib data files". As of yet, it does not look like a solution ia
> available for matplotlib.
> 
> -- 
> "There is nothing so annoying as to have two people 
>  talking when you're busy interrupting." -- Mark Twain
> 
> 
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> 
> 
> 
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Wayne Watson
Thanks for the offer, but "potentially" I'm OK on py2exe.  I saw that, 
because I just ran into a snag in an unexpected way. I had tried two 
text output programs with success, then I tried one using pylab, and 
things went haywire. My problem is in route to this  mail list right 
now. An objection to matplotlib.

On 2/19/2010 8:46 AM, Christopher Barker wrote:
> Wayne Watson wrote:
>
>> Strange that there wouldn't be any such demos. ;-)
>>  
> I've got a small prototype app that embeds MPL in wxPython, bundled up
> with py2exe (and py2app for the Mac). It's 11.7MB, if you want me to
> mail it to you.
>
> Bundled up python apps tend to be big, they have to include all of:
>
> -Your code (not usually very big)
>
> -Python itself (fairly big)
>
> -The gui toolkit (wxPython is very big)
>
> -Any other packages you are using.
>
> Bandwidth and disk space, and memory are cheaper than they used to be,
> so it's not that big a deal, really.
>
>
>   >  However, I'm now  rolling my own.
>
> always a good lesson, anyway.
>
> -Chris
>
>
>
>
>> On 2/15/2010 6:55 AM, Wayne Watson wrote:
>>  
>>> Does anyone know where I can find a compiled demo that uses MPL grphics?
>>> I'd like, if possible, a Win version whose size is less than 10M, so
>>> that I can send it via e-mail, if necessary. It should use plot, so that
>>> someone can manipulate the plot with the navigation controls. At this
>>> point, I have no idea if that method is the fundamental graph tool or
>>> not. I suspect it is.
>>>
>>> If a mailable demo isn't available, maybe there's a web site that one
>>> can download such examples from?
>>>
>>>
>>  
>
>

-- 
 "There is nothing so annoying as to have two people
  talking when you're busy interrupting." -- Mark Twain


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] py2exe message" RuntimeError: Could not find the matplotlib data files"?

2010-02-19 Thread Wayne Watson




OK, I'm on Win7.  From the py2exe tutorial,  I've found that  hello.exe
works as expected by the
tutorial. That file is in the dist folder. 
I've now tried this program,
pylab_scatter.py:

#!/usr/bin/env python
from pylab import *
  
N = 30
x = 0.9*rand(N)
y = 0.9*rand(N)
area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses
scatter(x,y,s=area, marker='^', c='r')
  
show()

It runs properly in IDLE.
==
It appears to compile properly. Now from the cmd prompt window:
C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>pylab_scatter.exe
Traceback (most recent call last):
  File "pylab_scatter.py", line 2, in 
  File "pylab.pyc", line 1, in 
  File "matplotlib\__init__.pyc", line 677, in 
  File "matplotlib\__init__.pyc", line 598, in rc_params
  File "matplotlib\__init__.pyc", line 552, in matplotlib_fname
  File "matplotlib\__init__.pyc", line 242, in wrapper
  File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached
  File "matplotlib\__init__.pyc", line 478, in _get_data_path
RuntimeError: Could not find the matplotlib data files 
<---What is this?

C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>
==
I Googled this  py2exe message "RuntimeError: Could not find the
matplotlib data files". As of yet, it does not look like a solution ia
available for matplotlib. 
-- 
"There is nothing so annoying as to have two people 
 talking when you're busy interrupting." -- Mark Twain



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Help needed on specific plot

2010-02-19 Thread PHobson
Whoops. Give this one a shot:
http://dpaste.com/161847/

> -Original Message-
> From: Paul Hobson
> Sent: Friday, February 19, 2010 2:54 PM
> To: matplot...@liste.fastmail.fm; matplotlib-users@lists.sourceforge.net
> Subject: RE: [Matplotlib-users] Help needed on specific plot
> 
> Hugo,
> 
> I don't have time to really explain how to do this, so instead I'm just
> going to send some code I made that I think might be very similar to what
> you're looking for.
> http://dpaste.com/161843/
> 
> I've also attached some data so you can run the code.
> 
> Good luck,
> -paul
> 
> > -Original Message-
> > From: matplot...@liste.fastmail.fm
> [mailto:matplot...@liste.fastmail.fm]
> > Sent: Friday, February 19, 2010 2:16 PM
> > To: matplotlib-users@lists.sourceforge.net
> > Subject: [Matplotlib-users] Help needed on specific plot
> >
> > Hi,
> > I have the exterior shape of a nozzle given by S(x). Now what I want to
> > do is first reflect it with respect to the y=0 axis (easily achieved by
> > -S(x) right?) and then map each x node's value of an array (say
> density)
> > to a color that would fill the vertical space between S(x) and -S(x).
> In
> > other words I need something like the matplotlib.pyplot.fill_between
> > method using x, S(x) and -S(x) but where the fill color would be
> > relative to a third array (say density again) at each point x.
> > Thanks!
> > --
> >   Hugo Gagnon
> > --
> >   Hugo Gagnon
> >
> >
> > ---
> --
> > -
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Help needed on specific plot

2010-02-19 Thread matplotlib
Hi,
I have the exterior shape of a nozzle given by S(x). Now what I want to
do is first reflect it with respect to the y=0 axis (easily achieved by
-S(x) right?) and then map each x node's value of an array (say density)
to a color that would fill the vertical space between S(x) and -S(x). In
other words I need something like the matplotlib.pyplot.fill_between
method using x, S(x) and -S(x) but where the fill color would be
relative to a third array (say density again) at each point x.
Thanks!
-- 
  Hugo Gagnon
-- 
  Hugo Gagnon


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Christopher Barker
Wayne Watson wrote:
> Strange that there wouldn't be any such demos. ;-) 

I've got a small prototype app that embeds MPL in wxPython, bundled up 
with py2exe (and py2app for the Mac). It's 11.7MB, if you want me to 
mail it to you.

Bundled up python apps tend to be big, they have to include all of:

-Your code (not usually very big)

-Python itself (fairly big)

-The gui toolkit (wxPython is very big)

-Any other packages you are using.

Bandwidth and disk space, and memory are cheaper than they used to be, 
so it's not that big a deal, really.


 > However, I'm now  rolling my own.

always a good lesson, anyway.

-Chris



> On 2/15/2010 6:55 AM, Wayne Watson wrote:
>> Does anyone know where I can find a compiled demo that uses MPL grphics?
>> I'd like, if possible, a Win version whose size is less than 10M, so
>> that I can send it via e-mail, if necessary. It should use plot, so that
>> someone can manipulate the plot with the navigation controls. At this
>> point, I have no idea if that method is the fundamental graph tool or
>> not. I suspect it is.
>>
>> If a mailable demo isn't available, maybe there's a web site that one
>> can download such examples from?
>>
> 


-- 
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

chris.bar...@noaa.gov

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Wayne Watson
Strange that there wouldn't be any such demos. ;-)  However, I'm now 
rolling my own.

On 2/15/2010 6:55 AM, Wayne Watson wrote:
> Does anyone know where I can find a compiled demo that uses MPL grphics?
> I'd like, if possible, a Win version whose size is less than 10M, so
> that I can send it via e-mail, if necessary. It should use plot, so that
> someone can manipulate the plot with the navigation controls. At this
> point, I have no idea if that method is the fundamental graph tool or
> not. I suspect it is.
>
> If a mailable demo isn't available, maybe there's a web site that one
> can download such examples from?
>

-- 
 "There is nothing so annoying as to have two people
  talking when you're busy interrupting." -- Mark Twain


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] finish. now improvement - help

2010-02-19 Thread Pierre de Buyl
add
"""
import numpy
"""
at the beginning of your code. Then,

y1=[Decimal('0.3041997084285048793446312110'), Decimal 
('0.3041811120982812429734672735'), Decimal 
('0.3041586008929715390350375366'), Decimal 
('0.08256793883349254633032840545'), Decimal 
('0.08255838341506859117962741714')]

(just a subset of your data)
goes to:
y1 = numpy.array([0.3041997084285048793446312110 ,  
0.3041811120982812429734672735 , 0.3041586008929715390350375366 ,  
0.08256793883349254633032840545 , 0.08255838341506859117962741714 ] )
with similar modifications for x1,x2,y2. This takes less place. You  
do not need the "decimal" package in my opinion. Except if the raw  
data you get is the one with the "Decimal" indicators.

> Here my simplest code: http://dpaste.com/161149/
>
> Now what I ask is for suggestions about turn this in better code
In what way ? What are your requirements ?

> So... please make suggestions what interest to do for this code be  
> faster and better
> Any type!
Is it too slow ? Is there a reason why you are not satisfied ?


> And one question: There is a way to do in each point I draw  
> relative to the 'second' graph (x2,y2)
> to put a specific legend?

If you want each point to have a separate legend, you should plot  
them separately: a plot(x2[i:i+1),y2[i:i+1],'ro') command for i in  
range(N_points).

Good plotting,

Pierre

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] finish. now improvement - help

2010-02-19 Thread Samuel Teixeira Santos
anyone? please?


Samuel

2010/2/18 Samuel Teixeira Santos 

> Hi all.
>
> I finish my test code to learn the basics of matplotlib.
>
> Here my simplest code: http://dpaste.com/161149/
>
> Now what I ask is for suggestions about turn this in better code
>
> Because in some sites that teach using matplotlib, using some functions
> like add a supblot etc
> and I don't know if this way I did is the better, but it was the simplest I
> got it.
>
> So... please make suggestions what interest to do for this code be faster
> and better
> Any type!
>
> And one question: There is a way to do in each point I draw relative to the
> 'second' graph (x2,y2)
> to put a specific legend?
>
> in attach i put a comparative figure between the equivalente graph in excel
>
> thanks for all in advanced
>
> see ya
>
>
> Samuel
>
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-19 Thread Jan Strube
Hi John,

I am now at r8141.
I don't see a difference. There's a one at the bottom of the scale, that's
all.
I am copying and pasting the code in your other email into a python console.

It's a bit strange, because when I put in a print statement, I see that the
method gets called a number of times...
[edit] I see what's going on. If I replace vv with a large constant (like
100), it never gets printed.
If I replace vv with a small constant (like 1), that is below the range of
the scale, it does get printed at each tick.[/edit]

My setup is kubuntu karmic, dependencies listed below.
I have removed my matplotlibrc, but the result is the same. I am attaching
it nevertheless...

Cheers,
Jan





BUILDING
MATPLOTLIB

matplotlib:
1.0.svn

python: 2.6.4 (r264:75706, Nov  2 2009, 14:44:17)
[GCC

4.4.1]

  platform:
linux2



REQUIRED
DEPENDENCIES

 numpy:
1.3.0

 freetype2:
9.20.3



OPTIONAL BACKEND
DEPENDENCIES

libpng:
1.2.37

   Tkinter:
no

* TKAgg requires
Tkinter

  wxPython:
no

* wxPython not
found

pkg-config: looking for pygtk-2.0
gtk+-2.0

* Package pygtk-2.0 was not found in the
pkg-config
* search path. Perhaps you should add the
directory
* containing `pygtk-2.0.pc' to the
PKG_CONFIG_PATH

* environment variable No package 'pygtk-2.0'
found
* Package gtk+-2.0 was not found in the
pkg-config
* search path. Perhaps you should add the
directory
* containing `gtk+-2.0.pc' to the
PKG_CONFIG_PATH

* environment variable No package 'gtk+-2.0'
found
* You may need to install 'dev' package(s)
to
* provide header
files.

  Gtk+:
no

* Could not find Gtk+ headers in any
of

* '/usr/local/include', '/usr/include',
'.'
   Mac OS X native:
no

Qt:
no

   Qt4: Qt: 4.5.2, PyQt4:
4.6

 Cairo:
1.8.6



OPTIONAL DATE/TIMEZONE
DEPENDENCIES

  datetime: present, version
unknown

  dateutil:
1.4.1

  pytz:
2009l



OPTIONAL USETEX
DEPENDENCIES

dvipng:
1.12

   ghostscript:
8.70

 latex:
3.1415926

   pdftops:
0.12.0



[Edit setup.cfg to suppress the above
messages]





On Thu, Feb 18, 2010 at 10:29 PM, John Hunter  wrote:

> On Thu, Feb 18, 2010 at 4:06 PM, Jan Strube  wrote:
> > Hi John,
> > thanks for trying this also. Yes, I think it's a bug that not the scale
> is
> > log, but the data is.
> > Unfortunately, the solution really doesn't work for me.
> > Please see the attached screenshot. (Yes, it still says log_10 entries,
> but
> > the code is otherwise the same)
> > In [2]: matplotlib.__version__
> > Out[2]: '1.0.svn'
> > This is r8063, I think.
> > Strange that I get different results. Could this be a backend problem? I
> use
> > PyQT4.
> > I'd be happy to also update from svn if you think that helps.
>
> I'm running svn but not svn HEAD -- you should try updating to HEAD
> and I will do the same later (unfortunately HEAD is broken on my work
> machine (solaris, python2.4) because of the CXX upgrade I put in some
> time ago.  I think I am on r8083.
>
> I do not think this difference could be caused by a backend or GUI
> version difference as all of the formatting logic happens in the
> frontend.  If we are on the same version of svn, we should be getting
> the same tick labels.
>
> JDH
>


matplotlibrc
Description: Binary data
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users