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
(22)
2
(17)
3
(21)
4
(7)
5
(7)
6
(17)
7
(8)
8
(8)
9
(33)
10
(11)
11
12
(2)
13
(11)
14
(29)
15
(13)
16
(13)
17
(3)
18
(2)
19
(3)
20
(7)
21
(17)
22
(12)
23
(19)
24
(19)
25
(14)
26
(5)
27
(25)
28
(13)




Showing results of 353

<< < 1 .. 6 7 8 9 10 .. 15 > >> (Page 8 of 15)
From: Ted D. <ted...@jp...> - 2006年02月14日 17:03:59
FYI: I believe the best way to check for None is to use:
if Z is None
or
if Z is not None
This eliminates the possibility of Z implementing the __cmp__ method which 
would get called if you use "if Z == None". I only know this after wasting 
several hours trying to figure out why some code that looked perfectly 
reasonable wouldn't work after I adding a comparison method...
Ted
At 08:44 AM 2/14/2006, J.B...@if... wrote:
>Hello again,
>
>in mplot3d.py I changed line 729:
>
>- if Z:
>+if Z==None:
>
>Could this work too??? 'Python mplot3d.py' seems to work then but 'python
>surface.py' fails with:
>
>jens-ifw@x21lx-jensb:/media/exchange/Python/3d> python surface.py
>Traceback (most recent call last):
> File "surface.py", line 16, in ?
> ax = mplot3d.Axes3D(fig, axisbg='k')
>AttributeError: 'module' object has no attribute 'Axes3D'
>
>Cheers
>
>Jens
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems? Stop! Download the new AJAX search engine that makes
>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>Matplotlib-users mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: <J.B...@if...> - 2006年02月14日 16:44:56
Hello again,
in mplot3d.py I changed line 729:
- if Z:
+if Z==None:
Could this work too??? 'Python mplot3d.py' seems to work then but 'python
surface.py' fails with:
jens-ifw@x21lx-jensb:/media/exchange/Python/3d> python surface.py
Traceback (most recent call last):
 File "surface.py", line 16, in ?
 ax = mplot3d.Axes3D(fig, axisbg='k')
AttributeError: 'module' object has no attribute 'Axes3D'
Cheers
Jens
From: Ryan K. <rya...@gm...> - 2006年02月14日 15:30:11
This is a common problem I have with switching code over to numpy. If
you are in the habit of using if myMatrix: as a way to check for an
empty matrix, numpy now throws this error. It could be replaced with
myMatrix.any(), but then I think there are problems if you use the
same code under Numeric or numarray.
Ryan
On 2/14/06, John Hunter <jdh...@ac...> wrote:
> >>>>> "J" =3D=3D J Brandenburg <J.B...@if...> writes:
>
> J> Hi Travis, Hi list,
>
> J> I saw Travis' query on the matplotlib-user - list and of cause
> J> I read Fernandos reply...
>
> J> So, I copied the three files into the matplotlib directory as
> J> bsp_3D01.py, proj3d.py and mplot3d.py... But if I try to run
> J> bsp_3d01.py I get:
>
> Not sure about the bsp example ...
>
> Try the following
>
> wget http://matplotlib.sourceforge.net/mpl3d.zip
> unzip mpl3d.zip
> cd 3d/
> python mplot3d.py --Numeric
>
> There is a problem with numpy support, since when I ran the code with
> numpy I got the following
>
> Traceback (most recent call last):
> File
> "/home/jdhunter/debs/matplotlib/usr/lib/python2.4/site-packages/matplot=
lib/backends/backend_gtk.py",
> line 303, in expose_event
> self._render_figure(self._pixmap, w, h)
> File
> "/home/jdhunter/debs/matplotlib/usr/lib/python2.4/site-packages/matplot=
lib/backends/backend_gtkagg.py",
> line 72, in _render_figure
> FigureCanvasAgg.draw(self)
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
> line 386, in draw
> self.figure.draw(renderer)
> File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
> 528, in draw
> for a in self.axes: a.draw(renderer)
> File "mplot3d.py", line 714, in draw
> self.w_xaxis.draw(renderer)
> File "mplot3d.py", line 464, in draw
> tc =3D self.axes.tunit_cube(vals,renderer.M)
> File "mplot3d.py", line 680, in tunit_cube
> M =3D M or self.M
> ValueError: The truth value of an array with more than one element is
> ambiguous. Use a.any() or a.all()
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: John H. <jdh...@ac...> - 2006年02月14日 13:54:34
>>>>> "J" == J Brandenburg <J.B...@if...> writes:
 J> Hi Travis, Hi list,
 J> I saw Travis' query on the matplotlib-user - list and of cause
 J> I read Fernandos reply...
 J> So, I copied the three files into the matplotlib directory as
 J> bsp_3D01.py, proj3d.py and mplot3d.py... But if I try to run
 J> bsp_3d01.py I get:
