Re: [Matplotlib-users] Colorbar embedding in qt4

2010-01-03 Thread Laurent Dufrechou
Hello, You are using the TK backend. Add this at the top of your script: import matplotlib matplotlib.use('QT4Agg') from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar

[Matplotlib-users] Bliting speed improvment patch (QT4Agg backend) + example of sliding demo

2009-11-30 Thread Laurent Dufrechou
Hi there, Finally with lot of try I've finally managed to make blitting of a cmap working. I've also patched QT4agg backend, to make a redraw immediately. (replaced self.draw by self.repaint) In my current project I was able to stream a 655KB network stream, do demodulation of an IQ stream and

Re: [Matplotlib-users] set figure position

2009-11-22 Thread Laurent Dufrechou
Hi marie, You can define exactly the size and position of your plot like this: fig = Figure() axe = fig.add_axes([pos_x,pos_y,size_x,size_y]) axe.plot(x, y, 'b') where pos_x,pos_y is a number (0n1) and 0,0 is bottom left size_x, size_x is a number (0n1) 1 is full figure size. Ex: axe =

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-16 Thread Laurent Dufrechou
[mailto:lee.j.j...@gmail.com] Envoyé : jeudi 15 octobre 2009 05:23 À : Laurent Dufrechou Cc : matplotlib-users@lists.sourceforge.net Objet : Re: [Matplotlib-users] Little issue with blitting technique On Tue, Oct 13, 2009 at 1:02 PM, Laurent Dufrechou ldufrec...@marport.com wrote: Hello, I've

[Matplotlib-users] TR: Cleaver way to do a scrolling imshow?

2009-10-16 Thread Laurent Dufrechou
Hello, I'm investigating a way to make a sort of imshow that is scrolling from right to left. My idea is to copy in a blit buffer from (1,0) to (xmax,ymax). Blit it @(0,0) (xmax-1,ymax) And then draw a cmap'ed line @x=xmax. So here are my question: How to draw a line that use a

[Matplotlib-users] Cleaver way to do a scrolling imshow?

2009-10-16 Thread Laurent Dufrechou
Hello, I'm investigating a way to make a sort of imshow that is scrolling from right to left. My idea is to copy in a blit buffer from (1,0) to (xmax,ymax). Blit it @(0,0) (xmax-1,ymax) And then draw a cmap'ed line @x=xmax. So here are my question: How to draw a line that use a

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-13 Thread Laurent Dufrechou
backend as you suggest. Update in next email :) -Message d'origine- De : Jae-Joon Lee [mailto:lee.j.j...@gmail.com] Envoyé : mardi 13 octobre 2009 18:36 À : Laurent Dufrechou Cc : matplotlib-users@lists.sourceforge.net Objet : Re: [Matplotlib-users] Little issue with blitting

[Matplotlib-users] Little issue with blitting technique

2009-10-12 Thread Laurent Dufrechou
Hello, I've just discovered blitting technique to improve performances. I'm using this example http://matplotlib.sourceforge.net/examples/animation/animation_blit_qt4. html I encounter an issue if instead of using subplot I use add_axes method to hand define where I want my plot. In this

[Matplotlib-users] Some icons do not showup after packaging with py2exe or pyinstaller

2009-10-12 Thread Laurent Dufrechou
Hello, Whether method I use to package my python app, I always reach the issue where the toolbar does not display some icons whiel the subplot is well displayed. Each time the packaging method copy mpl-data where the .exe is created so file are or should be at the right location. Does

[Matplotlib-users] Some icons do not showup after packaging with py2exe or pyinstaller

2009-10-09 Thread Laurent Dufrechou
Hello, Whether method I use to package my python app, I always reach the issue where the toolbar does not display some icons whiel the subplot is well displayed. Each time the packaging method copy mpl-data where the .exe is created so file are or should be at the right location. Does

[Matplotlib-users] Testing email becuase my previuous didn't want to appear...

2009-10-08 Thread Laurent Dufrechou
. Laurent -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market

[Matplotlib-users] Little issue with blitting technique

2009-10-08 Thread Laurent Dufrechou
Hello, I've just discovered blitting technique to improve performances. I'm using this example http://matplotlib.sourceforge.net/examples/animation/animation_blit_qt4.html I encounter an issue if instead of using subplot I use add_axes method to hand define where I want my plot. In this

[Matplotlib-users] Little issue with blitting technique [Update]

2009-10-08 Thread Laurent Dufrechou
Hello, Continuing on my previous email, I'm using this example: http://matplotlib.sourceforge.net/examples/animation/animation_blit_qt4.html def __init__(self): FigureCanvas.__init__(self, Figure()) self.ax = self.figure.add_subplot(111)

[Matplotlib-users] Little help needed with pqt ...

2009-09-11 Thread Laurent Dufrechou
Hello, I face a very boring problem. Here is a little modified pyqt widget example found on matplotlib website. Basicaly I've just added a tab widget and inside it a matplotlib widget. Sadly, on creation the widget don't get the full size of the PA_tab widget :( BUT once I resize manually the

[Matplotlib-users] Re :Re: Little help need ed with pqt ...

2009-09-11 Thread laurent . dufrechou
Hi Darren, Thanks for your answer. ... I've updated to matplotlib 0.99 since the last email... and the bug disappeared :) Must be a bug of previous version since I had ever added a layout to the central widget! Thanks anyway for your help! On Fri, Sep 11, 2009 at 5:52 PM, Laurent

Re: [Matplotlib-users] [PyQt] Pydee v0.3.0

2009-03-11 Thread Laurent Dufrechou
Hey pierre, Wow that's fantastic! One week ago I started (not sent) a mail that was intended for you on python(x,y) I explained that the main issue I get with users I want to convert to python is: 1) Hey there is so lot packages, each time I need to install a new package to get your feature. 2)

[Matplotlib-users] imshow update norm make my app crash.

2008-07-29 Thread Laurent Dufrechou
Hi guys, continuing exploring matplotlib capabilities J I've applied the idea you've said later about colormap. Now I would like on an event to refresh my view so I've written this code: . def InitCode(self): . self.norm = plt.Normalize(vmin=0, vmax=255)

[Matplotlib-users] Colormap cluttering?

2008-07-28 Thread Laurent Dufrechou
Hello, I would like to have a cluttering functionality to colorbar. http://en.wikipedia.org/wiki/Clutter_(radar) Before writing it, I would like to know if there is a way to doing it with matplotlib. What I mean by cluttering is: You've got a colormap associated with a graphic where

[Matplotlib-users] Problem with wxAgg toolbar and py2exe

2008-07-07 Thread Laurent Dufrechou
Hello, I've recently used the toolbar from wxAgg backend: from matplotlib.backends.backend_wx import NavigationToolbar2Wx I've got a problem when trying to freeze my app now because I get this message when trying to invoke the toolbar: Traceback (most recent call last): File

Re: [Matplotlib-users] [wxpython-users] Controlling the wxpython matplotlib-frame

2008-03-27 Thread Laurent Dufrechou
Have you tryied : ipython -pylab ? It launch an ipython shell that support mathplotlib gui loop. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] De la part de Wolfgang Kerzendorf Envoyé : mercredi 26 mars 2008 08:31 À : matplotlib-users@lists.sourceforge.net; [EMAIL