MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / scaleYWithOverflow

Method scaleYWithOverflow

ij/src/main/java/ij/gui/Plot.java:2028–2034  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 5

drawBarChartMethod · 0.95
drawVerticalErrorBarsMethod · 0.95
drawBarChartMethod · 0.80

Calls 1

scaleYMethod · 0.95

Tested by

no test coverage detected