8000 Merge pull request #23978 from StefRe/DOC/no-capture · matplotlib/matplotlib@269c0b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 269c0b9

Browse files
authored
Merge pull request #23978 from StefRe/DOC/no-capture
DOC: Suppress IPython output in examples and tutorials where not needed
2 parents 0636b9e + 23d9b03 commit 269c0b9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
199199
'subsection_order': gallery_order.sectionorder,
200200
'thumbnail_size': (320, 224),
201201
'within_subsection_order': gallery_order.subsectionorder,
202+
'capture_repr': (),
202203
}
203204

204205
if 'plot_gallery=0' in sys.argv:

tutorials/intermediate/artists.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class in the Matplotlib API, and the one you will be working with most
115115
116116
Try creating the figure below.
117117
"""
118+
# sphinx_gallery_capture_repr = ('__repr__',)
118119

119120
import numpy as np
120121
import matplotlib.pyplot as plt

tutorials/intermediate/autoscale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# -------
2727
# The default margin around the data limits is 5%:
2828

29-
ax.margins()
29+
print(ax.margins())
3030

3131
###############################################################################
3232
# The margins can be made larger using `~matplotlib.axes.Axes.margins`:

0 commit comments

Comments
 (0)
0