You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/faq/usage_faq.rst
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -522,7 +522,9 @@ and turned off via :func:`matplotlib.pyplot.ioff`.
522
522
523
523
.. note::
524
524
Interactive mode works with suitable backends in ipython and in
525
-
the ordinary python shell, but it does *not* work in the IDLE IDE.
525
+
the ordinary python shell, but it does *not* work in the IDLE IDE.
526
+
If the default backend does not support interactivity, an interactive
527
+
backend can be explicitly activated using any of the methods discussed in `What is a backend?`_.
526
528
527
529
528
530
Interactive example
@@ -545,9 +547,7 @@ can type additional commands such as::
545
547
546
548
and you will see the plot being updated after each line. This is
547
549
because you are in interactive mode *and* you are using pyplot
548
-
functions.
549
-
550
-
Now try an alternative method of modifying the
550
+
functions. Now try an alternative method of modifying the
551
551
plot. Get a reference to the :class:`~matplotlib.axes.Axes` instance, and
552
552
call a method of that instance::
553
553
@@ -564,8 +564,6 @@ you need to call :func:`~matplotlib.pyplot.draw`::
564
564
565
565
Now you should see the new line added to the plot.
566
566
567
-
If this example did not work, you may need to explicitly activate the qt backend. This can most simply be done by opening an ipython prompt using `ipython --matplotlib=qt` or using the ipython magic command of `%matplotlib qt` before you import matplotlib.
0 commit comments