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

Showing results of 398

<< < 1 .. 10 11 12 13 14 .. 16 > >> (Page 12 of 16)
From: James B. <bo...@ll...> - 2006年03月09日 22:08:34
Does the capability exist in matplotlib to use patterns rather than 
colors to fill polygons, contours etc.?
This ability comes in handy when one wants to distinguish various 
regions in a plot but needs to restrict the plot to black and white.
The page charges are sometimes much larger for colored graphics and 
reproduction costs are likewise reduced for B/W.
--Jim
From: Darren D. <dd...@co...> - 2006年03月09日 18:51:10
On Wednesday 08 March 2006 07:22, Randewijk P-J <pjr...@su...> wrote:
> if sys.platform == 'win32': gs_exe = 'gswin32c'
> else: gs_exe = 'gs'
> command = '%s -dBATCH -dNOPAUSE -sDEVICE=bbox "%s"'
> % (gs_exe, tmpfile)
Thank you for the report, this has been fixed.
Darren
On Wednesday 08 March 2006 16:48, you wrote:
> >>>>> "Darren" == Darren Dale <dd...@co...> writes:
>
> Darren> Any objections to making the backend rc setting
> Darren> case-insensitive?
>
> I think it is a good idea -- just put a .lower() in the relevant
> places.
Unfortunately, it wasnt as easy as that. I had some trouble with plots and 
toolbars not rendering (although the window would render), and the 
debug-annoying output wasnt helpful, so I gave up on this route. 
Instead, I made a validate_backend function that validates "gtkagg" regardless 
of the case, and returns the properly formatted "GTKAgg". I tested with 
backend_driver, I tried setting the backend with the use function, and with 
the -d flag at runtime, all tests passed. Changes in svn.
Darren
From: <lao...@gm...> - 2006年03月09日 18:18:59
Hi All,
I am new to matplotlib. I really appreciate help with building it!
When I downloaded the source: matplotlib-0.87.1.tar.gz
and tried build in the cygwin environment (CYGWIN_NT-5.1 YZhao
1.5.19(0.150/4/2) 2006年01月20日 13:28 i686 Cygwin)
I got the following error:
$ python setup.py build
 6 [main] python2.4 41284 C:\GNU\bin\python2.4.exe: *** fatal
error - unable to remap C:\GNU\usr\X11R6\bin\cygXcursor-1.dll to same
address as parent(0x19130000) !=3D 0x19160000
 3052 [main] python 41844 child_copy: loaded dll data write copy
failed, 0x63104000..0x63105150, done 0, windows pid 2287012, Win32
error 5
Traceback (most recent call last):
 File "setup.py", line 203, in ?
 build_gdk(ext_modules, packages, NUMERIX)
 File "/cygdrive/e/tmp/matplotlib-0.87.1/setupext.py", line 838, in build_=
gdk
 add_pygtk_flags(module)
 File "/cygdrive/e/tmp/matplotlib-0.87.1/setupext.py", line 191, in
add_pygtk_flags
 pygtkIncludes =3D getoutput('pkg-config --cflags-only-I pygtk-2.0').spl=
it()
 File "/cygdrive/e/tmp/matplotlib-0.87.1/setupext.py", line 113, in getout=
put
 ret =3D os.popen(s).read().strip()
OSError: [Errno 11] Resource temporarily unavailable
Thanks a lot in advance!
From: John H. <jdh...@ac...> - 2006年03月09日 17:10:24
>>>>> "Imara" == Imara Jarrett <im...@gm...> writes:
 Imara> Greetings, I am trying to make a scatter plot with each
 Imara> marker having an individual color.
 Imara> What am I doing wrong?
 Imara> x = [ 4, 5, 6] y = [ 7, 8, 9] size = [ 6,7,8] color = [
 Imara> 'r', 'b', 'g'] scatter( x, y, s = size, c = color) show()
 Imara> I get the following error:
 Imara> AttributeError: 'list' object has no attribute 'astype'
 Imara> Any suggestions would be appreciated!
This is fixed in the svn repository. For now, make sure that your
color argument is an array, not a list.
JDH
From: Imara J. <im...@gm...> - 2006年03月09日 16:53:55
Greetings,
I am trying to make a scatter plot with each marker having an individual
color.
What am I doing wrong?
x =3D [ 4, 5, 6]
y =3D [ 7, 8, 9]
size =3D [ 6,7,8]
color =3D [ 'r', 'b', 'g']
scatter( x, y, s =3D size, c =3D color)
show()
I get the following error:
AttributeError: 'list' object has no attribute 'astype'
Any suggestions would be appreciated!
From: Jouni K S. <jk...@ik...> - 2006年03月09日 15:27:09
John Hunter <jdh...@ac...> writes:
> What you need to do is find out which cm* font file contains the
> Omega you want, and what the glyph index of Omega is.
The simple way to do this is to write a TeX file like
 \documentclass{article}
 \pagestyle{empty}
 \begin{document}
 $\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega$
 \end{document}
run it through LaTeX and then do dvitype -output-level=2 foo.dvi,
which reveals the font and the codes:
 114: fntdef1 7: cmr10---loaded at size 655360 DVI units
 135: fntnum7
 136: setchar0
 137: setchar1
 138: setchar2
 139: setchar3
 140: setchar4
 141: setchar5
 142: setchar6
 143: setchar7
 144: setchar8
 145: setchar9
 146: setchar10
