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

Skip to content

Commit f06340e

Browse files
committed
Fix format string for Python 2.6
Fix ValueError: zero length field name in format
1 parent ae34212 commit f06340e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/showcase/bachelors_degrees_by_gender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# Make sure your axis ticks are large enough to be easily read.
3636
# You don't want your viewers squinting to read your plot.
3737
plt.xticks(range(1970, 2011, 10), fontsize=14)
38-
plt.yticks(range(0, 91, 10), ['{}%'.format(x)
38+
plt.yticks(range(0, 91, 10), ['{0}%'.format(x)
3939
for x in range(0, 91, 10)], fontsize=14)
4040

4141
# Provide tick lines across the plot to help your viewers trace along

0 commit comments

Comments
 (0)