Skip to content

Commit e204e24

Browse files
committed
fixes for PEP-8
1 parent 5c7deb3 commit e204e24

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: scripts/tips.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
)
5555

5656
epsilon=1e-12
57-
ax.plot([0,1], [0,0], "black", clip_on=False, lw=8,
58-
ls=(.5,(epsilon, 1)), dash_capstyle="round")
59-
ax.plot([0,1], [1,1], "black", clip_on=False, lw=8,
60-
ls=(-.5,(epsilon, 2)), dash_capstyle="round")
57+
ax.plot([0, 1], [0, 0], "black", clip_on=False, lw=8,
58+
ls=(.5, (epsilon, 1)), dash_capstyle="round")
59+
ax.plot([0, 1], [1, 1], "black", clip_on=False, lw=8,
60+
ls=(-.5, (epsilon, 2)), dash_capstyle="round")
6161
fig.savefig("../figures/tip-dotted.pdf")
6262

6363

@@ -142,15 +142,15 @@ def setup(ax):
142142

143143
ax.bar(x1, y1, color=color2)
144144
for i in range(len(x1)):
145-
ax.annotate("%d%%" % y1[i], (x1[i], y1[i]), xytext=(0,1),
146-
fontsize="x-small", color=color2,
147-
textcoords="offset points", va="bottom", ha="center")
145+
ax.annotate("%d%%" % y1[i], (x1[i], y1[i]), xytext=(0, 1),
146+
fontsize="x-small", color=color2,
147+
textcoords="offset points", va="bottom", ha="center")
148148

149149
ax.bar(x2, y2, color=color2, hatch="/")
150150
for i in range(len(x2)):
151-
ax.annotate("%d%%" % y2[i], (x2[i], y2[i]), xytext=(0,1),
152-
fontsize="x-small", color=color2,
153-
textcoords="offset points", va="bottom", ha="center")
151+
ax.annotate("%d%%" % y2[i], (x2[i], y2[i]), xytext=(0, 1),
152+
fontsize="x-small", color=color2,
153+
textcoords="offset points", va="bottom", ha="center")
154154

155155
ax.set_yticks([])
156156
ax.set_xticks(0.5 + np.arange(0, 6, 3))
@@ -194,7 +194,7 @@ def setup(ax):
194194
ax.imshow(Z, interpolation="nearest", cmap=cmap, vmin=0, vmax=2)
195195

196196
text = ax.text(0.5, 0.1, "Label", transform=ax.transAxes,
197-
color=cmap(0.9), size=32, weight="bold", ha="center", va="bottom")
197+
color=cmap(0.9), size=32, weight="bold", ha="center", va="bottom")
198198
text.set_path_effects([path_effects.Stroke(linewidth=5, foreground='white'),
199199
path_effects.Normal()])
200200
fig.savefig("../figures/tip-outline.pdf")

0 commit comments

Comments
 (0)