10000 Fix format string for Python 2.6 by cgohlke · Pull Request #5068 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix format string for Python 2.6 #5068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix format string for Python 2.6
Fix ValueError: zero length field name in format
  • Loading branch information
cgohlke committed Sep 15, 2015
commit f06340e9e9b42a355111921b5e00939e7e14ad86
2 changes: 1 addition & 1 deletion examples/showcase/bachelors_degrees_by_gender.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Make sure your axis ticks are large enough to be easily read.
# You don't want your viewers squinting to read your plot.
plt.xticks(range(1970, 2011, 10), fontsize=14)
plt.yticks(range(0, 91, 10), ['{}%'.format(x)
plt.yticks(range(0, 91, 10), ['{0}%'.format(x)
for x in range(0, 91, 10)], fontsize=14)

# Provide tick lines across the plot to help your viewers trace along
Expand Down
0