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

Showing 9 results of 9

From: Malte M. <Mal...@cs...> - 2008年05月14日 22:40:37
Hi,
unfortunately 32-bit ;-) I tried digging around, but I don't know 
much about tcl/tk. Seeing a char string argv atol'ed into a pointer 
address left me with an uncomfortable feeling...
Anyway her is the argv value
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c516c0 (LWP 5638)]
0xb6f4500e in PyAggImagePhoto (clientdata=0x0, interp=0x87396f0, argc=5,
 argv=0xbfc8874c) at src/_transforms.h:362
362 Point* ll_api() {return _ll;}
Current language: auto; currently c++
(gdb) p argv[4]
1ドル = 0x895d0f0 "3085736160"
(gdb) p bboxo
2ドル = (PyObject *) 0x7fffffff
The cast doesn't seem to work.
Cheers,
Malte
On 14/05/2008, at 10:47 PM, Michael Droettboom wrote:
> Ouch! The way that pointer is obtained is really weird (though I 
> believe it is a common idiom in Tcl extensions):
>
> PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp,
> int argc, char **argv) {
> ...
> bboxo = (PyObject*)atol(argv[4]);
> if (bboxo != Py_None) {
> bbox = (Bbox*)bboxo;
>
> That means the pointer comes to us encoded as a string of digits, 
> which gets converted to an integer, cast to a (PyObject*), and then 
> cast to a (Bbox*) (which is a subclass of PyObject, in the C-object- 
> oriented sense). That's just one of those things you'd rather not 
> be doing ;)
>
> Are you running the 64-bit version of OpenSUSE by any chance? That 
> might explain this if the atol call is overflowing. That's only 
> theoretical, as I think it *should* work. atol is supposed to 
> return a "long", which is supposed to be 64-bit on a 64-bit Linux 
> machine. Could you try replacing "atol" with "atoll", recompile 
> and see what happens? Do you get any warnings during compilation 
> of _tkagg.cpp?
>
> Failing that, it would be useful, I suppose, to print out "argv[4]" 
> from the debugger.
>
> Thanks for helping with this. Hopefully we're honing in on something.
>
> Mike
>
> Malte Marquarding wrote:
>> Hi,
>>
>> The segv also occurs in matplotlib-0.90.1. A clean build doesn't 
>> help.
>>
>> Here is the gdb output, looks like something is pointing into 
>> nirvana..
>>
>> (gdb) p bboxo
>> 1ドル = <value optimized out>
>> (gdb) p bbox
>> 2ドル = (Bbox *) 0x7ffffffb
>> (gdb) p bbox->_ll
>> Cannot access memory at address 0x7ffffffb
>>
>> Cheers,
>> Malte
>>
>> On 13/05/2008, at 10:19 PM, Michael Droettboom wrote:
>>
>>> p bboxo
>>> p bbox
>>> p bbox->_ll
>>
>>
>>
>>
>>
>
> -- 
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
Malte Marquarding
Mal...@cs...
From: S. N. <sor...@gm...> - 2008年05月14日 19:58:21
Hi,
I'm trying to insert a slider into my figure like the on in the example
slider_demo.py.
from the slider_demo i have:
axcolor = 'lightgoldenrodyellow'
axfreq = axes([0.25, 0.1, 0.65, 0.03])
sfreq = Slider(axfreq, 'Freq', 0.1, 30.0, valinit = f0)
i have a figure with an axes where i displayed an image using imshow. Like:
a = self.fig.gca()
a.imshow(img)
I've tried different stuff, but i get an assertion error when I try:
self.fig.add_axes(axfreq)
Has anyone here tried doing the slider_demo under wxpython?
Soren
From: John H. <jd...@gm...> - 2008年05月14日 17:37:15
On Wed, May 14, 2008 at 11:41 AM, Michael Droettboom <md...@st...> wrote:
> I haven't done anything with the record array stuff, so I'll leave this
> to another developer to look at.
Fixed in r5139. This was a consequence of moving the excel and gtk
imports out of mlab to improve load time. The location is now
mpl_toolkits.exceltools.rec2xls
JDH
From: Michael D. <md...@st...> - 2008年05月14日 16:41:33
Thanks. These have been applied on the SVN trunk r5138. The problem 
with legend_scatter.py was a type error created when edgecolors changed 
to a Numpy array (which is optionally zero-length).
Matthias Michler wrote:
> - the function mlab.rec2excel does not exist anymore
> -> in matplotlib/mlab.py: 
> line 73: rec2excel(r, 'test.xls', formatd=formatd) 
> needs to be removed
> -> examples/loadrec.py needs to be changed accordingly (I don't 
> know what is properly in that case )
> 
I haven't done anything with the record array stuff, so I'll leave this 
to another developer to look at.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Matthias M. <Mat...@gm...> - 2008年05月14日 15:08:38
Hello list,
It may not be very important, but I collected some small bugs while exploring 
the examples and for some of them I got little patches. 
- for me their occur two "typos" in matplotlib/text.py (see the attached 
text.patch, please)
- some examples don't work for me (see attached some_examples.patch, please)
 e.g. changes in legend_scatter.py due to a DeprecationWarning
 (matplotlib/axes.py:4288) although that doesn't fix the problem of the 
legend_scatter.py (see attached output_of_legend_scatter.out, please)
I recognized, that the 'handle._edgecolors' is an empty list at this point, 
but unfortunately I couldn't figure out why.
- the function mlab.rec2excel does not exist anymore
-> in matplotlib/mlab.py: 
 line 73: rec2excel(r, 'test.xls', formatd=formatd) 
 needs to be removed
-> examples/loadrec.py needs to be changed accordingly (I don't 
know what is properly in that case )
best regards
Matthias
From: Michael D. <md...@st...> - 2008年05月14日 12:48:13
Ouch! The way that pointer is obtained is really weird (though I 
believe it is a common idiom in Tcl extensions):
PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp,
 int argc, char **argv) {
 ...
 
 bboxo = (PyObject*)atol(argv[4]);
 if (bboxo != Py_None) {
 bbox = (Bbox*)bboxo;
That means the pointer comes to us encoded as a string of digits, which 
gets converted to an integer, cast to a (PyObject*), and then cast to a 
(Bbox*) (which is a subclass of PyObject, in the C-object-oriented 
sense). That's just one of those things you'd rather not be doing ;)
Are you running the 64-bit version of OpenSUSE by any chance? That 
might explain this if the atol call is overflowing. That's only 
theoretical, as I think it *should* work. atol is supposed to return a 
"long", which is supposed to be 64-bit on a 64-bit Linux machine. Could 
you try replacing "atol" with "atoll", recompile and see what happens? 
Do you get any warnings during compilation of _tkagg.cpp?
Failing that, it would be useful, I suppose, to print out "argv[4]" from 
the debugger.
Thanks for helping with this. Hopefully we're honing in on something.
Mike
Malte Marquarding wrote:
> Hi,
>
> The segv also occurs in matplotlib-0.90.1. A clean build doesn't help.
>
> Here is the gdb output, looks like something is pointing into nirvana..
>
> (gdb) p bboxo
> 1ドル = <value optimized out>
> (gdb) p bbox
> 2ドル = (Bbox *) 0x7ffffffb
> (gdb) p bbox->_ll
> Cannot access memory at address 0x7ffffffb
>
> Cheers,
> Malte
>
> On 13/05/2008, at 10:19 PM, Michael Droettboom wrote:
>
>> p bboxo
>> p bbox
>> p bbox->_ll
>
>
>
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年05月14日 12:04:29
Sorry -- I don't know where slider_demo.py lives and am not too familiar 
with how the website is updated. Anyone?
Cheers,
Mike
Matthias Michler wrote:
> Hello list,
>
> On Wednesday 07 May 2008 19:08:23 Michael Droettboom wrote:
> 
>> Matthias Michler wrote:
>> 
>>> The second problem arises only with latest svn.
>>> At the end of the mail there's the Traceback, which arises after clicking
>>> the radiobutton during running examples/widgets/radio_buttons.py.
>>> 
>> This is now fixed in SVN. It hadn't been updated to use the new
>> transforms framework.
>> 
>
> First of all: Thank you Mike for the fast implementation.
>
> Secondly I ask again for changing the online-version of the nice Slider-demo 
> at http://matplotlib.sourceforge.net/screenshots/slider_demo.py , where the 
> replacement 
> hovercolor=0.975
> to hovercolor="0.975"
> is needed to fulfill standards of mpl colors, please.
> We refered our students to the nice collection of screenshots on mpl-homepage 
> and therefore it would be great, if someone could change that, so that we 
> don't run into much bug reports on our side.
>
> Thanks in advance. 
> Matthias
>
> -------------------------------------------------------------------------
> 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年05月14日 08:11:17
Hello list,
On Wednesday 07 May 2008 19:08:23 Michael Droettboom wrote:
> Matthias Michler wrote:
> > The second problem arises only with latest svn.
> > At the end of the mail there's the Traceback, which arises after clicking
> > the radiobutton during running examples/widgets/radio_buttons.py.
>
> This is now fixed in SVN. It hadn't been updated to use the new
> transforms framework.
First of all: Thank you Mike for the fast implementation.
Secondly I ask again for changing the online-version of the nice Slider-demo 
at http://matplotlib.sourceforge.net/screenshots/slider_demo.py , where the 
replacement 
hovercolor=0.975
to hovercolor="0.975"
is needed to fulfill standards of mpl colors, please.
We refered our students to the nice collection of screenshots on mpl-homepage 
and therefore it would be great, if someone could change that, so that we 
don't run into much bug reports on our side.
Thanks in advance. 
Matthias
From: Matthias M. <Mat...@gm...> - 2008年05月14日 07:58:46
Hello Markus,
On Saturday 10 May 2008 22:01:22 Markus Kuhn wrote:
> How can I extract from a figure or axes the data that it currently
> displays?
>
> I had hoped that something like
>
> from pylab import *
> plot([1,3,2])
> data = getp(gca(), 'data')
> xdata = getp(gca(), 'xdata')
> ydata = getp(gca(), 'ydata')
An axes instance does not provide data-properties. They belong to the lines, 
that were already plotted in that axes. But the axes instance provides a list 
of all plotted lines (gca().lines).
xdata = getp(gca().lines[0], 'xdata')
# or the OOP-way
# last line instance of the list of lines: 
line = gca().lines[-1] 
ydata = line.get_ydata()
regards Matthias
> P.S.: It seems that the link
>
> http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-getp
>
> on
>
> http://matplotlib.sourceforge.net/
>
> is broken.
(+1)

Showing 9 results of 9

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