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





Showing 6 results of 6

From: Zachary P. <zac...@ya...> - 2008年03月10日 23:25:07
For what it's worth, the standalone agg 2.4 library compiles just fine 
on my system -- this problem seems to be some sort of matplotlib / agg 
interaction.
Zach
On Mar 9, 2008, at 11:35 PM, Zachary Pincus wrote:
> Hello,
>
> I just tried to compile the SVN head of matplotlib (r4994) from source
> on OS X 10.5.2 (with source builds of python 2.5.2 and the SVN head of
> numpy), and ran into an "internal compiler error" in the agg code.
> (pkgconfig 0.23 and wxPython 2.8.7.1 also present and accounted for.)
>
> Here's the compile line and error:
>> building 'matplotlib.backends._backend_agg' extension
>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
>> madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
>> prototypes -I/Library/Frameworks/Python.framework/Versions/2.5/lib/
>> python2.5/site-packages/numpy/core/include -I/usr/X11/include/
>> libpng12 -I/usr/local/include -I/usr/include -I/usr/X11R6/include -
>> I. -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
>> site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/
>> X11/include/freetype2 -I/usr/X11/include -I/usr/local/include -I/usr/
>> include -I/usr/X11R6/include -I. -I/Library/Frameworks/
>> Python.framework/Versions/2.5/include/python2.5 -c src/_image.cpp -o
>> build/temp.macosx-10.4-i386-2.5/src/_image.o
>> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
>> for C/ObjC but not for C++
>> src/_image.cpp: In member function ‘Py::Object
>> _image_module::from_images(const Py::Tuple&)’:
>> src/_image.cpp:842: error: insn does not satisfy its constraints:
>> (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
>> (mem:QI (plus:SI (reg/f:SI 6 bp)
>> (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0
>> S1 A8])
>> (reg:QI 5 di)) 56 {*movqi_1} (nil)
>> (nil))
>> src/_image.cpp:842: internal compiler error: in
>> reload_cse_simplify_operands, at postreload.c:391
>> Please submit a full bug report, with preprocessed source if
>> appropriate.
>> See <URL:http://developer.apple.com/bugreporter> for instructions.
>
> This seems to be an agg and OS X error; it's cropped up here:
> http://trac.osgeo.org/mapserver/ticket/2368
> and John Hunter reported it on the agg list here:
> http://article.gmane.org/gmane.comp.graphics.agg/3963
>
> Unfortunately, the error appears to either not have been fixed by the
> 10.5.1 update, as suggested in the email thread cited above, or the
> error re-appeared in 10.5.2.
>
> Changing the optimization flag from -O3 to -Os and compiling
> _image.cpp manually (along with copying src/_image.cpp to src/
> image.cpp and compiling that manually in the same way) allowed me to
> finish building matplotlib, but clearly an optimized agg image library
> is pretty important... (-O2 didn't work...)
>
> Anyone have any idea at all about this error? Or is just turning off -
> O3 for this file the best thing to do until Apple fixes the compiler
> bug? Does anyone who knows more about agg than I want to try to reduce
> this to a test case?
>
>
> Zach Pincus
>
> Postdoctoral Fellow
> Molecular, Cellular, and Developmental Biology
> Yale University
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Rich S. <rsh...@ap...> - 2008年03月10日 21:45:50
 I upgraded my notebook to Slackware-12.0 (which includes python-2.5) and
discovered that the application I'm developing no longer ran. Turns out that
matplotlib went missing during the upgrade.
 So, I just built matplotlib-0.91.2 using the same matplotlib.Slackbuild
script I used on my workstation/server, but this time it failed. The font
manager seems to be the issue; the error message repeatedly is: "Found an
unknown keyword in AFM header (was Underline)". Specifically, the error is
in File "/usr/lib/Python2.5/site-packages/matplotlib/afm.py", line 166, in
_parse_char_metrics
 	name=vals[2].split()[1]
IndexError: List index out of range
 Is this unique to me? What do I do to fix the problem?
TIA,
Rich
-- 
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
From: Michael D. <md...@st...> - 2008年03月10日 15:09:20
Well, that was a good puzzle!
It turns out that in the Wx backends, the figure is created at the 
correct (requested) size, and then immediately the height is shrunk by 
25 pixels (at least on my platform) when the status bar is added to the 
window. By creating the status bar before the figure canvas I was able 
to prevent this from happening.
This seems like a safe fix to me, but anyone who currently extends the 
Wx Frame (meaning the whole window etc.) and is unknowingly compensating 
for this effect may have problems after my change.
Committed on the maintenance branch in r4997.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=4997
BTW, I also committed the fix for the range of values in 
figure.subplot.* here:
<http://www.nabble.com/Re%3A-pylab-axis-query-and-possible-bug-p14459682.html>
to the maintenance branch (it was previously only made to the trunk.)
Cheers,
Mike
Gary Ruben wrote:
> Gary Ruben wrote:
>> The attached test.py
> Oops. Here it is.
> Gary R.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Matthias M. <Mat...@gm...> - 2008年03月10日 12:22:44
Hello,
I'm not sure if there is a nicer way to do what you want and I understand 
correctly what you want to do, but as a workaround I would recommand you the 
following:
use the mainloop-mode after show and an event to rearch a function, which 
includes a "raw_input" to input text from the shell like
import pylab 
def myfunc(event):
 txt = raw_input(" input a string : ")
 print "The string >%s< was recognized and will be executed" % (txt)
 exec(txt)
 pylab.draw()
pylab.figure()
pylab.axes()
pylab.connect("key_press_event", myfunc) 
# call "myfunc" after a key press event
pylab.show()
you can end the mainloop by closing the figure.
best regards
Matthias
On Sunday 02 March 2008 13:31, linzhenhua wrote:
> Hello,all
> I have a problem with matplotlib. The numpy and matplotlib versions
> are all the newest versions. First,if I want to plot a figure,I can type
> several command,finally use the show() command,everything seems well,but I
> have to use the Ctrl+c to stop the show() to go further. And I know I can
> use the interactive mode.So first I use ion(),then use the plot command to
> plot figure and draw() command to update the figure,but in this case ,the
> figure toolbar is not visible on the figure and I can not use it.However if
> I run the show() command then the figure toolbar appear and I can control
> the figure using the toolbar. I wonder whether I can take advantage of the
> figure toolbar and the command line at the same time or not ? Best wishes.
From: Matthias M. <Mat...@gm...> - 2008年03月10日 10:51:40
Hello Chris,
you may try something like 
plot([x1], [y1], "bo", [x2], [y2], "r+")
or you have to iterate through your data.
best regards
Matthias
On Friday 07 March 2008 10:11, Chris Withers wrote:
> Hi All,
>
> Apologies if I'm missing anything obvious...
>
> How do I plot lines point-by-point as opposed to by passing arrays?
>
> I'm guessing something like:
>
> plot([x],[y])
>
> ...but that feels a bit weird to me.
>
> In any case, using that, I don't know how to plot more than one line at
> a time, so thought I'd ask here...
>
> Hope you can help!
>
> cheers,
>
> Chris
From: Zachary P. <zac...@ya...> - 2008年03月10日 03:35:34
Hello,
I just tried to compile the SVN head of matplotlib (r4994) from source 
on OS X 10.5.2 (with source builds of python 2.5.2 and the SVN head of 
numpy), and ran into an "internal compiler error" in the agg code. 
(pkgconfig 0.23 and wxPython 2.8.7.1 also present and accounted for.)
Here's the compile line and error:
> building 'matplotlib.backends._backend_agg' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- 
> madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- 
> prototypes -I/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/core/include -I/usr/X11/include/ 
> libpng12 -I/usr/local/include -I/usr/include -I/usr/X11R6/include - 
> I. -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/ 
> X11/include/freetype2 -I/usr/X11/include -I/usr/local/include -I/usr/ 
> include -I/usr/X11R6/include -I. -I/Library/Frameworks/ 
> Python.framework/Versions/2.5/include/python2.5 -c src/_image.cpp -o 
> build/temp.macosx-10.4-i386-2.5/src/_image.o
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid 
> for C/ObjC but not for C++
> src/_image.cpp: In member function ‘Py::Object 
> _image_module::from_images(const Py::Tuple&)’:
> src/_image.cpp:842: error: insn does not satisfy its constraints:
> (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set 
> (mem:QI (plus:SI (reg/f:SI 6 bp)
> (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 
> S1 A8])
> (reg:QI 5 di)) 56 {*movqi_1} (nil)
> (nil))
> src/_image.cpp:842: internal compiler error: in 
> reload_cse_simplify_operands, at postreload.c:391
> Please submit a full bug report, with preprocessed source if 
> appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
This seems to be an agg and OS X error; it's cropped up here:
http://trac.osgeo.org/mapserver/ticket/2368
and John Hunter reported it on the agg list here:
http://article.gmane.org/gmane.comp.graphics.agg/3963
Unfortunately, the error appears to either not have been fixed by the 
10.5.1 update, as suggested in the email thread cited above, or the 
error re-appeared in 10.5.2.
Changing the optimization flag from -O3 to -Os and compiling 
_image.cpp manually (along with copying src/_image.cpp to src/ 
image.cpp and compiling that manually in the same way) allowed me to 
finish building matplotlib, but clearly an optimized agg image library 
is pretty important... (-O2 didn't work...)
Anyone have any idea at all about this error? Or is just turning off - 
O3 for this file the best thing to do until Apple fixes the compiler 
bug? Does anyone who knows more about agg than I want to try to reduce 
this to a test case?
Zach Pincus
Postdoctoral Fellow
Molecular, Cellular, and Developmental Biology
Yale University

Showing 6 results of 6

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