Re: [Matplotlib-users] matplotlib, GTK and Threads

2006-09-04 Thread Jon Roadley-Battin
I have a solution that works.The problem is in 1/2 GTK and threads. unfortunetly threads are needed in this instance, idle timers [orig tried with them] have their issues which added their own problems, threads gave alot more benefits then they then problems they solved (I have a forum-thread on a

Re: [Matplotlib-users] matplotlib, GTK and Threads

2006-09-04 Thread John Hunter
> "Jon" == Jon Roadley-Battin <[EMAIL PROTECTED]> writes: Jon> is there any thread_init for matplotlib. short of having a Jon> timer within the GUI class that checks if any new data is Jon> present I cant see a way around this. It has to be done this There isn't any such method. W

Re: [Matplotlib-users] installation

2006-09-04 Thread Charlie Moad
On 9/1/06, Kenny Ortmann <[EMAIL PROTECTED]> wrote: > hey guys i got the subversion from the site and I am trying to install it > on windows. > > I changed dir into the matplotlib dir that includes the setup.py file. > > run python setup.py install, and im getting a wierd error. i left the > topmo

Re: [Matplotlib-users] Postscript ouput on OS X problem.

2006-09-04 Thread David Andrews
For the benefit of the mailing list & developers, this fix works fine for me (OS X Tiger 10.4.7) Cheers John. Dave On 04/09/06, John Hunter <[EMAIL PROTECTED]> wrote: > > "David" == David Andrews <[EMAIL PROTECTED]> writes: > > David> Hiya, i'm having a problem getting a valid postscript

Re: [Matplotlib-users] matplotlib, GTK and Threads

2006-09-04 Thread Jon Roadley-Battin
Message: 2Date: Mon, 04 Sep 2006 09:56:22 -0700From: Andrew Straw < [EMAIL PROTECTED]>Subject: Re: [Matplotlib-users] matplotlib, GTK and ThreadsTo: Jon Roadley-Battin <[EMAIL PROTECTED]>, matplotlib-users@lists.sourceforge.netMessage-ID: <[EMAIL PROTECTED]>Content-Type: text/plain; charset

Re: [Matplotlib-users] 0.86 vs 0.87 plot difference?

2006-09-04 Thread John Hunter
> "Nicolas" == Nicolas Bigaouette <[EMAIL PROTECTED]> writes: Nicolas> Clearly, matplotlib's SVG backend doesn't seems to Nicolas> support TeX characters. Is it supposed to? It does -- the only trick is you need to make sure your svg viewer can see the fonts. Currently we use the bak

Re: [Matplotlib-users] axprops?

2006-09-04 Thread John Hunter
> "Kevin" == Kevin Horton <[EMAIL PROTECTED]> writes: Kevin> I was doing some Googling to look for a way to solve a Kevin> problem controlling sharex, and came across an example Kevin> using axprops. This solved my problem, but now I wonder Kevin> what other aspects I can cont

[Matplotlib-users] axprops?

2006-09-04 Thread Kevin Horton
I was doing some Googling to look for a way to solve a problem controlling sharex, and came across an example using axprops. This solved my problem, but now I wonder what other aspects I can control with axprops, or other similar methods. Where is axprops documented? I've looked via pydo

Re: [Matplotlib-users] 0.86 vs 0.87 plot difference?

2006-09-04 Thread PGM
On Monday 04 September 2006 14:28, Nicolas Bigaouette wrote: > Hi, > What is causing this? Did something changed that I need to adapt my code > or is it a bug? Check the "aspect" keyword of your image, and try to set it to 'auto'. > Clearly, matplotlib's SVG backend doesn't seems to support TeX >

Re: [Matplotlib-users] installation

2006-09-04 Thread Darren Dale
On Monday 04 September 2006 12:15 pm, John Hunter wrote: > > "Darren" == Darren Dale <[EMAIL PROTECTED]> writes: > > Darren> It is strongly discouraged to try to build matplotlib from > Darren> source on windows. Setting up your windows environment to > Darren> build the source is

[Matplotlib-users] 0.86 vs 0.87 plot difference?

2006-09-04 Thread Nicolas Bigaouette
Hi, I have 2 questions. First, after upgrading from 0.86 to 0.87, my graphics aren't the same. On 0.87, they are "squeezed" horizontally, which is bad. You can see an exemple on those (SVG exported to PNG via Inkscape): http://nbigaouette.inrs-emt.homelinux.net/linux/matplotlib_0.86.2.png http:

Re: [Matplotlib-users] vertical alignment of text

2006-09-04 Thread John Hunter
> "David" == David Huard <[EMAIL PROTECTED]> writes: David> Hi all, Is there a way to align text vertically so that the David> characters sit on a continuous line ? When I do text(.5, David> .5, 'abc', verticalalignment='center') text(.6, .5, 'pqr', David> verticalalignment='c

[Matplotlib-users] vertical alignment of text

2006-09-04 Thread David Huard
Hi all, Is there a way to align text vertically so that the characters sit on a continuous line ? When I dotext(.5, .5, 'abc', verticalalignment='center')text(.6, .5, 'pqr', verticalalignment='center') both words are not aligned since the bars of p and q push the text upwards. I get similar problem

Re: [Matplotlib-users] matplotlib, GTK and Threads

2006-09-04 Thread Andrew Straw
Jon Roadley-Battin wrote: > The problem I have with with the non-GUI thread calling the "plot" > function. That's your problem -- you should only call the GUI code (including matplotlib, which eventually calls GTK) from a single thread. I suggest looking at the Queue module to pass your data to th

Re: [Matplotlib-users] tick label hiding problem

2006-09-04 Thread John Hunter
> "Michael" == Michael Fitzgerald <[EMAIL PROTECTED]> writes: Michael> I placed that command before the ax.get_xticklabels(), Michael> and no dice. Michael> Thanks for looking into this, Mike I took a look at the formatter code and it turns out it *does* know the list of locatio

Re: [Matplotlib-users] changing sharex after ?

2006-09-04 Thread John Hunter
> "Samuel" == Samuel GARCIA <[EMAIL PROTECTED]> writes: Samuel> Hello, I am writing a little GUI with PyQT4 and Samuel> matplotlib. So it is embeded. I want that feature for Samuel> the user : he can decided after ploting some data to Samuel> synchronize 2 graph with the x ax

Re: [Matplotlib-users] installation

2006-09-04 Thread John Hunter
> "Darren" == Darren Dale <[EMAIL PROTECTED]> writes: Darren> It is strongly discouraged to try to build matplotlib from Darren> source on windows. Setting up your windows environment to Darren> build the source is difficult and time consuming. Please Darren> use the windows i

Re: [Matplotlib-users] Saving in SVG

2006-09-04 Thread John Hunter
> ">" == <[EMAIL PROTECTED]> writes: >> line 154, in draw_image image64 = base64.b64encode >> (imfile.read()) AttributeError: 'module' object has no >> attribute 'b64encode' >> Is there something I'm missing ? It looks like the svg module was written assuming the python2.4

Re: [Matplotlib-users] More than 9 subplots in Figure?

2006-09-04 Thread Kevin Horton
On 4 Sep 2006, at 10:54, John Hunter wrote: >> "Kevin" == Kevin Horton <[EMAIL PROTECTED]> writes: > Kevin> subplot accepts a tuple in other places, so I would have > Kevin> expected the same behaviour here. Is this a bug that is > Kevin> fixed in a newer matplotlib version, in wh

Re: [Matplotlib-users] Postscript ouput on OS X problem.

2006-09-04 Thread Benoit Donnet
Dave, I had the same problem as you. Here is a solution... Try editing your matplotlib rc file and change these font preferences font.serif : New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Bitstream Vera Serif, Nimbus Roman No9 L, Times New Roman, Time

Re: [Matplotlib-users] Postscript ouput on OS X problem.

2006-09-04 Thread John Hunter
> "David" == David Andrews <[EMAIL PROTECTED]> writes: David> Hiya, i'm having a problem getting a valid postscript file David> produced on OS X. Using the example subplot_demo.py, David> modified to include the line: David> savefig('subplot_demo') David> in the plac

Re: [Matplotlib-users] More than 9 subplots in Figure?

2006-09-04 Thread John Hunter
> "Kevin" == Kevin Horton <[EMAIL PROTECTED]> writes: Kevin> subplot accepts a tuple in other places, so I would have Kevin> expected the same behaviour here. Is this a bug that is Kevin> fixed in a newer matplotlib version, in which case I will Kevin> try to upgrade. Or, is t

[Matplotlib-users] Postscript ouput on OS X problem.

2006-09-04 Thread David Andrews
Hiya, i'm having a problem getting a valid postscript file produced on OS X. Using the example subplot_demo.py, modified to include the line: savefig('subplot_demo') in the place of the show() command, and running it using: python subplot_demo.py -dPS Produces the .ps file (available h

Re: [Matplotlib-users] axis elements and zorder

2006-09-04 Thread John Hunter
> "Michael" == Michael Fitzgerald <[EMAIL PROTECTED]> writes: Michael> Hi all, Michael> I have a question about zorder and Axis elements. I read Michael> in the thread titled "zorder not working for grid Michael> lines??" that since grid lines are Axis elements, they Mich

[Matplotlib-users] matplotlib, GTK and Threads

2006-09-04 Thread Jon Roadley-Battin
I have run into a problem with matplotlib, GTK and Threading.The program basically gets data over RS232 and if a certain command is sent the data is plottedSo far the program is pretty mature and data can be read via RS232 and written to RS232 and the GUI is updated (text-widgets) accordinglyThe p

[Matplotlib-users] More than 9 subplots in Figure?

2006-09-04 Thread Kevin Horton
I'm a python newbie, using matplotlib 0.87.3. My code works, as long as I limit myself to 9 subplots. But, I need more than 9. Relevant parts of the code: from matplotlib.figure import Figure import pylab f = Figure(figsize=(5,4), dpi=100) plot1 = f.add_subplot((10,1,1), ylabel='Pitch (' + de

Re: [Matplotlib-users] MPL/Pylab install woes

2006-09-04 Thread PGM
On Monday 04 September 2006 05:20, Paul-Michael Agapow wrote: > I'm having some problems installing matplotlib (actually PyLab, see > below). Googling has revealed nothing, perhaps someone might > recognise these symptoms. mmh, you didn't check the mailing list before, did you ;) You didn't precis

[Matplotlib-users] MPL/Pylab install woes

2006-09-04 Thread Paul-Michael Agapow
I'm having some problems installing matplotlib (actually PyLab, see below). Googling has revealed nothing, perhaps someone might recognise these symptoms.The technical set up: OSX 10.4, MPL 0.87.4, numeric, numarray and numpy installed.While I've successfully installed and used MPL before, this is