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

Method setLimits

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

Sets the x-axis and y-axis range. Saves the new limits as default (so the 'R' field sets the limits to these). Updates the image if existing. Accepts NaN values to indicate auto-range.

(double xMin, double xMax, double yMin, double yMax)

Source from the content-addressed store, hash-verified

442 * Updates the image if existing.
443 * Accepts NaN values to indicate auto-range. */
444 public void setLimits(double xMin, double xMax, double yMin, double yMax) {
445 setLimitsNoUpdate(xMin, xMax, yMin, yMax);
446 makeLimitsDefault();
447 ignoreForce2Grid = true;
448 if (plotDrawn)
449 setLimitsToDefaults(true);
450 }
451
452 /** Sets the x-axis and y-axis range. Accepts NaN values to indicate auto range.
453 * Does not update the image and leaves the default limits (for reset via the 'R' field) untouched. */

Callers 15

plotHistogramMethod · 0.95
doPlotMethod · 0.95
getPlotMethod · 0.95
multiPlotMethod · 0.95
showPlotMethod · 0.95
plotMethod · 0.95
getPlotMethod · 0.95
getPlotMethod · 0.95
runMethod · 0.95
updatePlotMethod · 0.95
showDialogMethod · 0.45
addObjectFromPlotMethod · 0.45

Calls 5

setLimitsNoUpdateMethod · 0.95
makeLimitsDefaultMethod · 0.95
setLimitsToDefaultsMethod · 0.95
arraycopyMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected