Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread Fabien Lafont
I prefer to use the multi-thread method beacause it's easier for me and my colaborators to have the entire acquisition process at the same place. Until then I use a simple one but I hope to use a more complex one in few weeks ( put different voltages on different devices then measure many voltages

[Matplotlib-users] Quiver-Plots

2011-12-14 Thread Heiko Bauke
Hi, the quiver function has an alpha argument to set the transparency for all arrows globally. Is there any way to set the transparency for individual arrows? Heiko -- -- Trenne dich nie von deinen Illusionen und Träumen. Wenn sie -- verschwunden sind, wirst du weiter existieren,

Re: [Matplotlib-users] Fonts question.

2011-12-14 Thread Michael Droettboom
You'll want to set the rcParam pdf.fonttype to 42 to embed the entire TTF file in the PDF file, allowing for editing text as text. Mike On 12/13/2011 01:23 PM, Hongchun Jin wrote: *Hi folks, * * * *I try to use the PDF backend in my plotting script, when I expect to have a pdf figure.

[Matplotlib-users] Fit with Chebyshev Polynomials

2011-12-14 Thread Fabien Lafont
I have a basic problem (I think) I try to fit some data with this function http://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.Chebyshev.fit.html But it return an error: fit = chebyshev.fit(T,R,3) NameError: name 'chebyshev' is not defined I don't understand I've imported

Re: [Matplotlib-users] Fit with Chebyshev Polynomials

2011-12-14 Thread Benjamin Root
On Wednesday, December 14, 2011, Fabien Lafont lafont.fab...@gmail.com wrote: I have a basic problem (I think) I try to fit some data with this function http://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.Chebyshev.fit.html But it return an error: fit =

Re: [Matplotlib-users] Fit with Chebyshev Polynomials

2011-12-14 Thread Fabien Lafont
Thx Seb! 2011/12/14 Benjamin Root ben.r...@ou.edu: On Wednesday, December 14, 2011, Fabien Lafont lafont.fab...@gmail.com wrote: I have a basic problem (I think) I try to fit some data with this function

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
I'm not sure how experienced you are with multithreaded programs, but here is some sample code (I mentioned it can get complicated). I suggest you research Qt4 QThreads and also Qt4 Signals and slots to better understand the code below. It is a working sample so you should be able to run it

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread Fabien Lafont
Thanks David, I start to read the Mark summerfield' book about PyQt programming. In fact I realized I don't need multi-threading because I can remove the Timer and just need to call the graphical application from the while loop. How can I call the ApplicationWindow class from my while loop? I'll

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
I don't know what you mean by ApplicationWindow, is that a class or just a name for the main GUI window. I also don't really know what calling the graphical application means, but I'm sure the book can help you more than I can. Again, good luck. -Dave On 12/14/11 10:17 AM, Fabien Lafont

[Matplotlib-users] Blitting with qt4

2011-12-14 Thread David Hoese
Does anyone know if using the blit method from FigureCanvasQTAgg is not fully supported? I'm having a problem where I'm animating a plot using the blit method and I click on/activate the window the background of the figure disappears (axes and line stay visible). I'm not sure if this is just

Re: [Matplotlib-users] Blitting with qt4

2011-12-14 Thread Eric Firing
On 12/14/2011 12:31 PM, David Hoese wrote: Does anyone know if using the blit method from FigureCanvasQTAgg is not fully supported? I'm having a problem where I'm animating a plot using the blit method and I click on/activate the window the background of the figure disappears (axes and line

Re: [Matplotlib-users] Fonts question.

2011-12-14 Thread Benjamin Root
On Wed, Dec 14, 2011 at 6:35 AM, Michael Droettboom md...@stsci.edu wrote: You'll want to set the rcParam pdf.fonttype to 42 to embed the entire TTF file in the PDF file, allowing for editing text as text. Mike Just to be clear, are we talking about how we now save pdf/eps files with

[Matplotlib-users] my pie charts gotta pop!

2011-12-14 Thread Justin
I sadly, have to include pie charts in a presentation/document I am putting together. I have 6 categories, but 4 of them are a very small fraction of the total... so the base pie chart even with exploded sections looks terrible. Also, I need to display the % values and category labels. Using

[Matplotlib-users] Endpoint of a text string in a plot?

2011-12-14 Thread Keld Lundgaard
Hi How do I get the information about the endpoint of a text element? Example: import matplotlib.pylab as plt text = plt.text(0.5,0.5,'hi') plt.show() In the dataTrans coordinates, where does the text string ends? I have spent some time now trying to solve this, seemingly simple problem,

Re: [Matplotlib-users] Endpoint of a text string in a plot?

2011-12-14 Thread Benjamin Root
On Wednesday, December 14, 2011, Keld Lundgaard keld.lundga...@gmail.com wrote: Hi How do I get the information about the endpoint of a text element? Example: import matplotlib.pylab as plt text = plt.text(0.5,0.5,'hi') plt.show() In the dataTrans coordinates, where does the text

Re: [Matplotlib-users] my pie charts gotta pop!

2011-12-14 Thread Jason Grout
On 12/14/11 6:33 PM, Justin wrote: Any suggestions or places to find a gorgeous pie chart, let me know... I'd probably use Excel or OpenOffice if I were you. Jason -- 10 Tips for Better Server Consolidation Server

Re: [Matplotlib-users] my pie charts gotta pop!

2011-12-14 Thread Benjamin Root
On Wednesday, December 14, 2011, Jason Grout jason-s...@creativetrax.com wrote: On 12/14/11 6:33 PM, Justin wrote: Any suggestions or places to find a gorgeous pie chart, let me know... I'd probably use Excel or OpenOffice if I were you. Jason There are some neat effects that can be done