From 5fb61a92c8c5c17c4b0653312d4f6d73eb6b6787 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Tue, 7 May 2013 21:02:29 -0400 Subject: [PATCH] Respect autoscale when nullifying points. Resolves #1033. --- jquery.flot.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 16ed7ae..f2668ad 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1073,10 +1073,14 @@ Licensed under the MIT license. if (val != null) { f = format[m]; // extract min/max info - if (f.x) - updateAxis(s.xaxis, val, val); - if (f.y) - updateAxis(s.yaxis, val, val); + if (f.autoscale) { + if (f.x) { + updateAxis(s.xaxis, val, val); + } + if (f.y) { + updateAxis(s.yaxis, val, val); + } + } } points[k + m] = null; }