Skip to content

Commit

Permalink
String formatting in examples directory changed
Browse files Browse the repository at this point in the history
  • Loading branch information
montefra committed Mar 22, 2015
1 parent 6ac01bd commit 56d71a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pylab_examples/contour_corner_mask.py
Expand Up @@ -24,7 +24,7 @@
plt.subplot(1, 2, i+1)
cs = plt.contourf(x, y, z, corner_mask=corner_mask)
plt.contour(cs, colors='k')
plt.title('corner_mask = {}'.format(corner_mask))
plt.title('corner_mask = {0}'.format(corner_mask))

# Plot grid.
plt.grid(c='k', ls='-', alpha=0.3)
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/legend_demo3.py
Expand Up @@ -6,7 +6,7 @@
# Plot the lines y=x**n for n=1..4.
ax = plt.subplot(2, 1, 1)
for n in range(1, 5):
plt.plot(x, x**n, label="n={}".format(n))
plt.plot(x, x**n, label="n={0}".format(n))
plt.legend(loc="upper left", bbox_to_anchor=[0, 1],
ncol=2, shadow=True, title="Legend", fancybox=True)
ax.get_legend().get_title().set_color("red")
Expand Down
2 changes: 1 addition & 1 deletion examples/specialty_plots/topographic_hillshading.py
Expand Up @@ -54,7 +54,7 @@

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

Expand Down

0 comments on commit 56d71a7

Please sign in to comment.