matplotlib interactive mode

45 views
Skip to first unread message

Anas Ghrab

unread,
Sep 24, 2014, 8:07:36 PM9/24/14
to bpy...@googlegroups.com
Hi all,

Is there a problem with the bpython and the show() command from matplotlib ?

1. Using the python interpreter on Mac OS X, when I close the window of the figure the prompt >>>  is back. With bpython I get this error :
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 382, in cl
ose
    def close(self):
KeyboardInterrupt

2. The interactive mode doesn't work : :

>>> import matplotlib.pyplot as plt

>>> plt.isinteractive()

False

>>> plt.ion()

>>> plt.isinteractive()

0
>>> plt.ioff()
>>> plt.isinteractive()
False

-----------
Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import matplotlib.pyplot as plt
>>> plt.isinteractive()
False
>>> plt.ion()
>>> plt.isinteractive()
True

Thomas Ballinger

unread,
Oct 18, 2014, 3:02:17 PM10/18/14
to bpy...@googlegroups.com
Hi Anas,

I can reproduce this - so yes, it looks like there is a problem. I'm posting a GitHub issue for it here: https://github.com/bpython/bpython/issues/411 but can't commit to investigating it for a while.

Tom

--
You received this message because you are subscribed to the Google Groups "bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bpython+u...@googlegroups.com.
To post to this group, send email to bpy...@googlegroups.com.
Visit this group at http://groups.google.com/group/bpython.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages