Home | History | Annotate | Download | only in flot

Lines Matching refs:y2

6 The data syntax is [ [ image, x1, y1, x2, y2 ], ... ] where (x1, y1) and
7 (x2, y2) are where you intend the two opposite corners of the image to end up
130 x2 = points[i + 3], y2 = points[i + 4],
145 if (y1 > y2) {
146 tmp = y2;
147 y2 = y1;
157 tmp = 0.5 * (y2-y1) / (img.height - 1);
159 y2 += tmp;
163 if (x1 == x2 || y1 == y2 ||
165 y1 >= yaxis.max || y2 <= yaxis.min)
180 sy2 += (sy1 - sy2) * (yaxis.min - y1) / (y2 - y1);
184 if (y2 > yaxis.max) {
185 sy1 += (sy1 - sy2) * (yaxis.max - y2) / (y2 - y1);
186 y2 = yaxis.max;
192 y2 = yaxis.p2c(y2);
200 if (y1 > y2) {
201 tmp = y2;
202 y2 = y1;
211 x2 - x1, y2 - y1);
220 // format is Image, x1, y1, x2, y2 (opposite corners)