Commit 1f9e3ba7 authored by David Schnur's avatar David Schnur

Fix incorrect check for the innermost axis.

An axis is innermost when it's first among those not just in its
direction, but also on its side, i.e. left/right, of the plot. So the
inArray check should be against the samePosition list, not all.
Resolves #1056.
parent ed3f1489
...@@ -1397,9 +1397,7 @@ Licensed under the MIT license. ...@@ -1397,9 +1397,7 @@ Licensed under the MIT license.
// Determine whether the axis is the first (innermost) on its side // Determine whether the axis is the first (innermost) on its side
innermost = $.inArray(axis, $.grep(all, function (a) { innermost = $.inArray(axis, samePosition) == 0;
return a && a.reserveSpace;
})) == 0;
// determine tick length - if we're innermost, we can use "full" // determine tick length - if we're innermost, we can use "full"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment