Matplotlib+Qt. Problem with plot resizing

Sorry, some troubles with my email service. With attachment now

Please post a short, complete, self-contained script demonstrating the
problem.

I create a small example, see attachment. There is a simple dialog with QWidget, at which
matplotlib plot is drawn. When dialog resized the plot don't change it's size.
I'm would be grateful for an indication of my errors and working example.

Regards,
  Alexander Bruy

-- реклама -----------------------------------------------------------
http://FREEhost.com.ua - еще больше места и возможностей.
При заказе хостинга - домен бесплатно.

mpl_resize.zip (2.94 KB)

···

2009/17/07 Darren Dale <dsdale24@...287...> wrote:

Hi Alexander,

2009/7/20 Alexander Bruy <voltron@...2684...>:

Sorry, some troubles with my email service. With attachment now

Please post a short, complete, self-contained script demonstrating the
problem.

I create a small example, see attachment. There is a simple dialog with QWidget, at which
matplotlib plot is drawn. When dialog resized the plot don't change it's size.
I'm would be grateful for an indication of my errors and working example.

You need to add a layout to your widgetPlot, and then add your canvas
to that layout. See attached.

Darren

mpl_test.py (1.42 KB)

···

2009/17/07 Darren Dale <dsdale24@...287...> wrote:

Hi, Darren,

  many thanks for your answer. Now all works.

Regards,
  Alexander Bruy

-- реклама -----------------------------------------------------------
http://FREEhost.com.ua - еще больше места и возможностей.
При заказе хостинга - домен бесплатно.