8000 Fix units examples under python3 by jenshnielsen · Pull Request #3838 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix units examples under python3 #3838

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 2 commits into from
Oct 20, 2015
Merged
Changes from 1 commit
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
Prev Previous commit
this should be an integer div in all cases
  • Loading branch information
jenshnielsen committed Dec 30, 2014
commit 2121e2fb777bf46f8c658d543c3d1a7dd42a388e
2 changes: 1 addition & 1 deletion examples/units/basic_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def rad_fn(x, pos=None):
elif n == 2:
return r'$\pi$'
elif n % 2 == 0:
return r'$%s\pi$' % (n/2,)
return r'$%s\pi$' % (n//2,)
else:
return r'$%s\pi/2$' % (n,)

Expand Down
0