Sorry Brenton, I meant for my reply to go to the entire list.

Anyway, in your response, I take it that you meant to say that the window
appears and disappears immediately. Yes?

What happens if you restart the Python interpreter and type the following?
>>> import matplotlib
>>> matplotlib.use('TkAgg')
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,2,3])
>>> plt.show()
Does my first example work fine in the IPython interpreter? (Sorry, I'm not
on my Windows machine right now, so I can't tell you if I'm seeing the same
problem.)

Ryan

On Sat, Mar 14, 2015 at 8:21 AM, Brenton Horne <brentonhorn...@gmail.com>
wrote:

>  Yes, a popup window appears but it appears immediately after it appears.
>
> On 14/03/2015 10:03 PM, Ryan Nelson wrote:
>
> Brenton,
>
>  Unfortunately, those particular examples are out of date. First of all,
> I would not recommend using pylab at all -- and I think that many other
> folks will give you the same advice. (For reasons that I can describe later
> if you are interested.)
>
>  IPython is a much different beast than the vanilla Python interpreter,
> especially in how it handles GUI stuff. Maybe you could temporarily move
> the matplotlibrc file that you created, and try the following from a
> regular Python session:
>  >>> import matplotlib
> >>> matplotlib.use('TkAgg')
> >>> import matplotlib.pyplot as plt
> >>> plt.ion()
> >>> plt.plot([1,2,3])
>  The second line is telling MPL what backend to use. (You can set this in
> the rc file later, but let's make sure this isn't the problem for now.) The
> third line imports the pyplot module, which is recommended over pylab. The
> fourth line is turning on interactive plotting. Once you execute the plot
> command on the fifth line, a popup window should appear. Yes?
>
>  Ryan
>
>
>
> On Sat, Mar 14, 2015 at 5:17 AM, Brenton Horne <brentonhorn...@gmail.com>
> wrote:
>
>>  Oh and I have made the mentioned customizations to matplotlibrc
>> (although the TkAgg line was already present). My python version is 2.7.9
>> and matplotlib version is 1.4.3.
>>
>> On 14/03/2015 7:14 PM, Brenton Horne wrote:
>>
>> Hi,
>>
>> I am on Windows 7 64 bit SP1 and I installed matplotlib via wheels files
>> here http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib but now
>> whenever I execute plotting commands from the python shell (e.g., the 'hi
>> mom' example here
>> http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#other-python-interpreters)
>> it seems like as though some window is trying to pop up but nothing does.
>> Whereas if I try the the hist example here (
>> http://matplotlib.org/1.4.3/users/shell.html?highlight=mailing%20list#ipython-to-the-rescue)
>> in IPython I get a graph pop-up that seems fine.
>>
>> Thanks for your time,
>> Brenton
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to