Not sure about the bsp example ...
Try the following
 wget http://matplotlib.sourceforge.net/mpl3d.zip
 unzip mpl3d.zip
 cd 3d/
 python mplot3d.py --Numeric
There is a problem with numpy support, since when I ran the code with
numpy I got the following
Traceback (most recent call last):
 File
 "/home/jdhunter/debs/matplotlib/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
 line 303, in expose_event
 self._render_figure(self._pixmap, w, h)
 File
 "/home/jdhunter/debs/matplotlib/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
 line 72, in _render_figure
 FigureCanvasAgg.draw(self)
 File
 "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
 line 386, in draw
 self.figure.draw(renderer)
 File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
 528, in draw
 for a in self.axes: a.draw(renderer)
 File "mplot3d.py", line 714, in draw
 self.w_xaxis.draw(renderer)
 File "mplot3d.py", line 464, in draw
 tc = self.axes.tunit_cube(vals,renderer.M)
 File "mplot3d.py", line 680, in tunit_cube
 M = M or self.M
ValueError: The truth value of an array with more than one element is
 ambiguous. Use a.any() or a.all()
From: <J.B...@if...> - 2006年02月14日 13:12:08
Hi Travis, Hi list,
I saw Travis' query on the matplotlib-user - list and of cause I read
Fernandos reply...
So, I copied the three files into the matplotlib directory as bsp_3D01.py,
proj3d.py and mplot3d.py... But if I try to run bsp_3d01.py I get:
jens-ifw@x21lx-jensb:/media/exchange/Python> python bsp_3D01.py
Traceback (most recent call last):
 File "bsp_3D01.py", line 32, in ?
 run1()
 File "bsp_3D01.py", line 20, in run1
 ax = mplot3d.Axes3D(fig)
