Converts calibrated coordinates to pixel coordinates. In contrast to the image calibration, also works with log x axis and inverted x axis
(double x)
| 1963 | /** Converts calibrated coordinates to pixel coordinates. In contrast to the image calibration, also |
| 1964 | * works with log x axis and inverted x axis */ |
| 1965 | public double scaleXtoPxl(double x) { |
| 1966 | if (xMin == xMax) { |
| 1967 | if (x==xMin) return xBasePxl; |
| 1968 | else return x>xMin ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY; |
| 1969 | } |
| 1970 | if (logXAxis) |
| 1971 | return xBasePxl+(Math.log10(x)-xMin)*xScale; |
| 1972 | else |
| 1973 | return xBasePxl+(x-xMin)*xScale; |
| 1974 | } |
| 1975 | |
| 1976 | /** Converts calibrated coordinates to pixel coordinates. In contrast to the image calibration, also |
| 1977 | * works with log y axis */ |
no outgoing calls
no test coverage detected