problems with py2exe

data = glob.glob(r'C:\Python24\Lib\site-packages\matplotlib\*')

The python modules should not be included in the "data" listing. Eg,
you write

  data = glob.glob(r'C:\Python24\Lib\site-packages\matplotlib\*')

but this is wrong because the files in that directory are python
modules.

The data are the fonts, icons, etc, found in

  data = glob.glob(r'C:\Python24\share\matplotlib\*')

See the examples simple_plot_wxagg which I just updated at

  http://matplotlib.sourceforge.net/py2exe_examples.zip

Hope this helps,
JDH

John and Philippe,

thank you for your help. I have followed John's updated examples and now I
get an exe-file of my application. However, now I run into the same
timezone/UTC key error problems that was discussed the last few days on
this list.

As I understand the problem is not completely resolved yet, so I'll jsut
wait and see ... ;-). I would like to help, but this is way above my head.
Sorry!

Oliver

             John Hunter
             <jdhunter@...562...
             .uchicago.edu> To
             Sent by: oliver.tomic@...507...
             matplotlib-users- cc
             admin@...563... matplotlib-users@...564...
             eforge.net net
                                                                   Subject
                                       Re: [Matplotlib-users] problems
             11.04.2005 19:05 with py2exe
                                                                           
    > data = glob.glob(r'C:\Python24\Lib\site-packages\matplotlib\*')

The python modules should not be included in the "data" listing. Eg,
you write

  data = glob.glob(r'C:\Python24\Lib\site-packages\matplotlib\*')

but this is wrong because the files in that directory are python
modules.

The data are the fonts, icons, etc, found in

  data = glob.glob(r'C:\Python24\share\matplotlib\*')

See the examples simple_plot_wxagg which I just updated at

  http://matplotlib.sourceforge.net/py2exe_examples.zip

Hope this helps,
JDH

···

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Greetings,

Matplotlib has been helping me a lot, as always. I post so
infrequently to this group because I usually don't have any
problem getting what I want. However, I think I found a bug
in stem.

I've been stressing the stem function a lot, since I deal
with signal processing. When plotting a demonstration of the
overlap and save method (for performing long convolutions),
I got something unexpected which the script below reproduces:

···

---
from matplotlib.pylab import *

n = arange(0, 2*pi, 2*pi/50, Float)
x = sin(n)

figure(1)
stem(n, x, "k-", "ko", "k-")

x[:26] = 0

savefig("test.eps")
---

The sequence is plotted almost without any problems: the
vertical lines are drawn with the correct amplitudes, but,
because of the setting of some values of x to 0, the markers
"fall down" to the axes. If I couldn't make myself clear, I
can send an image of the result, but I think the script can
reproduce the problem. I'm using the latest version of
matplotlib, downloaded and installed yesterday.

As it turns out, it actually *helped* me. Overlapp and save
method consists in discarding some samples of the result. I
couldn't think of a good way to actually show in a single
figure how it would be done. I mention the bug, if it is really
a bug, and not me doing something wrong, only to report it. I
have no hurry to see it fixed - in fact, as it helped me, I
don't plan to have it fixed soon. But I thought the developers
would like to know it.

Also, I would like to know if there is any way to customize
the markers. There are some figures I need to make where the
markers should be arrows pointing up. I modified "^" to look
like what I wanted, but probably there is a better way to do
that.

Thanks in advance

---
Jos� Alexandre Nalon
nalon@...166...