AttributeError: 'module' object has no attribute 'Axes3D'
What do I have to do to get it running???
Thank's a lot
Jens Brandenburg
From: Hanno K. <kl...@ph...> - 2006年02月14日 11:50:26
Hi there,
is there a possibility to use imshow() with masked arrays? The
problem: I have a large matrix where no_data_values are denominated by
a certain number. It now would be very easy to mask these values and
let imshow for example display them in another color but not use them
in e.g. normalising the color scale. 
I think I saw some other mechansm to do that in the cookbook but I'm
not sure if it can do what I want and at the moment the cookbook (or
rather the scipy server) seems to be down.
Best regards,
Hanno
-- 
Hanno Klemm
kl...@ph...
From: sunqiang <sun...@gm...> - 2006年02月14日 07:08:22
try pylab.show() after the line "pylab.plot..."
On 2/14/06, Titi Anggono <tia...@ya...> wrote:
>
> Hi all,
>
> I tried to use matplotlib to plot my data for the
> first time.
> Here is my script
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
> import pylab
> fout=3Dpylab.load('..\mia.dat')
> t=3Dfout[:,0]
> x=3Dfout[:,1]
> y=3Dfout[:,2]
> z=3Dfout[:,3]
> pylab.plot(t,x)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
>
> I got nothing and got the following message:
> "[<matplotlib.lines.Line2D instance at 0x014362B0>]"
>
> Please tell me what wrong is with my script.
>
> Btw, when I typed fout, I got this
> "array (18147,4) , type =3D d, has 72588 elements".
> What is "d" ?
>
> Thanks
> Titi
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Titi A. <tia...@ya...> - 2006年02月14日 06:45:52
Hi all,
I tried to use matplotlib to plot my data for the
first time.
Here is my script
===========================
import pylab
fout=pylab.load('..\mia.dat')
t=fout[:,0]
x=fout[:,1]
y=fout[:,2]
z=fout[:,3]
pylab.plot(t,x)
===========================
I got nothing and got the following message:
"[<matplotlib.lines.Line2D instance at 0x014362B0>]"
Please tell me what wrong is with my script.
Btw, when I typed fout, I got this
"array (18147,4) , type = d, has 72588 elements".
What is "d" ?
Thanks
Titi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
From: Curtis C. <cu...@lp...> - 2006年02月14日 05:28:57
> Now I see what you mean. The problem is that the extent kwarg works
> only if the origin kwarg is also set and is not None. I have changed
> the docstring accordingly. There was a reason I made that requirement,
> but possibly it could be relaxed. The alternative is to simply generate
> X and Y arrays that specify the coordinates of your Z points, and then
> call contour(X, Y, Z, ...).
>
I think extent should work even if origin is not set, but at least if the
documentation is clear about this, users can figure out the right thing to
do easily enough.
The alternative you mention does not allow plotting of the y-axis in
reverse. For example, I often put pressure decreasing upward on the
y-axis of my plots. It would be nice if contour(X, Y, Z, ...) respected
my choice of ordering.
Cheers,
Curtis
From: Eric F. <ef...@ha...> - 2006年02月14日 05:21:08
Curtis,
Now I see what you mean. The problem is that the extent kwarg works 
only if the origin kwarg is also set and is not None. I have changed 
the docstring accordingly. There was a reason I made that requirement, 
but possibly it could be relaxed. The alternative is to simply generate 
X and Y arrays that specify the coordinates of your Z points, and then 
call contour(X, Y, Z, ...).
Eric
Curtis Cooper wrote:
> Hi Eric,
> 
> I'm sorry; you are correct. I will examine your example more carefully.
> What doesn't seem to work is when I don't use imshow at all but just do
> contour(Z, extent=extent). That is, the axes are just rows and columns of
> the pixels, not the extent I specified, whereas the extent I specified
> shows up when I only use imshow.
> 
> Thanks,
> Curtis
From: Curtis C. <cu...@lp...> - 2006年02月14日 04:59:41
Hi Eric,
I'm sorry; you are correct. I will examine your example more carefully.
What doesn't seem to work is when I don't use imshow at all but just do
contour(Z, extent=extent). That is, the axes are just rows and columns of
the pixels, not the extent I specified, whereas the extent I specified
shows up when I only use imshow.
Thanks,
Curtis
 * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Curtis S. Cooper, Graduate Research Assistant *
 * Lunar and Planetary Laboratory, University of Arizona *
 * http://www.lpl.arizona.edu/~curtis/		 *
 * Kuiper Space Sciences, Rm. 318 *
 * 1629 E. University Blvd., *
 * Tucson, AZ 85721 * * * * * * * * * * * * * * *
 * Wk: (520) 621-1471 *
 * * * * * * * * * * * *
On 2006年2月13日, Eric Firing wrote:
> Curtis Cooper wrote:
> > Eric,
> >
> > Craig is right, contour and contourf are ignoring the 'extent' kwarg. I
> > just tried the contour_image.py demo you referred to. I changed the value
> > of the image extent parameters, and they still do not show up.
> >
> > Cheers,
> > Curtis
>
> Curtis,
>
> What do you mean by "do not show up"? In contour_image.py, I changed
>
> extent = (-3,4,-4,3)
> to
> extent = (-30,40,-40,30)
>
> and the three subplots that use extent changed their x and y ranges by a
> factor of 10, as expected.
>
> Either there is a version problem or there is a misunderstanding, so you
> will need to be more specific. Please provide a minimal script that
> doesn't do what you think it should, and specify what it is that you
> think it should do.
>
> Thanks.
>
> Eric
>
From: Eric F. <ef...@ha...> - 2006年02月14日 04:38:18
Curtis Cooper wrote:
> Eric,
> 
> Craig is right, contour and contourf are ignoring the 'extent' kwarg. I
> just tried the contour_image.py demo you referred to. I changed the value
> of the image extent parameters, and they still do not show up.
> 
> Cheers,
> Curtis
Curtis,
What do you mean by "do not show up"? In contour_image.py, I changed
extent = (-3,4,-4,3)
to
extent = (-30,40,-40,30)
and the three subplots that use extent changed their x and y ranges by a 
factor of 10, as expected.
Either there is a version problem or there is a misunderstanding, so you 
will need to be more specific. Please provide a minimal script that 
doesn't do what you think it should, and specify what it is that you 
think it should do.
Thanks.
Eric
From: Curtis C. <cu...@lp...> - 2006年02月14日 03:41:28
Eric,
Craig is right, contour and contourf are ignoring the 'extent' kwarg. I
just tried the contour_image.py demo you referred to. I changed the value
of the image extent parameters, and they still do not show up.
Cheers,
Curtis
 * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Curtis S. Cooper, Graduate Research Assistant *
 * Lunar and Planetary Laboratory, University of Arizona *
 * http://www.lpl.arizona.edu/~curtis/		 *
 * Kuiper Space Sciences, Rm. 318 *
 * 1629 E. University Blvd., *
 * Tucson, AZ 85721 * * * * * * * * * * * * * * *
 * Wk: (520) 621-1471 *
 * * * * * * * * * * * *
