SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S






1
(1)
2
(4)
3
(3)
4
(2)
5
(4)
6
(15)
7
(17)
8
(4)
9
(5)
10
(14)
11
(16)
12
(37)
13
(38)
14
(16)
15
(2)
16
(6)
17
(4)
18
(14)
19
(4)
20
(1)
21
(14)
22
(2)
23
(6)
24
(16)
25
(4)
26
(1)
27
(10)
28
(30)
29
(7)
30
(4)
31
(15)





Showing results of 313

<< < 1 .. 10 11 12 13 > >> (Page 12 of 13)
From: Faheem M. <fa...@em...> - 2006年07月07日 19:18:18
Hi,
I think the bivariate normal probability distribution function 
implementation in Matplotlib is buggy. See the example code below, and 
note that the change in the x directions and the y directions is not 
uniform as it should be.
The implementation (in mlab.py) is appended.
 Faheem.
***************************************************************************
minx, maxx = 0, 13
miny, maxy = 0, 13
X, Y = pylab.meshgrid(range(minx, maxx), range(miny, maxy))
conc = 1000*pylab.bivariate_normal(X, Y, sigmax=5.0, sigmay=5.0, sigmaxy=0, 
mux=6, muy=6)
[[ 0.08 0.11 0.13 0.15 0.16 0.17 0.17 0.17 0.16 0.15 0.13 0.11 0.08]
[ 0.25 0.32 0.38 0.44 0.48 0.51 0.52 0.51 0.48 0.44 0.38 0.32 0.25]
[ 0.63 0.78 0.93 1.07 1.19 1.26 1.29 1.26 1.19 1.07 0.93 0.78 0.63]
[ 1.26 1.57 1.88 2.16 2.39 2.54 2.59 2.54 2.39 2.16 1.88 1.57 1.26]
[ 2.08 2.59 3.1 3.56 3.94 4.18 4.27 4.18 3.94 3.56 3.1 2.59 2.08]
[ 2.8 3.49 4.18 4.81 5.32 5.65 5.76 5.65 5.32 4.81 4.18 3.49 2.8 ]
[ 3.1 3.86 4.62 5.32 5.88 6.24 6.37 6.24 5.88 5.32 4.62 3.86 3.1 ]
[ 2.8 3.49 4.18 4.81 5.32 5.65 5.76 5.65 5.32 4.81 4.18 3.49 2.8 ]
[ 2.08 2.59 3.1 3.56 3.94 4.18 4.27 4.18 3.94 3.56 3.1 2.59 2.08]
[ 1.26 1.57 1.88 2.16 2.39 2.54 2.59 2.54 2.39 2.16 1.88 1.57 1.26]
[ 0.63 0.78 0.93 1.07 1.19 1.26 1.29 1.26 1.19 1.07 0.93 0.78 0.63]
[ 0.25 0.32 0.38 0.44 0.48 0.51 0.52 0.51 0.48 0.44 0.38 0.32 0.25]
[ 0.08 0.11 0.13 0.15 0.16 0.17 0.17 0.17 0.16 0.15 0.13 0.11 0.08]]
def bivariate_normal(X, Y, sigmax=1.0, sigmay=1.0,
 mux=0.0, muy=0.0, sigmaxy=0.0):
 """
 Bivariate gaussan distribution for equal shape X, Y
 http://mathworld.wolfram.com/BivariateNormalDistribution.html
 """
 Xmu = X-mux
 Ymu = Y-muy
 rho = sigmaxy/(sigmax*sigmay)
 z = Xmu**2/sigmax**2 + Ymu**2/sigmay - 2*rho*Xmu*Ymu/(sigmax*sigmay)
 return 1.0/(2*pi*sigmax*sigmay*(1-rho**2)) * exp( -z/(2*(1-rho**2)))
