[Matplotlib-users] Importing pyplot blocks input thread

2013-08-06 Thread John McFarland
I am trying to write some code that uses an input thread to check for user input while another thread is running some calculations (see example below). What I have noticed is that just including an import of pyplot (regardless of whether it is used by the code or not) causes the call to raw_input

Re: [Matplotlib-users] Importing pyplot blocks input thread

2013-08-06 Thread Eric Firing
On 2013/08/06 10:08 AM, John McFarland wrote: I am trying to write some code that uses an input thread to check for user input while another thread is running some calculations (see example below). What I have noticed is that just including an import of pyplot (regardless of whether it is used

Re: [Matplotlib-users] Importing pyplot blocks input thread

2013-08-06 Thread John McFarland
On 8/6/2013 3:31 PM, Eric Firing [via matplotlib] wrote: Before the *first* import of pyplot, you need to have: import matplotlib matplotlib.use(agg) or specify any other non-interactive backend. Alternatively, you can specify the backend in a matplotlibrc file. This assumes you don't