Commit 322a8d5d authored by olau@iola.dk's avatar olau@iola.dk

Swap y axis coordinates to fix bug


git-svn-id: https://flot.googlecode.com/svn/trunk@194 1e0a6537-2640-0410-bfb7-f154510ff394
parent af965c7c
......@@ -166,15 +166,15 @@ images (like Google Maps).
}
if (y1 < yaxis.min) {
sy1 += (sy2 - sy1) * (yaxis.min - y1) / (y2 - y1);
sy2 += (sy1 - sy2) * (yaxis.min - y1) / (y2 - y1);
y1 = yaxis.min;
}
if (y2 > yaxis.max) {
sy2 += (sy2 - sy1) * (yaxis.max - y2) / (y2 - y1);
sy1 += (sy1 - sy2) * (yaxis.max - y2) / (y2 - y1);
y2 = yaxis.max;
}
x1 = xaxis.p2c(x1);
x2 = xaxis.p2c(x2);
y1 = yaxis.p2c(y1);
......
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