From 1e76ab86919237392ca6ce0ab1b608afbbab6110 Mon Sep 17 00:00:00 2001 From: bblay Date: Tue, 18 Sep 2012 14:23:11 +0100 Subject: [PATCH] Fixed bug in MaxNLocator.bin_boundaries --- lib/matplotlib/ticker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 620223b16c0b..a0a85cf43f2d 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -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