From: Darren D. <dd...@co...> - 2006年07月07日 19:13:28
Hi Martin,
I suggest upgrading to 0.87.3. I can run your test script and can open the 
resulting eps file. Please note, however, that you are asking for a file that 
plots 2e6 points. We have already optimized the postscript commands such that 
each marker or line requires essentially only a single line of postscript 
code (a great improvement over mpl version 0.87.2), but that still means that 
we need to write 2e6 points x 18 bytes per point ~ 36 MB (it actually ends up 
being 41MB), and postscript then has to interpret that massive file. This 
yields about a factor of 5 improvement in the size of your file, and its 
about the best we can do for postscript.
If you want a smaller file size, I suggest you convert your file to some other 
format, since most of your data points lie on top of one another, and then 
convert back to eps if you really need that format. For example, you can 
convert your 41MB eps file into a 274KB pdf file or a 6KB png file.
Finally, we dont include tiff previews in our eps files, so this is not a bug.
Darren
On Friday 07 July 2006 12:21, Martin Manns wrote:
> Hi,
>
> When I use matplotlib for a scatter plot with both dots and connecting
> lines, the exported eps file is huge, if the distances between many points
> are small. I think of this as a bug, since no preview tiff is included in
> the generated eps and a variety of text processing applications (including
> OpenOffice) crash when I try to import the eps. Ghostscript takes forever,
> too. Is there anything that I can do in order to export reasonable eps
> files?
>
> I am using:
> python 2.4.2
> matplotlib 0.87.2
> numpy 0.9.8
>
> with Linux
>
> The following small example illustrates the problem:
> --
> import pylab,numpy,random
> random.seed()
> x=[random.gauss(0,1)/float(i)**2 for i in xrange(1,1000000)]
> X=numpy.array(x,numpy.Float32)
> pylab.plot(X[1:],X[:-1],"-", c="#eeeeee")
> pylab.plot(X[1:],X[:-1],"xk")
> pylab.show()
> --
>
> The resulting eps file:
> -rw-r----- 1 xx users 212190257 Jul 4 09:39 image.eps
>
> Thanks a lot in advance
>
> Martin
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853
dd...@co...
office: (607) 255-9894
fax: (607) 255-9001
From: Martin M. <mm...@gm...> - 2006年07月07日 16:21:38
Hi,
When I use matplotlib for a scatter plot with both dots and connecting lines,
the exported eps file is huge, if the distances between many points are small.
I think of this as a bug, since no preview tiff is included in the generated eps
and a variety of text processing applications (including OpenOffice) crash
when I try to import the eps. Ghostscript takes forever, too. Is there anything
that I can do in order to export reasonable eps files?
I am using:
python 2.4.2
matplotlib 0.87.2
numpy 0.9.8
with Linux
The following small example illustrates the problem:
--
import pylab,numpy,random
random.seed()
x=[random.gauss(0,1)/float(i)**2 for i in xrange(1,1000000)]
X=numpy.array(x,numpy.Float32)
pylab.plot(X[1:],X[:-1],"-", c="#eeeeee")
pylab.plot(X[1:],X[:-1],"xk")
pylab.show()
--
The resulting eps file:
-rw-r----- 1 xx users 212190257 Jul 4 09:39 image.eps
Thanks a lot in advance
Martin
From: Lionel R. <lro...@li...> - 2006年07月07日 13:52:16
Arg, sorry, I have found the response by myself, I just have to use=20
figure.add_subplot to fix it.
Le Vendredi 07 Juillet 2006 15:14, Lionel Roubeyrie a =C3=A9crit=C2=A0:
> Hi Jeff,
> thanks for the hint, I just need to import one personal GMT file maked a
> time ago and used in a plotting project based on GMT, which I try to
> convert to matplotlib.
> Now I have a little problem to plot a basemap with subplots. Trying to use
> contour_demo.py mixed with hist.py to have a map with contours and under =
it
> an histogram of values, I can't set the colorbar else I loose the map. I
> think I have a problem with axes but I'm not very familar with subplottin=
g.
> Have you an idea of how can I do that?
>
> Le Vendredi 07 Juillet 2006 13:53, Jeff Whitaker a =C3=A9crit=C2=A0:
> > Lionel Roubeyrie wrote:
> > > Hi all,
> > > Is it possible to import colormap file from GMT (.cpt) to basemap? If
> > > yes how can we do that?
> > > Thanks
> >
> > Lionel: I had included the GMT colormaps in matplotlib, but had to take
> > them out because of licensing issues. If you want to put them back in,
> > put the attached file in your matplotlib install directory
> > <sys.prefix>/lib/python2.4/site-packages/matplotlib. Then use a text
> > editor to add the following lines to _cm.py (in the same directory)
> >
> > from gmt_cm import addcmaps
> > addcmaps(datad)
> >
> > right above the line
> >
> > # reverse all the colormaps.
> >
> > This will give you the colormaps
> >
> > GMT_gebco
> > GMT_globe
> > GMT_haxby
> > GMT_no_green
> > GMT_ocean
> > GMT_polar
> > GMT_red2green
> > GMT_relief
> > GMT_seis
> > GMT_wysiwyg
> >
> > and the corresponding reversed colormaps (with '_r' appended to the
> > name).
> >
> >
> > -Jeff
=2D-=20
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: Lionel R. <lro...@li...> - 2006年07月07日 13:14:39
Hi Jeff,
thanks for the hint, I just need to import one personal GMT file maked a ti=
me=20
ago and used in a plotting project based on GMT, which I try to convert to=
=20
matplotlib.
Now I have a little problem to plot a basemap with subplots. Trying to use=
=20
contour_demo.py mixed with hist.py to have a map with contours and under it=
=20
an histogram of values, I can't set the colorbar else I loose the map. I=20
think I have a problem with axes but I'm not very familar with subplotting.
Have you an idea of how can I do that?
Le Vendredi 07 Juillet 2006 13:53, Jeff Whitaker a =C3=A9crit=C2=A0:
> Lionel Roubeyrie wrote:
> > Hi all,
> > Is it possible to import colormap file from GMT (.cpt) to basemap? If y=
es
> > how can we do that?
> > Thanks
>
> Lionel: I had included the GMT colormaps in matplotlib, but had to take
> them out because of licensing issues. If you want to put them back in,
> put the attached file in your matplotlib install directory
> <sys.prefix>/lib/python2.4/site-packages/matplotlib. Then use a text
> editor to add the following lines to _cm.py (in the same directory)
>
> from gmt_cm import addcmaps
> addcmaps(datad)
>
> right above the line
>
> # reverse all the colormaps.
>
> This will give you the colormaps
>
> GMT_gebco
> GMT_globe
> GMT_haxby
> GMT_no_green
> GMT_ocean
> GMT_polar
> GMT_red2green
> GMT_relief
> GMT_seis
> GMT_wysiwyg
>
> and the corresponding reversed colormaps (with '_r' appended to the name).
>
>
> -Jeff
=2D-=20
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: Jeff W. <js...@fa...> - 2006年07月07日 11:53:17
Attachments: gmt_cm.py
Lionel Roubeyrie wrote:
> Hi all,
> Is it possible to import colormap file from GMT (.cpt) to basemap? If yes how 
> can we do that?
> Thanks
> 
Lionel: I had included the GMT colormaps in matplotlib, but had to take 
them out because of licensing issues. If you want to put them back in, 
put the attached file in your matplotlib install directory 
<sys.prefix>/lib/python2.4/site-packages/matplotlib. Then use a text 
editor to add the following lines to _cm.py (in the same directory)
from gmt_cm import addcmaps
addcmaps(datad)
right above the line
# reverse all the colormaps.
This will give you the colormaps
GMT_gebco
GMT_globe
GMT_haxby
GMT_no_green
GMT_ocean
GMT_polar
GMT_red2green
GMT_relief
GMT_seis
GMT_wysiwyg
and the corresponding reversed colormaps (with '_r' appended to the name).
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: Charles R. T. <ct...@gm...> - 2006年07月07日 09:14:03
Attachments: mp_dist_TradCateg.png
Thanks to all at MatplotLib over the years.
I've been using mpl to automate the plots for a report I've been
working on for several years. It's now been released, along with the
Python scripts, from:
 http://sarbayes.org/download.shtml
 "Missing Person Behaviour: An Australian Study"
An example figure is attached, and mpl is cited. Thanks again!
-C
-- 
Charles R. Twardy
From: Lionel R. <lro...@li...> - 2006年07月07日 09:05:49
Work very fine here, thanks for the links.
Le Vendredi 07 Juillet 2006 10:11, dd...@ja... a =C3=A9crit=C2=A0:
> On Friday 07 July 2006 4:11 pm, Lionel Roubeyrie wrote:
> > Hi all,
> > Is it possible to import colormap file from GMT (.cpt) to basemap?
> > If yes how can we do that?
> > Thanks
>
> It's possible. Here's how I've been doing it.
>
> (1) I use the gmtcolormapPylab function defined in:
> http://sourceforge.net/mailarchive/message.php?msg_id=3D11255878
>
> (2) Using the above function and a GMT cpt file (e.g.
> GMT_no_green.cpt), I set a color dictionary as:
> cdict =3D gmtcolormapPylab("GMT_no_green")
>
> (3) I define a colormap using:
> mycmap =3D cm.colors.LinearSegmentedColormap("GMT_no_green",cdict,256)
>
> (4) I apply the above using cmap=3Dmycolormap in contourf or pcolormesh.
>
> By the way, in case you don't know of the following site, it has an
> exhaustive selection of color palettes: http://cpt-city.org.uk/
>
> I've also attached an example of a basemap image using a cpt from the
> above site. Masked values not defined by the colormap are shown in
> gray.
=2D-=20
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: <dd...@ja...> - 2006年07月07日 08:12:17
Attachments: sample.png
On Friday 07 July 2006 4:11 pm, Lionel Roubeyrie wrote:
> Hi all,
> Is it possible to import colormap file from GMT (.cpt) to basemap?
> If yes how can we do that?
> Thanks
It's possible. Here's how I've been doing it. 
(1) I use the gmtcolormapPylab function defined in: 
http://sourceforge.net/mailarchive/message.php?msg_id=11255878
(2) Using the above function and a GMT cpt file (e.g. 
GMT_no_green.cpt), I set a color dictionary as:
cdict = gmtcolormapPylab("GMT_no_green") 
(3) I define a colormap using:
mycmap = cm.colors.LinearSegmentedColormap("GMT_no_green",cdict,256)
(4) I apply the above using cmap=mycolormap in contourf or pcolormesh.
By the way, in case you don't know of the following site, it has an 
exhaustive selection of color palettes: http://cpt-city.org.uk/
I've also attached an example of a basemap image using a cpt from the 
above site. Masked values not defined by the colormap are shown in 
gray. 
From: Lionel R. <lro...@li...> - 2006年07月07日 07:11:33
Hi all,
Is it possible to import colormap file from GMT (.cpt) to basemap? If yes how 
can we do that?
Thanks
-- 
Lionel Roubeyrie - lro...@li...
LIMAIR
http://www.limair.asso.fr
From: marek <md...@gm...> - 2006年07月06日 17:27:32
I am working on a plot that uses several fill() calls all of which set
some level of transparency using the "alpha" parameter.
When I added a legend to the figure the polygons made by the calls to
fill() were no longer recognizing the alpha settings.
I am using the Agg backend and the output is always generated with savefig().
Am I missing something about the configuration? How can I get
matplotlib to continue to respect the alpha setting even when calling
legend()?
Any help is appreciated!
Thanks,
Marek
From: Werner F. B. <wer...@fr...> - 2006年07月06日 16:25:07
Hi James,
Thanks for the hints.
James Carroll wrote:
> Hi Werner,
>
> I got this problem too, and I actually updated the py2exe wiki on what
> to do when you see it. The problem is that there are multiple _sort
> modules (_sort.pyd in numpy and others in the different numer*
> packages.) Only some of them have dtype.
>
> See the last section (seciton 5) of
> http://starship.python.net/crew/theller/moin.cgi/MatPlotLib
I have seen that, but it doesn't help.
I have only Numeric and numpy on my system. I only need one, just 
wanted to get up to date, so tried changing from Numeric to numpy. For 
testing I rename the folder of the one I don't want to use, so py2exe 
nor matplotlib can not find it.
I don't have a real need to change, so for the moment I will stay with 
Numeric and if I don't run into other problems with matplotlib 0.87.3 I 
stay with it otherwise I will go back to the version I used before and 
upgrade when I get around to move over to wxPython Unicode.
Werner
>
> My real solution to it was to remove all the other num* packages from
> the system and just have numpy and scipy installed. This ensured that
> I wasn't pulling in the other packges by accident.
>
> -Jim
>
>
> On 7/6/06, Werner F. Bruhin <wer...@fr...> wrote:
>
>> I finally managed to build it without getting py2exe errors.
>>
>> Needed to include package "numpy" and remove "distutils" package from
>> numpy as py2exe was failing on "tests" - maybe this is not the right
>> thing to do as I still get run time error when running the exe.
>>
>> Here is the exception I currently get:
>> **** Thu Jul 06 17:43:19 2006 ****
>> Traceback (most recent call last):
>> File "appwine.pyo", line 1333, in OnToolbarChart
>> File "frameplotmpl.pyo", line 16, in ?
>> File "matplotlib\numerix\__init__.pyo", line 66, in ?
>> File "numpy\__init__.pyo", line 35, in ?
>> File "numpy\_import_tools.pyo", line 173, in __call__
>> File "numpy\_import_tools.pyo", line 68, in _init_info_modules
>> File "<string>", line 1, in ?
>> File "numpy\random\__init__.pyo", line 3, in ?
>> File "numpy\random\mtrand.pyo", line 12, in ?
>> File "numpy\random\mtrand.pyo", line 10, in __load
>> File "numpy.pxi", line 32, in mtrand
>> AttributeError: 'module' object has no attribute 'dtype'
>>
>> As mtrand is a .pyd I run out of things to try.
>>
>> Any hints on how to get around this one would be appreciated, otherwise
>> I guess I will go back an use Numeric instead.
>>
>> Werner
>>
>>
>> Using Tomcat but need to do more? Need to support web services, 
>> security?
>> Get stuff done quickly with pre-integrated technology to make your 
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
From: Werner F. B. <wer...@fr...> - 2006年07月06日 16:18:28
A little update.
Werner F. Bruhin wrote:
> Trying to py2exe the application I get an error no such file 
> "wxmsw26uh_vc.dll".
> 
> I am on:
> # Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
> # wxPython 2.6.3.2, Boa Constructor 0.4.4
> 
> Part of the changes I made inludes trying out numpy 0.8.9.
> 
> What is this dll for and where should it be? The name looks like it is 
> part of wxWidget but I can't seem to find it.
Can not get it to work with numpy (see other thread), however using 
Numeric with the following py2exe setup.py sections looks like it works 
even using an Ansi wxPython version (my app uses a database, while I am 
planning to switch to Unicode, I don't have time for this at the moment).
The matplotlib related entries in the options section are "pytz" and 
"matplotlib.numerix" and the exclude of the wxmsg26uh_vc.dll".
# options for py2exe
options = {"py2exe": {"compressed": 1,
 "optimize": 2,
 "packages": ["encodings",
 "kinterbasdb",
 "pytz", "matplotlib.numerix",
 ],
 "excludes": ["MySQLdb", "Tkconstants", "Tkinter", 
"tcl",
 "orm.adapters.pgsql", 
"orm.adapters.mysql"
 ],
 "dll_excludes": ["tcl84.dll", "tk84.dll", 
"wxmsw26uh_vc.dll"]
 }
 }
zipfile = r"lib\library.zip"
And this is the setup section (with some stuff omitted):
setup(
 classifiers = ["Copyright:: Werner F. Bruhin",
...
 "Natural Language :: English"],
 windows = [twcb],
 #console = [twcb],
 options = options,
 zipfile = zipfile,
 data_files = [("prog\\locale\\fr\\LC_MESSAGES",
 mylocaleFR),
...
 matplotlib.get_py2exe_datafiles(),
 ("prog\\amaradata", amaradata),
 ("prog\\amaradata\\Schemata", amaraschemata),
 ]
 )
I am using py2exe 0.6.5, wxPython 2.6.3.2 and Python 2.4.
Need to do further testing with it, but the matplotlib plots (some line 
and pie charts - nothing very sophisticated) work fine.
Will give numpy another try, if I get some hints on how to overcome the 
issue reported in another thread.
Werner
From: James C. <mr...@gm...> - 2006年07月06日 15:52:37
Hi Werner,
I got this problem too, and I actually updated the py2exe wiki on what
to do when you see it. The problem is that there are multiple _sort
modules (_sort.pyd in numpy and others in the different numer*
packages.) Only some of them have dtype.
See the last section (seciton 5) of
http://starship.python.net/crew/theller/moin.cgi/MatPlotLib
My real solution to it was to remove all the other num* packages from
the system and just have numpy and scipy installed. This ensured that
I wasn't pulling in the other packges by accident.
-Jim
On 7/6/06, Werner F. Bruhin <wer...@fr...> wrote:
> I finally managed to build it without getting py2exe errors.
>
> Needed to include package "numpy" and remove "distutils" package from
> numpy as py2exe was failing on "tests" - maybe this is not the right
> thing to do as I still get run time error when running the exe.
>
> Here is the exception I currently get:
> **** Thu Jul 06 17:43:19 2006 ****
> Traceback (most recent call last):
> File "appwine.pyo", line 1333, in OnToolbarChart
> File "frameplotmpl.pyo", line 16, in ?
> File "matplotlib\numerix\__init__.pyo", line 66, in ?
> File "numpy\__init__.pyo", line 35, in ?
> File "numpy\_import_tools.pyo", line 173, in __call__
> File "numpy\_import_tools.pyo", line 68, in _init_info_modules
> File "<string>", line 1, in ?
> File "numpy\random\__init__.pyo", line 3, in ?
> File "numpy\random\mtrand.pyo", line 12, in ?
> File "numpy\random\mtrand.pyo", line 10, in __load
> File "numpy.pxi", line 32, in mtrand
> AttributeError: 'module' object has no attribute 'dtype'
>
> As mtrand is a .pyd I run out of things to try.
>
> Any hints on how to get around this one would be appreciated, otherwise
> I guess I will go back an use Numeric instead.
>
> Werner
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Werner F. B. <wer...@fr...> - 2006年07月06日 15:40:31
I finally managed to build it without getting py2exe errors.
Needed to include package "numpy" and remove "distutils" package from 
numpy as py2exe was failing on "tests" - maybe this is not the right 
thing to do as I still get run time error when running the exe.
Here is the exception I currently get:
**** Thu Jul 06 17:43:19 2006 ****
Traceback (most recent call last):
 File "appwine.pyo", line 1333, in OnToolbarChart
 File "frameplotmpl.pyo", line 16, in ?
 File "matplotlib\numerix\__init__.pyo", line 66, in ?
 File "numpy\__init__.pyo", line 35, in ?
 File "numpy\_import_tools.pyo", line 173, in __call__
 File "numpy\_import_tools.pyo", line 68, in _init_info_modules
 File "<string>", line 1, in ?
 File "numpy\random\__init__.pyo", line 3, in ?
 File "numpy\random\mtrand.pyo", line 12, in ?
 File "numpy\random\mtrand.pyo", line 10, in __load
 File "numpy.pxi", line 32, in mtrand
AttributeError: 'module' object has no attribute 'dtype'
As mtrand is a .pyd I run out of things to try.
Any hints on how to get around this one would be appreciated, otherwise 
I guess I will go back an use Numeric instead.
Werner
From: Werner F. B. <wer...@fr...> - 2006年07月06日 15:35:15
Hi,
Charlie Moad wrote:
> As you have found, the matplotlib binaries are built using the unicode
> version of wxpython. If you are not using blitting, then you can just
> go in any delete the "matplotlib/backends/_wxagg.so" (.pyd for
> windows) file from the installed matplotlib module. Then the
> pure-python wx backend will be used instead, and it should work fine
> with both versions of wx.
I can run it without problem on my dev machine. The problem is when 
packaging it with py2exe, worked around this one by just excluding that 
dll, but maybe this is the cause of the problem - see other thread.
Werner
> 
> - Charlie
> 
> On 7/6/06, Werner F. Bruhin <wer...@fr...> wrote:
> 
>>Werner F. Bruhin wrote:
>>
>>
>>>Trying to py2exe the application I get an error no such file
>>>"wxmsw26uh_vc.dll".
>>>
>>>I am on:
>>># Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
>>># wxPython 2.6.3.2, Boa Constructor 0.4.4
>>>
>>>Part of the changes I made inludes trying out numpy 0.8.9.
>>>
>>>What is this dll for and where should it be? The name looks like it is
>>>part of wxWidget but I can't seem to find it.
>>
>>Googling on it I found that it is included with wxPython Unicode.
>>
>>What is needed to tell matplotlib not to use Unicode? Is this still
>>possible with 0.87?
>>
>>Werner
>>
>>
>>>
>>>Werner
>>>
>>>
>>>Using Tomcat but need to do more? Need to support web services, security?
>>>Get stuff done quickly with pre-integrated technology to make your job easier
>>>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>
>>
>>Using Tomcat but need to do more? Need to support web services, security?
>>Get stuff done quickly with pre-integrated technology to make your job easier
>>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>_______________________________________________
>>Matplotlib-users mailing list
>>Mat...@li...
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
> 
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
From: Charlie M. <cw...@gm...> - 2006年07月06日 14:14:24
As you have found, the matplotlib binaries are built using the unicode
version of wxpython. If you are not using blitting, then you can just
go in any delete the "matplotlib/backends/_wxagg.so" (.pyd for
windows) file from the installed matplotlib module. Then the
pure-python wx backend will be used instead, and it should work fine
with both versions of wx.
- Charlie
On 7/6/06, Werner F. Bruhin <wer...@fr...> wrote:
> Werner F. Bruhin wrote:
>
> > Trying to py2exe the application I get an error no such file
> > "wxmsw26uh_vc.dll".
> >
> > I am on:
> > # Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
> > # wxPython 2.6.3.2, Boa Constructor 0.4.4
> >
> > Part of the changes I made inludes trying out numpy 0.8.9.
> >
> > What is this dll for and where should it be? The name looks like it is
> > part of wxWidget but I can't seem to find it.
>
> Googling on it I found that it is included with wxPython Unicode.
>
> What is needed to tell matplotlib not to use Unicode? Is this still
> possible with 0.87?
>
> Werner
>
> >
> >
> > Werner
> >
> >
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Werner F. B. <wer...@fr...> - 2006年07月06日 13:19:13
I got this to work, only issue left is the py2exe problem (see other post).
Looking through the matplotlib 0.87 doc (page 13) it mentioned that one 
should use an appropriate package for the numeric package one uses, but 
I can't see see these packages.
Is it that the doc is just a bit out of date?
FYI, the section 1.2 Numerix does also not mention numpy.
Werner
From: Werner F. B. <wer...@fr...> - 2006年07月06日 13:12:02
Werner F. Bruhin wrote:
> Trying to py2exe the application I get an error no such file 
> "wxmsw26uh_vc.dll".
> 
> I am on:
> # Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
> # wxPython 2.6.3.2, Boa Constructor 0.4.4
> 
> Part of the changes I made inludes trying out numpy 0.8.9.
> 
> What is this dll for and where should it be? The name looks like it is 
> part of wxWidget but I can't seem to find it.
Googling on it I found that it is included with wxPython Unicode.
What is needed to tell matplotlib not to use Unicode? Is this still 
possible with 0.87?
Werner
> 
> 
> Werner
> 
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
From: Werner F. B. <wer...@fr...> - 2006年07月06日 12:58:01
Trying to py2exe the application I get an error no such file 
"wxmsw26uh_vc.dll".
I am on:
# Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
# wxPython 2.6.3.2, Boa Constructor 0.4.4
Part of the changes I made inludes trying out numpy 0.8.9.
What is this dll for and where should it be? The name looks like it is 
part of wxWidget but I can't seem to find it.
Werner
From: Nils W. <nw...@ia...> - 2006年07月06日 12:43:47
Attachments: image.jpg.gz
Hi all,
I would like to replace the lower left corner of the attached contour 
plot by a color corresponding to zero
as defined in the colorbar. I tried to add a second contour plot but it 
doesn't work.
So how can I manage this task ?
Nils
From: Werner F. B. <wer...@fr...> - 2006年07月06日 11:22:31
Just tried again using GetRight download manager and did manage to 
download it. Just FYI, GetRight reported multiple disconnects due to 
busy server, but as it allows to resume this was not a problem.
Werner
Werner F. Bruhin wrote:
> I tried multiple times to download the above and/or to just view it with 
> Adobe 7 but it looks like the file is corrupted.
> 
> Can anyone confirm this or is the problem on my side?
> 
> Werner
> 
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
From: Favre-Nicolin V. <vi...@us...> - 2006年07月06日 11:18:13
On Thursday 06 July 2006 12:40, Werner F. Bruhin wrote:
> I tried multiple times to download the above and/or to just view it with
> Adobe 7 but it looks like the file is corrupted.
 Works fine here, Linux Mandriva 2006 / Acrobat Reader 7.0.1 - 27/07/2005
=2D-=20
Vincent Favre-Nicolin
Universit=E9 Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net
From: Werner F. B. <wer...@fr...> - 2006年07月06日 10:41:07
I tried multiple times to download the above and/or to just view it with 
Adobe 7 but it looks like the file is corrupted.
Can anyone confirm this or is the problem on my side?
Werner
From: John H. <jdh...@ac...> - 2006年07月05日 14:16:02
>>>>> "Darius" == Darius Vainius <va...@ib...> writes:
 Darius> Hello, does anybody have an idea how to set the x-axis
 Darius> scale to logarithmic on an errorbar plot? In other words,
 Darius> is there any way to plot data with error bars while having
 Darius> x-axis scale logarithmic?
 Darius> Many thanks in advance for any useful suggestions.
On any type of plot where the data on a given axis is strictly
positive, you should be able to set the scale to 'log'. Just make
sure that the axis limits are also strictly positive. Eg
 ax.set_xlim(0.01, 10)
 ax.set_xscale('log')
With errorbars, you have to be careful, because if the error limits on
one of your positive datapoints extend into non-positive territory,
you'll get an error with log scaling.
JDH
3 messages has been excluded from this view by a project administrator.

Showing results of 313

<< < 1 .. 10 11 12 13 > >> (Page 12 of 13)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /