Re: [Matplotlib-users] tkinter segv under opensuse 10.3

2008-05-14 Thread Malte Marquarding
Hi Attached is the the patch. It uses stringstream, so I don't know if it will work on all platforms. I am not a windows person ;-) I didn't read your email properly about the existence of "atoll", so as I am a c++er I am a bit more comfortable with stringstream. Cheers, Malte. _tkagg.c

Re: [Matplotlib-users] [ExternalEmail] Re: tkinter segv under opensuse 10.3

2008-05-14 Thread Malte Marquarding
Hi, we were on the right track just the inverse. The number of argv[4] is bigger then MAX_LONG on 32bit. So what I did is: unsigned long tmplong; std::stringstream ss; ss.str(argv[4]); ss >> tmplong; bboxo = (PyObject*)tmplong; Now it works. Also, I will change all other atol()'s to stringstr

[Matplotlib-users] signal ylabel being truncated

2008-05-14 Thread Jon Choy
I maybe asking a dumb question, forgive me I'm a novice. I try to add a ylabel and the left portion of the signal name is cut off when it is plotted. I can't seem to find the option for displaying the whole signal. Or do I need to resize the plotting window? Jon -

Re: [Matplotlib-users] tkinter segv under opensuse 10.3

2008-05-14 Thread Malte Marquarding
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 0

[Matplotlib-users] Inserting slider in figure under wxpython

2008-05-14 Thread Søren Nielsen
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

Re: [Matplotlib-users] small bugs in matplotlib-svn/examples

2008-05-14 Thread John Hunter
On Wed, May 14, 2008 at 11:41 AM, Michael Droettboom <[EMAIL PROTECTED]> 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

Re: [Matplotlib-users] small bugs in matplotlib-svn/examples

2008-05-14 Thread Michael Droettboom
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

[Matplotlib-users] small bugs in matplotlib-svn/examples

2008-05-14 Thread Matthias Michler
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_e

Re: [Matplotlib-users] tkinter segv under opensuse 10.3

2008-05-14 Thread Michael Droettboom
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) {

Re: [Matplotlib-users] slider_demo.py (online) and radio_buttons.py (svn-examples) broken

2008-05-14 Thread Michael Droettboom
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 ari

Re: [Matplotlib-users] slider_demo.py (online) and radio_buttons.py (svn-examples) broken

2008-05-14 Thread Matthias Michler
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.

Re: [Matplotlib-users] extracting displayed data from axes

2008-05-14 Thread Matthias Michler
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(