From: Darren D. <dd...@co...> - 2006年02月14日 01:31:18
On Monday 13 February 2006 7:34 pm, Bill Baxter wrote:
> Sorry, I wasn't very clear. My thinking was like this:
> - matplotlib web pages don't mention support for numpy anywhere, just
> numeric and numarray
> - matplotlib web page says that the default is to use numeric
> - numpy is basically the successor to numeric plus numarray functionality
>
> - conclusion: if matplotlib actually does support numpy, and the web pages
> are just out of date, then probably numpy would now be the default instead
> of numeric, since it is the successor to numeric.
>
> But apparently there's a flaw in that thinking somewhere.
(This discussion should really be on the mpl list instead of numpy.)
numpy is not Numeric. matplotlib supports Numeric, numarray and numpy. Since 
numpy is currently stabilizing, and Numeric is already stable, I think it 
appropriate that Numeric is used unless numpy is asked for, at least until 
numpy-1.0 (not that its my decision). 
From: Robert K. <rob...@gm...> - 2006年02月14日 01:20:46
Graeme O'Keefe wrote:
> Thanks Chris,
> 
> I've decided to deactivate the darwinports python and I've installed
> python2.4/wxPython from your links below.
> I have MPL/numpy/scipy eggs from Chris Fonnesbeck
> (http://homepage.mac.com/fonnesbeck/mac) and Charlie Moad that uses
> wxPython/python24.
> 
> I had started looking at pygtk for GUI apps, but I shall now take a look
> at wx.
> 
> Thanks to you and Charlie for your help.
> 
> For those interested in the scipy/numpy egg, I had two issues I had was
> that the scipy egg didn't seem to install correctly.
> ### 1
> I found that if instead I unzipped the scipy egg file and then rm'd it,
> there was no problem.
> ie.
> cd /Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-packages
> sudo unzip scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg
> sudo
> mv scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.bad.egg
> 
> so there must be some issue with the pkg loader from eggs rather than
> directories.
The scipy egg is certainly not zip-safe. easy_install should have recognized
that and unpacked the egg appropriately for you.
> ### 2.
> In scipy/cluster/vq.py
> I had to change line 306
> 
> from numpy.randint import randint
> .
> .
> .
> # guess = take(obs,randint.rvs(0,No,k),0) # gjok20060208
> guess = take(obs,randint(0,No,k),0)
That's a bug (due to me, probably). Fixed in SVN.
-- 
Robert Kern
rob...@gm...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Graeme O'K. <gra...@pe...> - 2006年02月14日 01:09:45
Thanks Chris,
I've decided to deactivate the darwinports python and I've installed 
python2.4/wxPython from your links below.
I have MPL/numpy/scipy eggs from Chris Fonnesbeck (http:// 
homepage.mac.com/fonnesbeck/mac) and Charlie Moad that uses wxPython/ 
python24.
I had started looking at pygtk for GUI apps, but I shall now take a 
look at wx.
Thanks to you and Charlie for your help.
For those interested in the scipy/numpy egg, I had two issues I had 
was that the scipy egg didn't seem to install correctly.
### 1
I found that if instead I unzipped the scipy egg file and then rm'd 
it, there was no problem.
ie.
cd /Library/Frameworks/Python.framework/Versions/Current/lib/ 
python2.4/site-packages
sudo unzip scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg
sudo mv scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg scipy-0.4.5.1597- 
py2.4-macosx-10.4-ppc.bad.egg
so there must be some issue with the pkg loader from eggs rather than 
directories.
### 2.
In scipy/cluster/vq.py
I had to change line 306
from numpy.randint import randint
.
.
.
# guess = take(obs,randint.rvs(0,No,k),0) # 
gjok20060208
 guess = take(obs,randint(0,No,k),0)
regards,
Graeme
Graeme O'Keefe, PhD, MACPSEM
Principal Medical Physicist
Centre for PET
Austin Hospital
Tel: (613)-9496-5767
Fax: (613) 9458-5023
On 14/02/2006, at 8:20 AM, Christopher Barker wrote:
> Graeme O'Keefe wrote:
>> I'm using darwinports/python24 whereas the preinstalled 
>> environment which includes wxpython is python23.
>
> There are easy installs for python2.4 and wxPython 2.6.1 for 
> python2.4:
>
> http://www.undefined.org/python/
>
> http://www.pythonmac.org/packages/
> (or the wxPython download page)
>
> I've built MPL for those versions in the past, I don't have the 
> latest, and I haven't figure out eggs yet, but I should some day.
>
>> I'll wait until matplotlib/numpy makes it into darwinports.
>
> Essentially, darwinports is kind of like a Unix within OS-X, so I'd 
> go with all darwinports or no darwinports (for Python stuff)
>
>> I'm not particularly wedded to the idea of using py-gtk2, is there 
>> any compelling reason to use wxpython over py-gtk2?
>
> It depends on how you are using it. wxPython lets you develop 
> fairly native cross platform apps. It also works with the native 
> Mac GUI (rather than X11). If you're using MPL stand alone (rather 
> than embedded in a larger GUI app), and you're happy with 
> darwinports and X11, then there is no advantage.
>
> -Chris
>
> -- 
> Christopher Barker, Ph.D.
> Oceanographer
> 		
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
>
From: oeolartep <cts...@gm...> - 2006年02月14日 01:00:10
Thanks Eric. I start with version 0.85 of mpl, but the contour examples
doesn't work, and I really need this piece of code for my project. I should
consider update mpl to 0.86 version.
 
