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 291f79e

Browse filesBrowse files
committed
fixes for PEP-8
1 parent a5a1d75 commit 291f79e
Copy full SHA for 291f79e

File tree

Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed

‎scripts/tips.py

Copy file name to clipboardExpand all lines: scripts/tips.py
+11-11Lines changed: 11 additions & 11 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.