Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 76153d8

Browse filesBrowse files
committed
Minor fixes to gallery build.
1. Do not call `matplotlib.use("svg")` in the svg-specific examples, as this is unneeded (matplotlib will internally switch the canvas at save time) and triggers a warning because s-g already set the canvas to agg. 2. Do not report computation times for examples than ran faster than 1s (i.e., most of them) -- for fast examples, we are timing and reporting noise. 3. Some markup fixes.
1 parent 1b5223a commit 76153d8
Copy full SHA for 76153d8

File tree

Expand file treeCollapse file tree

4 files changed

+4
-9
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-9
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def _check_deps():
132132
'scipy': 'https://docs.scipy.org/doc/scipy/reference',
133133
},
134134
'backreferences_dir': 'api/_as_gen',
135-
'subsection_order': ExplicitOrder(explicit_order_folders)
135+
'subsection_order': ExplicitOrder(explicit_order_folders),
136+
'min_reported_time': 1,
136137
}
137138

138139
plot_gallery = 'True'

‎examples/misc/svg_filter_line.py

Copy file name to clipboardExpand all lines: examples/misc/svg_filter_line.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"""
1111

1212
from __future__ import print_function
13-
import matplotlib
14-
15-
matplotlib.use("Svg")
1613

1714
import matplotlib.pyplot as plt
1815
import matplotlib.transforms as mtransforms

‎examples/misc/svg_filter_pie.py

Copy file name to clipboardExpand all lines: examples/misc/svg_filter_pie.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
support it.
1111
"""
1212

13-
14-
import matplotlib
15-
matplotlib.use("Svg")
16-
1713
import matplotlib.pyplot as plt
1814
from matplotlib.patches import Shadow
1915

‎examples/subplots_axes_and_figures/subplots_adjust.py

Copy file name to clipboardExpand all lines: examples/subplots_axes_and_figures/subplots_adjust.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Subplots Adjust
44
===============
55
6-
Adjusting the spacing of margins and subplots using :func:~matplotlib.pyplot.subplots_adjust.
6+
Adjusting the spacing of margins and subplots using
7+
`~matplotlib.pyplot.subplots_adjust`.
78
"""
89
import matplotlib.pyplot as plt
910
import numpy as np

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.