[Matplotlib-users] Change the text of yticklabels

2009-07-31 Thread Lukas Hetzenecker
Hello, I have y values in the range of -100 to 100. I want that the negative values are shown as positive (the minus gets removed from the output). I tried a for loop over all self.ax.get_yticklabels() and call label.set_text("...") on each item but it didn't work - nothing got changed. If I p

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

2009-07-21 Thread Lukas Hetzenecker
ote: > > 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 s

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

2009-07-21 Thread Lukas Hetzenecker
m Dienstag 21 Juli 2009 20:31:55 schrieb 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 > > ta

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

2009-07-20 Thread Lukas Hetzenecker
9 12:58:53 schrieb 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 Figu

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

2009-07-19 Thread Lukas Hetzenecker
bView. Am Sonntag 19 Juli 2009 11:54:12 schrieb 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 incorr

[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