Converts calibrated coordinates to pixel coordinates. In contrast to the image calibration, also works with log axes and inverted x axes. Returns a large number instead NaN for log y axis and zero or negative y
(double y)
| 2026 | /** Converts calibrated coordinates to pixel coordinates. In contrast to the image calibration, also |
| 2027 | * works with log axes and inverted x axes. Returns a large number instead NaN for log y axis and zero or negative y */ |
| 2028 | @AstroImageJ(reason = "Access widen for Vector Plot saving", modified = true) |
| 2029 | public int scaleYWithOverflow(double y) { |
| 2030 | if (!logYAxis || y>0) |
| 2031 | return scaleY(y); |
| 2032 | else |
| 2033 | return yScale > 0 ? 1000000 : -1000000; |
| 2034 | } |
| 2035 | |
| 2036 | /** Scales a value of the original plot for a high-resolution plot. Returns an integer number of pixels >=1 */ |
| 2037 | @AstroImageJ(reason = "Access widen for Vector Plot saving", modified = true) |
no test coverage detected