Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56d71a7

Browse files
committed
String formatting in examples directory changed
1 parent 6ac01bd commit 56d71a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/pylab_examples/contour_corner_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
plt.subplot(1, 2, i+1)
2525
cs = plt.contourf(x, y, z, corner_mask=corner_mask)
2626
plt.contour(cs, colors='k')
27-
plt.title('corner_mask = {}'.format(corner_mask))
27+
plt.title('corner_mask = {0}'.format(corner_mask))
2828

2929
# Plot grid.
3030
plt.grid(c='k', ls='-', alpha=0.3)

examples/pylab_examples/legend_demo3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Plot the lines y=x**n for n=1..4.
77
ax = plt.subplot(2, 1, 1)
88
for n in range(1, 5):
9-
plt.plot(x, x**n, label="n={}".format(n))
9+
plt.plot(x, x**n, label="n={0}".format(n))
1010
plt.legend(loc="upper left", bbox_to_anchor=[0, 1],
1111
ncol=2, shadow=True, title="Legend", fancybox=True)
1212
ax.get_legend().get_title().set_color("red")

examples/specialty_plots/topographic_hillshading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# Label rows and columns
5656
for ax, ve in zip(axes[0], [0.1, 1, 10]):
57-
ax.set_title('{}'.format(ve), size=18)
57+
ax.set_title('{0}'.format(ve), size=18)
5858
for ax, mode in zip(axes[:, 0], ['Hillshade', 'hsv', 'overlay', 'soft']):
5959
ax.set_ylabel(mode, size=18)
6060

0 commit comments

Comments
 (0)