From 3b015012cdd084ea64c9ba4248b495ffca59de1b Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 31 Oct 2018 19:31:55 +0100 Subject: [PATCH] Change ipython block to code-block --- doc/users/prev_whats_new/whats_new_1.5.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/users/prev_whats_new/whats_new_1.5.rst b/doc/users/prev_whats_new/whats_new_1.5.rst index 9e7ca186252b..dbb7a67d527b 100644 --- a/doc/users/prev_whats_new/whats_new_1.5.rst +++ b/doc/users/prev_whats_new/whats_new_1.5.rst @@ -36,16 +36,12 @@ that the draw command is deferred and only called once. The upshot of this is that for interactive backends (including ``%matplotlib notebook``) in interactive mode (with ``plt.ion()``) -.. ipython :: python +.. code-block :: python import matplotlib.pyplot as plt - fig, ax = plt.subplots() - ln, = ax.plot([0, 1, 4, 9, 16]) - plt.show() - ln.set_color('g')