So the upper-case non-slanted Greek letters occupy the first 11
positions of cmr10. For the letters not listed, I guess you are
supposed to use the similar-looking Latin letters.
-- 
Jouni
From: Tim L. <ti...@cs...> - 2006年03月09日 03:29:41
On 2006年3月08日, John Hunter <jdh...@ac...> wrote...
> 
> It looks like matplotlib finally made it into debian
> 
> http://packages.debian.org/unstable/python/python2.3-matplotlib
> 
> Hey, now we are officially unstable. Something to celebrate!
That's awesome news! Congrats to JDH and all the others who've put in so 
much hard work for this great tool.
Cheers,
Tim
> 
> There has been a lot of interest in getting mpl into debian for some
> time, but because the install and prereqs are so damn complicated
> (look at the list!), it took quite a while before someone put together
> a package that would satisfy the debian mavens.
> 
> JDH
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
`-
From: John H. <jdh...@ac...> - 2006年03月09日 03:24:28
It looks like matplotlib finally made it into debian
 http://packages.debian.org/unstable/python/python2.3-matplotlib
Hey, now we are officially unstable. Something to celebrate!
There has been a lot of interest in getting mpl into debian for some
time, but because the install and prereqs are so damn complicated
(look at the list!), it took quite a while before someone put together
a package that would satisfy the debian mavens.
JDH
From: Sturla M. <stu...@me...> - 2006年03月09日 01:15:43
I have problems getting matplotlib to work on Windows (ActivePython
2.4.2). After installing the precompiled binary packages for NumPy 0.9.5
and Matplotlib 0.87.1, I get this error message:
>>> import pylab as p
Traceback (most recent call last):
 File "<pyshell#4>", line 1, in ?
 import pylab as p
 File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ?
 import cm
 File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
 import colors
 File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ?
 from numerix import array, arange, take, put, Float, Int, where, \
 File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 61, in ?
 from _nc_imports import nx, inf, infinity, Infinity
 File "C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",
line 25, in ?
 inf = infty = infinity = Infinity = (array([1])/0.0)[0]
TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and 'float'
>>>
Is there an easy fix for this?
Sturla Molden
From: Alan I. <ai...@am...> - 2006年03月09日 00:34:11
John,
I think this contains the answer to your question: 
http://www.aptech.com/support_faq.html#vb
I have not tried it. 
Wish I could be of more help, 
Alan 
PS Had trouble with your email address ...
From: Christopher B. <Chr...@no...> - 2006年03月09日 00:25:08
"numpy" is the third generation of Numeric/numarray, it is a different 
package.
http://numeric.scipy.org/
You can go get it and install it, or change your matplotlibrc to select 
Numeric or numarray
-Chris
Chris Seberino wrote:
> import pylab
> 
> causes it to try to import numpy
> 
> but 'numpy' is not found in numarray or numeric packages!?!
> 
> Any ideas?
> 
> 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: Chris S. <seb...@sp...> - 2006年03月08日 23:22:48
import pylab
causes it to try to import numpy
but 'numpy' is not found in numarray or numeric packages!?!
Any ideas?
Chris
From: NOC <no...@ag...> - 2006年03月08日 22:30:22
Hello,
This is a test message - if you have received this message you may
delete it.
Thank you,
Craig Saffell
NOC Engineer Tier 2
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
 Darren> Any objections to making the backend rc setting
 Darren> case-insensitive?
I think it is a good idea -- just put a .lower() in the relevant
places.
DH
On Wednesday 08 March 2006 15:55, Mitchell, Gary (Gary) wrote:
> John,
> Typo got me TkAgg not TKAgg works. The plot worked as shown below. 
> Thanks for your help I have run the example on page 7 of the
> users_guide_0.83.2.pdf and it looks great!!! Thanks again...
> Gary
Any objections to making the backend rc setting case-insensitive?
Hi,
On Wed, 8 Mar 2006, Mitchell, Gary (Gary) wrote:
> John,
> Typo got me TkAgg not TKAgg works.
Getting the capitalization of the backend wrong happens to me quite
often - would it be (easily?) possible to check for allowed
backends and raise a warning if necessary?
Best, Arnd
John Hunter wrote:
> Perhaps you entered it in wrong -- it should be "TkAgg" as you typed
> above but if you got this error I'm guessing you made a typo in your
> rc file.
You can also put a matplotlib.use("TkAgg") in your script which might be 
an easier way to test different back-ends than editing the rc file:
import matplotlib
matplotlib.use("TkAgg")
from pylab import subplot, show
ax = subplot(111)
ax.plot([1,2,3])
show()
-- 
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: Mitchell, G. \(Gary\) <gm...@ag...> - 2006年03月08日 20:56:20
John,
Typo got me TkAgg not TKAgg works. The plot worked as shown below. =
Thanks for your help I have run the example on page 7 of the =
users_guide_0.83.2.pdf and it looks great!!!
Thanks again...
Gary
=20
________________________________
From: John Hunter [mailto:jdh...@ni...]
Sent: Wed 3/8/2006 1:43 PM
To: Mitchell, Gary (Gary)
Cc: mat...@li...
Subject: Re: [Matplotlib-users] update to: I can not get matplotlib to =
work on a windows xp professional machine
>>>>> "Mitchell," =3D=3D Mitchell, Gary (Gary) <gm...@ag...> writes:
 Gary> John, I tried using TkAgg as the backend and it raised
 Gary> a value error Unrecognized backend error. The
Perhaps you entered it in wrong -- it should be "TkAgg" as you typed
above but if you got this error I'm guessing you made a typo in your
rc file. Create a simple script
from pylab import subplot, show
ax =3D subplot(111)
ax.plot([1,2,3])
show()
and run it from the command line with
 > python myscript.py --verbose-helpful
This will report information about which backend you've selected
etc... It will also tell you which rc file is loaded. If you
encounter further errors please post this output along with your
explanation.
Sorry for the troubles -- you're almost there!
JDH
From: Darren D. <dd...@co...> - 2006年03月08日 20:53:47
On Wednesday 08 March 2006 13:10, Eric Firing wrote:
> John,
>
> John Hunter wrote:
> >>>>>>"Darren" == Darren Dale <dd...@co...> writes:
> >
> > Darren> Thank you for the suggestion. How is it compatible with
> > Darren> Python-2.3? Do you mean we would include the source for
> > Darren> that module in mpl?
> >
> > Yep, just as we include pyparsing, et al.
> >
> > JDH
>
> What about Python-2.2? Do we still need to stay compatible with that?
> I would be happy to see that go, and officially move the requirement up
> to 2.3, if this has not already been done.
I have posted subprocess.py at 
http://staff.chess.cornell.edu/~dale/matplotlib/subprocess.py
running python subprocess.py will execute a test, which I tried with python 
2.2 and 2.3 on linux. They both seemed to work. A successful test includes 
failing to open a bogus file and therefore raising an exception as the last 
step. Would anyone running python-2.3 or 2.2 on windows or mac run this test 
and report the result?
Thanks,
Darren
From: Mitchell, G. \(Gary\) <gm...@ag...> - 2006年03月08日 20:45:38
John,
For some reason I seem to not be able to send email to the list..
Gary
Your message did not reach some or all of the intended recipients.=20
Subject:	 FW: [Matplotlib-users] update to: I can not get matplotlib to =
work on a windows xp professional machine=09
Sent:	 3/8/2006 12:59 PM=09
The following recipient(s) could not be reached:=20
 mat...@li... on 3/8/2006 1:04 PM
 There was a SMTP communication problem with the recipient's email =
server. Please contact your system administrator.
 < -a #5.5.0 SMTP; 550 Don't like your HELO/EHLO. Hostname must contain =
a dot.>=20
________________________________
From: John Hunter [mailto:jdh...@ni...]
Sent: Wed 3/8/2006 1:19 PM
To: Mitchell, Gary (Gary)
Cc: mat...@li...
Subject: Re: [Matplotlib-users] update to: I can not get matplotlib to =
work on a windows xp professional machine
 Gary> John, Thanks for your help! I edited the path and the
 Gary> dlls are found ok. I still get the message: It still
 Gary> gets an error stating the procedure entry point
 Gary> g_assert_warning could not be located in the dynamic
 Gary> link library libglib-2.0-0.dll. After I click ok on the
 Gary> error message the last line of the dump is displayed
 Gary> before it returns to the command line. Any ideas?
 Gary> Regards Gary
You might want to grab "Dependency Walker" and load the gobject.dll
file that is failing. It will tell you what it is trying to link to
and why it is failing. Did you add the bin and lib subdirs of the GTK
install tree to your PATH? If there are spaces in the install path,
it can be tricky to get right on win32.
Also, please keep replies on list since it will be archived for future
reference.
JDH
>>>>> "Mitchell," == Mitchell, Gary (Gary) <gm...@ag...> writes:
 Gary> John, I tried using TkAgg as the backend and it raised
 Gary> a value error Unrecognized backend error. The
Perhaps you entered it in wrong -- it should be "TkAgg" as you typed
above but if you got this error I'm guessing you made a typo in your
rc file. Create a simple script
from pylab import subplot, show
ax = subplot(111)
ax.plot([1,2,3])
show()
and run it from the command line with 
 > python myscript.py --verbose-helpful
This will report information about which backend you've selected
etc... It will also tell you which rc file is loaded. If you
encounter further errors please post this output along with your
explanation.
Sorry for the troubles -- you're almost there!
JDH
From: Mitchell, G. \(Gary\) <gm...@ag...> - 2006年03月08日 20:34:38
John,
I tried using TkAgg as the backend and it raised a value error =
Unrecognized backend error. The backends.html says The windows =
installer comes with TkAgg prebuilt so why do I get the error above? I =
selected PS as the backend and it took that ok. I did add both the =
GTK\bin and the GTK\lib to the sytem path. I will try the dependency =
walker when I can. I guess I am generating more questions...
Regards
Gary=20
________________________________
From: John Hunter [mailto:jdh...@ni...]
Sent: Wed 3/8/2006 1:19 PM
To: Mitchell, Gary (Gary)
Cc: mat...@li...
Subject: Re: [Matplotlib-users] update to: I can not get matplotlib to =
work on a windows xp professional machine
 Gary> John, Thanks for your help! I edited the path and the
 Gary> dlls are found ok. I still get the message: It still
 Gary> gets an error stating the procedure entry point
 Gary> g_assert_warning could not be located in the dynamic
 Gary> link library libglib-2.0-0.dll. After I click ok on the
 Gary> error message the last line of the dump is displayed
 Gary> before it returns to the command line. Any ideas?
 Gary> Regards Gary
You might want to grab "Dependency Walker" and load the gobject.dll
file that is failing. It will tell you what it is trying to link to
and why it is failing. Did you add the bin and lib subdirs of the GTK
install tree to your PATH? If there are spaces in the install path,
it can be tricky to get right on win32.
Also, please keep replies on list since it will be archived for future
reference.
JDH
 Gary> John, Thanks for your help! I edited the path and the
 Gary> dlls are found ok. I still get the message: It still
 Gary> gets an error stating the procedure entry point
 Gary> g_assert_warning could not be located in the dynamic
 Gary> link library libglib-2.0-0.dll. After I click ok on the
 Gary> error message the last line of the dump is displayed
 Gary> before it returns to the command line. Any ideas?
 Gary> Regards Gary
You might want to grab "Dependency Walker" and load the gobject.dll
file that is failing. It will tell you what it is trying to link to
and why it is failing. Did you add the bin and lib subdirs of the GTK
install tree to your PATH? If there are spaces in the install path,
it can be tricky to get right on win32.
Also, please keep replies on list since it will be archived for future
reference.
JDH
>>>>> "David" == David Huard <dav...@gm...> writes:
 David> If you don't want to use Ipython, you could change the
 David> backend to Agg, which is non interactive (figures won't pop
 David> up), save figures to a file and open it with a viewer. For
 David> instance, the following should work from any ide.
Alternatively, you can use the TkAgg backend from the standard python
shell with interactive set to True, as described on
http://matplotlib.sourceforge.net/interactive.html
JDH
5 messages has been excluded from this view by a project administrator.

Showing results of 398

<< < 1 .. 10 11 12 13 14 .. 16 > >> (Page 12 of 16)
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 によって変換されたページ (->オリジナル) /