From: <oli...@ma...> - 2005-04-07 09:28:10
|
Hi, I have some problems compiling an .exe-file for my application. I use wxPython together with matplotlib and tried to make an .exe-file with both packages for the first time. Windows XP Python 2.4 wxPython 2.5.3.1 matplotlib 0.74 I checked the FAQ at the matplotlib homepage and the py2exe-examples and did the following: from distutils.core import setup import glob import py2exe data = glob.glob(r'C:\Python24\Lib\site-packages\matplotlib\*') data.append(r'C:\Python24\Lib\site-packages\matplotlib\.matplotlibrc') setup( console = ["PanelCheck.py"], data_files = [("matplotlibdata", data)], ) After py2exe is finished I find both folders 'dist' and 'build' as ususal, however I can't finde an .exe-file of my application PanelCheck.py in the dist-folder. I assume that 'window' is what I want to use in the code above, but when I do that I get the following error: --(just a small part of the console output)-- error: can't copy 'C:\Python24\Lib\site-packages\matplotlib\backends': doesn't exist or not a regular file What am I doing wrong? Help is really appreciated! Oliver |
From: John H. <jdh...@ac...> - 2005-04-11 17:05:10
|
>>>>> "oliver" == oliver tomic <oli...@ma...> writes: oliver> 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 |
From: <oli...@ma...> - 2005-04-12 12:28:28
|
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 <jdh...@ac...d .uchicago.edu> To Sent by: oli...@ma... matplotlib-users- cc ad...@li...urc mat...@li...urceforge. eforge.net net Subject Re: [Matplotlib-users] problems 11.04.2005 19:05 with py2exe >>>>> "oliver" == oliver tomic <oli...@ma...> writes: oliver> 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 Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: <na...@te...> - 2005-04-12 15:24:53
|
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 na...@te... |