--
View this message in context: http://www.nabble.com/matplotlib-0.82-subplot-problem-t1117646.html#a2923087
Sent from the matplotlib - users forum at Nabble.com.
From: Eric F. <ef...@ha...> - 2006年02月14日 00:17:30
Can you update to the current version of mpl? This sounds like a bug 
that was fixed some time after version 82.0. The fix was in figure.py, 
in the Figure._make_key() method.
Eric
oeolartep wrote:
> If one try to plot more than nine axes in one figure is necesary to add a
> comma between subplot arguments, but this command doesn't work properly. If
> , for example, we need to plot twelve images
> 
> subplot(4,3,1)
> imshow(...)
> .
> .
> .
> subplot(4,3,12)
> imshow(...) 
> 
> all images appear overlapped only on the first block of the array.
From: oeolartep <cts...@gm...> - 2006年02月13日 23:37:31
If one try to plot more than nine axes in one figure is necesary to add a
comma between subplot arguments, but this command doesn't work properly. If
, for example, we need to plot twelve images
subplot(4,3,1)
imshow(...)
.
.
.
subplot(4,3,12)
imshow(...) 
all images appear overlapped only on the first block of the array.
--
View this message in context: http://www.nabble.com/matplotlib-0.82-subplot-problem-t1117646.html#a2922054
Sent from the matplotlib - users forum at Nabble.com.
From: Ryan K. <rya...@gm...> - 2006年02月13日 23:32:27
I am having a weird problem zooming in on a graph using
ylim(ymin,ymax). The data is all positive. I am trying to search for
local minimums of a function of one variable. So, I evaluate the
function over a vector and look graphically for local minimums to use
as initial guesses to scipy.optimize.fmin. If I plot all of the data,
it looks like the attached file zoomout.png. But if I try and zoom in
using ylim, I get the rather strange looking plot in zoomin.png. Some
of the data is negative on the plot even though min(yvector)=3D=3D0.0. I
can sort of fixe the problem using masked arrays (zoommasked.png), but
I would like to have vertical lines going up to the masked values -
like would be there if I could just zoom in correctly.
I am using matplotlib cvs from some time last week, scipy 0.4.5.1579,
and numpy 0.9.5.2043 and numerix=3Dnumpy.
What am I going wrong or is this a bug?
Thanks,
Ryan
From: Paul B. <peb...@gm...> - 2006年02月13日 21:59:35
On 2/13/06, manouchk <man...@gm...> wrote:
>
>
> I'd like to know if someone already installed matplotlib on mandriva 2005=
?
> Is
> there any src.rpm? pygtk 2.0 needs to be installed?
I routinely build and then install the CVS version into /usr/local. I'm no=
t
aware of the most recent version being available, but there is an RPM for
python-matplotlib-0.83.2-1mdk in the contrib directory, if you add it to
your package manager. Since I don't use it, I don't know if it requires
pygtk or not.
 -- Paul
