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)
| 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. */ |
no test coverage detected