Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
Hello, Yes, the problem was really related to my version of matplot: i used matplot 0.98.5.2-4.fc11 before. I tried it with the latest svn revision (r7279) and it worked. Thanks, Lukas Am Dienstag 21 Juli 2009 21:02:03 schrieb Darren Dale: > On Tue, Jul 21, 2009 at 3:01 PM, Darren Dale wrote: >

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 2:47 PM, Lukas Hetzenecker wrote: > Hello, > the matplotlib widget has an incorrect default size (the left one in the > attatched screenshot). > I couldn't reproduce this behaviour with any Qt widget - so it seems that this > is specific to matplotlib. But as I'm not really

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
Hello, the matplotlib widget has an incorrect default size (the left one in the attatched screenshot). I couldn't reproduce this behaviour with any Qt widget - so it seems that this is specific to matplotlib. But as I'm not really sure of the cause I posted it to both lists. Lukas Am Dienstag

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzenecker wrote: > Sorry for annoying you, but I attatched a new example to this message: I've > rewritten the PyQt4-example from the website to draw the Figure in a tab > widget. The same happens ;) In your original post, you said: "the widget in the Tab

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-20 Thread Lukas Hetzenecker
Hm.. I added a resize() after the show(): class Plot_tab(QTabWidget, tab): def __init__(self): super(Plot_tab, self).__init__() self.setupUi(self) self.show() self.resize(self.size().width()+1, self.size().height()+1) self.resize(self.size().width()-1,

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread Lukas Hetzenecker
Hello, I've tried to resize the QTabWidget, I've searched for examples on the internet, added a QTabWidget and used this as the Mainwindows central widget - but exactly the same happened. It works if I replace the FigureCanvas with a Qt Widget - for example a text edit or a QWebView. Am Sonnt

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread projetmbc
Lukas Hetzenecker a écrit : > I tried to embed a Matplotlib FigureCanvas into a QTabWidget. > But at the first start of my script - the main.py in the attatched example - > the widget in the Tab is incorrectly sized. > If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I > p

[Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-18 Thread Lukas Hetzenecker
Hello, I tried to embed a Matplotlib FigureCanvas into a QTabWidget. But at the first start of my script - the main.py in the attatched example - the widget in the Tab is incorrectly sized. If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put it in a QWidget it is shown

Re: [Matplotlib-users] strange issue

2009-05-07 Thread Eric Firing
Thomas Robitaille wrote: > Hello, > > I'm having a strange issue, and I've managed to reduce it to a simple > problem. I created the following file structure: > > - a directory named scripts/ > - a script called scripts/inspect.py > - a script called scripts/test.py > > inspect.py contains jus

Re: [Matplotlib-users] strange issue

2009-05-07 Thread Sandro Tosi
On Thu, May 7, 2009 at 21:12, Thomas Robitaille wrote: > Hello, > > I'm having a strange issue, and I've managed to reduce it to a simple > problem. I created the following file structure: > > - a directory named scripts/ > - a script called scripts/inspect.py > - a script called scripts/test.py >

[Matplotlib-users] strange issue

2009-05-07 Thread Thomas Robitaille
Hello, I'm having a strange issue, and I've managed to reduce it to a simple problem. I created the following file structure: - a directory named scripts/ - a script called scripts/inspect.py - a script called scripts/test.py inspect.py contains just 'pass' and test.py contains 'from matplot