Skip to content

Commit cdcb282

Browse files
committed
STY: Fix some whitespace issues.
1 parent 5e859f8 commit cdcb282

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

doc/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def _check_deps():
9595
}
9696

9797

98-
9998
# Sphinx gallery configuration
10099
sphinx_gallery_conf = {
101100
'examples_dirs': ['../examples', '../tutorials'],
@@ -149,7 +148,6 @@ def _check_deps():
149148
'team; 2012 - 2018 The Matplotlib development team')
150149

151150

152-
153151
# The default replacements for |version| and |release|, also used in various
154152
# other places throughout the built documents.
155153
#

doc/sphinxext/gallery_order.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __call__(self, item):
6969
class MplExplicitSubOrder(object):
7070
""" for use within the 'within_subsection_order' key """
7171
def __init__(self, src_dir):
72-
self.src_dir = src_dir #src_dir is unused here
72+
self.src_dir = src_dir # src_dir is unused here
7373
self.ordered_list = explicit_subsection_order
7474

7575
def __call__(self, item):

doc/users/generate_credits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def check_duplicates():
6363
contributors = [line.split('\t', 1)[1].strip() for line in lines if line]
6464
emails = [re.match('.*<(.*)>', line).group(1) for line in contributors]
6565
email_counter = Counter(emails)
66-
66+
6767
if email_counter.most_common(1)[0][1] > 1:
6868
print('DUPLICATE CHECK: The following email addesses are used with more '
6969
'than one name.\nConsider adding them to .mailmap.\n')

setupext.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,8 @@ def do_custom_build(self):
11151115

11161116
if sys.platform != 'win32':
11171117
# compilation on all other platforms than windows
1118-
env={**os.environ,
1119-
"CFLAGS": "{} -fPIC".format(os.environ.get("CFLAGS", ""))}
1118+
env = {**os.environ,
1119+
"CFLAGS": "{} -fPIC".format(os.environ.get("CFLAGS", ""))}
11201120
subprocess.check_call(
11211121
["./configure", "--with-zlib=no", "--with-bzip2=no",
11221122
"--with-png=no", "--with-harfbuzz=no"],

tools/memleak.py

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def __call__(self):
127127
help="Turn on interactive mode to actually open "
128128
"windows. Only works with some GUI backends.")
129129

130-
131130
args = parser.parse_args()
132131

133132
import matplotlib

tutorials/intermediate/constrainedlayout_guide.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def example_plot(ax, fontsize=12, nodec=False):
126126
arr = np.arange(100).reshape((10, 10))
127127
norm = mcolors.Normalize(vmin=0., vmax=100.)
128128
# see note above: this makes all pcolormesh calls consistent:
129-
pc_kwargs = {'rasterized':True, 'cmap':'viridis', 'norm':norm}
129+
pc_kwargs = {'rasterized': True, 'cmap': 'viridis', 'norm': norm}
130130
fig, ax = plt.subplots(figsize=(4, 4), constrained_layout=True)
131131
im = ax.pcolormesh(arr, **pc_kwargs)
132132
fig.colorbar(im, ax=ax, shrink=0.6)

tutorials/intermediate/tight_layout_guide.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
feature and may not work for some cases. It only checks the extents
1111
of ticklabels, axis labels, and titles.
1212
13-
An alternative to *tight_layout* is
14-
:doc:`constrained_layout</tutorials/intermediate/constrainedlayout_guide>`.
13+
An alternative to *tight_layout* is :doc:`constrained_layout
14+
</tutorials/intermediate/constrainedlayout_guide>`.
1515
1616
1717
Simple Example

0 commit comments

Comments
 (0)