Skip to content

Commit

Permalink
Merge pull request #1277 from bblay/autolev
Browse files Browse the repository at this point in the history
Fixed bug in MaxNLocator.bin_boundaries
  • Loading branch information
efiring committed Sep 18, 2012
2 parents b90eaa8 + 1e76ab8 commit 5ba5233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/ticker.py
Expand Up @@ -1237,8 +1237,8 @@ def bin_boundaries(self, vmin, vmax):
scale, offset = scale_range(vmin, vmax, nbins)
if self._integer:
scale = max(1, scale)
vmin -= offset
vmax -= offset
vmin = vmin - offset
vmax = vmax - offset
raw_step = (vmax-vmin)/nbins
scaled_raw_step = raw_step/scale
best_vmax = vmax
Expand Down

0 comments on commit 5ba5233

Please sign in to comment.