forcing a plot to appear

Hi,

I am trying to develop an application that I can run inside the ipython
shell. One of my methods creates a plot, asks the user to make a choice
based on that plot, and then creates another plot that displays the chosen
set of information.

If the choices are made with a qt or wx dialogue, everything goes fine. If
I try to get the choice by asking the user to type the information into the
shell, neither plot appears until after the choice is made.

I have tried show() and draw() but neither make any difference.

thanks for any help

Ken Dere

Hi Ken,

let_a_plot_appear.py (309 Bytes)

ยทยทยท

On Monday 15 February 2010 20:35:06 Ken Dere wrote:

Hi,

I am trying to develop an application that I can run inside the ipython
shell. One of my methods creates a plot, asks the user to make a choice
based on that plot, and then creates another plot that displays the chosen
set of information.

If the choices are made with a qt or wx dialogue, everything goes fine. If
I try to get the choice by asking the user to type the information into the
shell, neither plot appears until after the choice is made.

I have tried show() and draw() but neither make any difference.

I attached a script that allows to input a number via "raw_input" (after the
first figure appeared) and than opens up a second figure. I hope the goes
towards your needs.

Kind regards,
Matthias