|
54 | 54 | ) |
55 | 55 |
|
56 | 56 | 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") |
61 | 61 | fig.savefig("../figures/tip-dotted.pdf") |
62 | 62 |
|
63 | 63 |
|
@@ -142,15 +142,15 @@ def setup(ax): |
142 | 142 |
|
143 | 143 | ax.bar(x1, y1, color=color2) |
144 | 144 | 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") |
148 | 148 |
|
149 | 149 | ax.bar(x2, y2, color=color2, hatch="/") |
150 | 150 | 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") |
154 | 154 |
|
155 | 155 | ax.set_yticks([]) |
156 | 156 | ax.set_xticks(0.5 + np.arange(0, 6, 3)) |
@@ -194,7 +194,7 @@ def setup(ax): |
194 | 194 | ax.imshow(Z, interpolation="nearest", cmap=cmap, vmin=0, vmax=2) |
195 | 195 |
|
196 | 196 | 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") |
198 | 198 | text.set_path_effects([path_effects.Stroke(linewidth=5, foreground='white'), |
199 | 199 | path_effects.Normal()]) |
200 | 200 | fig.savefig("../figures/tip-outline.pdf") |
|
0 commit comments