--
Paul Barrett, PhD Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 240-593-0028 Baltimore, MD 21218
From: manouchk <man...@gm...> - 2006年02月13日 21:50:27
Le Lundi 13 F=E9vrier 2006 19:46, manouchk a =E9crit=A0:
> Hi,
>
> I'd like to know if someone already installed matplotlib on mandriva 2005?
> Is there any src.rpm? pygtk 2.0 needs to be installed?
I'm trying to install using checkinstall to keep a only with-rpm-installed=
=20
distribution.
build seems to work=20
then using checkinstall python setup.py install, it fails :
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 Installation results =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
installing data to lib/python2.4/site-packages/matplotlib/mpl-data
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-i686-2.4/pylab.py -> /usr/lib/python2.4/site-packag=
es
error: /usr/lib/python2.4/site-packages/pylab.py: No such file or directory
**** Installation failed. Aborting package creation.
From: manouchk <man...@gm...> - 2006年02月13日 21:37:54
Hi,
I'd like to know if someone already installed matplotlib on mandriva 2005? Is 
there any src.rpm? pygtk 2.0 needs to be installed?
From: Christopher B. <Chr...@no...> - 2006年02月13日 21:21:10
Graeme O'Keefe wrote:
> I'm using darwinports/python24 whereas the preinstalled environment 
> which includes wxpython is python23.
There are easy installs for python2.4 and wxPython 2.6.1 for python2.4:
http://www.undefined.org/python/
http://www.pythonmac.org/packages/
(or the wxPython download page)
I've built MPL for those versions in the past, I don't have the latest, 
and I haven't figure out eggs yet, but I should some day.
> I'll wait until matplotlib/numpy makes it into darwinports.
Essentially, darwinports is kind of like a Unix within OS-X, so I'd go 
with all darwinports or no darwinports (for Python stuff)
> I'm not particularly wedded to the idea of using py-gtk2, is there any 
> compelling reason to use wxpython over py-gtk2?
It depends on how you are using it. wxPython lets you develop fairly 
native cross platform apps. It also works with the native Mac GUI 
(rather than X11). If you're using MPL stand alone (rather than embedded 
in a larger GUI app), and you're happy with darwinports and X11, then 
there is no advantage.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: John H. <jdh...@ac...> - 2006年02月13日 14:56:10
>>>>> "Luigi" == Luigi Paioro <lu...@la...> writes:
 Luigi> Hi to all! A short question.
 Luigi> How can I do to remove a line from a subplot? I use
 Luigi> add_line(...) in order to add it, but what command have I
 Luigi> to use for remove it?
One figure in the user's guide that helps with kind of thing is the
figure in the API chapter that shows the containment hierarchy and
what the attribute names are. So you can see for example that the
Axes class has a lines instance which is a list of Line2D objects.
Thus you can remove any line from the axes just using list methods
 ax.lines.remove(someline)
The only lingering effects of the line after removing it will be that
it's data extent (xmin, xmax), (ymin, ymax) will still be in the axes
data lim, so if you want to clear this you will need to reset the
datalim or manually set the limits, eg ax.set_xlim and ax.set_ylim.
JDH
5 messages has been excluded from this view by a project administrator.

Showing results of 353

<< < 1 .. 6 7 8 9 10 .. 15 > >> (Page 8 of 15)
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 によって変換されたページ (->オリジナル) /