Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 363f06e

Browse files
authored
Merge pull request #12694 from meeseeksmachine/auto-backport-of-pr-12684-on-v3.0.x
Backport PR #12684 on branch v3.0.x (Change ipython block to code-block)
2 parents ab3812d + 4b365cd commit 363f06e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/users/prev_whats_new/whats_new_1.5.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,12 @@ that the draw command is deferred and only called once.
3636
The upshot of this is that for interactive backends (including
3737
``%matplotlib notebook``) in interactive mode (with ``plt.ion()``)
3838

39-
.. ipython :: python
39+
.. code-block :: python
4040
4141
import matplotlib.pyplot as plt
42-
4342
fig, ax = plt.subplots()
44-
4543
ln, = ax.plot([0, 1, 4, 9, 16])
46-
4744
plt.show()
48-
4945
ln.set_color('g')
5046
5147

0 commit comments

Comments
 (0)