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



Showing 11 results of 11

From: Emmanuel Favre-N. <man...@gm...> - 2007年02月02日 20:46:11
I tried directly the setup.py, it does not work with wxcursor_demo.py
My first try was=A0 modifying the following in the setup.py :
#mpldata =3D glob.glob(r'C:\Python24\share\matplotlib\*')
mpldata=3D[]
 for di in allsubdirs(r'C:\Python24\Lib\site-packages\matplotlib'):
=A0=A0=A0 ti=3Ddi+'*.py*'
=A0=A0=A0 mpldata=3Dmpldata+glob.glob(ti)
#mpldata.append(r'C:\Python24\share\matplotlib\.matplotlibrc')
mpldata.append (r'C:
\Python24\Lib\site-packages\matplotlib\mpl-data\matplotlibrc')
The exe fails at importation line :
from matplotlib.numerix import arange, sin, pi
Here is the error log :
Traceback (most recent call last):=20
=A0 File "wxcursor_demo.py", line 7, in ?
=A0 File "zipextimporter.pyo", line 82, in load_module
=A0 File "matplotlib\__init__.pyo", line 720, in ?
=A0 File "matplotlib\__init__.pyo", line 273, in wrapper=20
=A0 File "matplotlib\__init__.pyo", line 360, in _get_data_path
RuntimeError: Could not find the matplotlib data files
So I guess I did quite wrong! I have too look further...
BTW, I'm using enthon-python2.4-1.0.0.exe
From: Arturas <in_...@ya...> - 2007年02月02日 20:35:34
Hi,
I have plotted my data (x,y) to line plot without axis
adjustments right. But if I scale y axis (with 'axis')
and cut some maximal values of y data out, it seems
that y is drawn within new margins of y axis, but just
translated some way. (small graphs PNG attached). PNG
made with savefig has different "zig-zags". My graphs
SHOULD NOT have any data line x(0-3.4). It makes no
problem if I scale x axis. My script:
import pylab as P
 
P.plot(x, y, 'k-', label='Total', linewidth='2')
P.axis([0.0,15,-0.4,0.5])
P.xlabel('Distance, A')
P.ylabel('Energy')
P.grid(True)
P.savefig('scatter_demo',dpi=150)
P.show()
Arturas
P.S. MS XP / python 2.4 / matplotlib-0.87.7
 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
From: Kumar A. <ak...@ii...> - 2007年02月02日 14:11:56
Deat Matplotlib Users,
I have to plot the frequency response of many filters on one
plot, and have to take a printout, necessarily black and white. Now, I
would like to use symbols at frequent intervals as well, for easy
distinguishing. Now, I wanted to know whether it is possible to have
the legend show both the line and the type of dot (such as square and
dotted line, circle and dot-dash) on a _single_ legend entry. Though I
am able to show the symbol in the legend, it would be nice to have
both shown as a single entry.
Thanks.
Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
From: Gary R. <gr...@bi...> - 2007年02月02日 13:39:56
Derek Hohls wrote:
> Hi
> 
> I appreciate that this is a totally voluntary support list, but
> I was wondering what the protocol was when queries that
> I have posted go unanswered...
> 
> Should I -
> (a) repost them "as is"?
> (b) rewrite them slightly and post them again
Probably the best approach.
> (c) assume no one has any interest in answering them (and give up)
> (d) something else??
> 
> The queries I am referring to are:
> http://sourceforge.net/mailarchive/message.php?msg_id=38032560 
> and
> http://sourceforge.net/mailarchive/message.php?msg_id=38021694 
> 
> (The latter especially, I am sure is within matplotlib current
> capabilities... and a hint or two will set me on the right track!)
> 
> Thanks
> Derek
I had a quick look and for the first part of the second question:
> (a) what is the syntax for the fill() command - I have tried
> ax.fill(0.5,0.5,'b') and get an error:
> TypeError: zip argument #1 must support iteration
The TypeError is saying that the argument expected should be a Python 
type supporting iteration, such as a numpy array, a list or a tuple. 
i.e. this produces a rectangle:
ax.fill([1,1,2,2],[3,4,4,3],'b')
where the two lists contain the x- and y-coordinate polygon vertices, 
respectively, ordered clockwise from the lower left.
It would take me a bit of mucking around to work out what the bar 
coordinates are - hopefully an expert will pipe in with the answer. You 
probably need to work out how to apply the get_verts method to the patch 
collection. I find using ipython interactively is the best way to learn 
to do this.
Gary R.
From: Vijay K. <vi...@ph...> - 2007年02月02日 13:14:51
Hi,
I want to import binary files generated from C/FORTRAN into matplotlib for
plotting. 
Can this be done using 'load'?
Thanks
Vijay
-- 
View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160765.html#a8766617
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Vijay K. <vi...@ph...> - 2007年02月02日 13:13:13
Hi,
I want to import binary files generated from C/FORTRAN into matplotlib for
plotting. 
Can this be done using 'load'?
Thanks
Vijay
-- 
View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160763.html#a8766615
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: <ber...@de...> - 2007年02月02日 12:01:17
Importing matplotlib I get the warning message
/usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/matplotlib-0.87.7-py2.5-linux-i686.egg/matplotlib/__init__.py:155: UserWarning: Module matplotlib was already imported from /usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/matplotlib-0.87.7-py2.5-linux-i686.egg/matplotlib/__init__.pyc, but /usr/software/gltools/python/Python-2.5/lib/python2.5/site-packages/basemap-0.9.4-py2.5-linux-i686.egg is being added to sys.path
 __import__('pkg_resources').declare_namespace(__name__)
The directory '/usr/local/gltools' is a symlink to
'/usr/software/gltools' so adding the second directory. What is
responsible for this message, an can anything be done about it?
Kind Regards
Berthold
-- 
 __ Address:
 G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
From: Derek H. <DH...@cs...> - 2007年02月02日 09:43:47
Hi
 
I appreciate that this is a totally voluntary support list, but
I was wondering what the protocol was when queries that
I have posted go unanswered...
 
Should I -
(a) repost them "as is"?
(b) rewrite them slightly and post them again
(c) assume no one has any interest in answering them (and give up)
(d) something else??
 
The queries I am referring to are:
http://sourceforge.net/mailarchive/message.php?msg_id=38032560 
and
http://sourceforge.net/mailarchive/message.php?msg_id=38021694 
 
(The latter especially, I am sure is within matplotlib current
capabilities... and a hint or two will set me on the right track!)
 
Thanks
Derek
-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
Cal...@cs....
This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.
From: Olivier M. <oli...@if...> - 2007年02月02日 09:41:38
Dears,
I succeeded embedding figure, plot, hist and bar into PyQt3 and PyQt4 wi=
th the suggestion of the examples.
But I don't see anywhere how I can do the same thing for the 3D plots.
Does anyone have some idea or piece of code?
Many thanks
Olivier
________________________________________________________________________
iFRANCE, exprimez-vous !
http://web.ifrance.com
From: Werner F. B. <wer...@fr...> - 2007年02月02日 08:42:22
Attachments: setup.py wxcursor_demo.py
Hi,
Emmanuel Favre-Nicolin wrote:
> Le lundi 25 d=E9cembre 2006 16:00, Allan Noriel Estrella a =E9crit :
> =20
>> Has anyone tried freezing matplotlib embedded in a wx app (using py2ec=
e,
>> cx_freeze or pyinstaller)? The setup.py in the FAQ seems to be outdate=
d. I
>> want to freeze the embedding_in_wx.py in the examples. Do you have any
>> suggestions or cookbook steps that I can follow?
>> =20
>
> it looks there were no answer to your question!
>
> I tried too the FAQ=20
> http://matplotlib.sourceforge.net/faq.html#PY2EXE
>
> and it does not work at least with my enthough installation directories=
 seems=20
> to be very different from the one suggested.
>
> I also tried http://www.py2exe.org/index.cgi/MatPlotLib without success
>
> I tried the simpelst thing=20
>
> from pylab import *
> plot([1,2,3])
> show()
>
> no chance!
> I don't know if someone could help, is there a better backend for freez=
ing,=20
> maybe wxpython?
>
> Someone already succeded with a recent matplotlib ?
> I'm using 0.87.3 (on windows)
> =20
I am way behind on matplotlib version (still on 0.82) but here is an=20
example setup.py to freeze the matplotlib sample wxcursor_demo.py=20
(included just in case it changed).
I just have no time yet to upgrade to a newer version, especially as I=20
want to upgrade to wxPython 2.8 at the same time.
Here a fews things I recall from my tests with 0.87.3:
- you need to use the unicode build of wxPython (also this might have or=20
will change).
- matplotlib data folder handling (see in setup.py commented line in=20
data_files section)
- numpy (just tried it building against 87.3 but get errors related to=20
numpy, one probably has to force more inclusions)
Hope this helps
Werner
From: Nicolas G. <nic...@ga...> - 2007年02月02日 03:00:17
SGVsbG8sCgpJJ20gdHJ5aW5nIHRvIGJ1aWxkIG1hdHBsb3RsaWIgZnJvbSBTVk4sIHdpdGggTWlu
R1cgKGN1cnJlbnQgdmVyc2lvbiksCmZvciBQeXRob24gMi40ICh0aGUgYmluYXJ5IGNvbWVzIGZy
b20gQWN0aXZlU3RhdGUpIHVuZGVyIFdpbmRvd3MgWFAuCgpJJ3ZlIHRyaWVkIHRvIGZvbGxvdyBp
bnN0cnVjdGlvbnMgaW4gc2V0dXBleHQucHkgYnV0IEkgYWx3YXlzIGdldCB0aGUKc2FtZSBlcnJv
ciB3aGVuIHRyeWluZyB0byBpbXBvcnQgbXBsOgoKICBUaGUgcHJvY2VkdXJlIGVudHJ5IHBvaW50
IF9jdHlwZSBjb3VsZCBub3QgYmUgbG9jYXRlZCBpbiB0aGUgZHluYW1pYwpsaW5rIGxpYmFyeSBt
c3ZjcjcxLmRsbAoKSSdtIHVzaW5nIHN0YXRpYyBkZXBlbmRlbmNpZXMgZnJvbQpodHRwOi8vbWF0
cGxvdGxpYi5zb3VyY2Vmb3JnZS5uZXQvd2luMzJfc3RhdGljLnRhci5nei4KClRoYW5rcyBmb3Ig
eW91ciBoZWxwLAoKTmljb2xhcwoKLS0gCkdhcmRlbiAtIENvbnNlaWwgZXQgYW5hbHlzZSBkZSBk
b25uw6llcyBtYXJrZXRpbmcKTmljb2xhcyBHcmlsbHkKVGVsICszMyAxIDQ1IDcyIDQ4IDc4Ck1v
YiArMzMgNiAwMyAwMCAyNSAzNAp3d3cuZ2FyZGVuLXBhcmlzLmNvbQo=

Showing 11 results of 11

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 によって変換されたページ (->オリジナル) /