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

Method setXMinorTicks

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

Sets whether to show minor ticks on the x axis (if linear). Also sets major ticks if true and no grid is set. Call update() thereafter to make the change visible (if the image is shown already).

(boolean xMinorTicks)

Source from the content-addressed store, hash-verified

752 /** Sets whether to show minor ticks on the x axis (if linear). Also sets major ticks if true and no grid is set.
753 * Call update() thereafter to make the change visible (if the image is shown already). */
754 public void setXMinorTicks(boolean xMinorTicks) {
755 pp.axisFlags = xMinorTicks ? pp.axisFlags | X_MINOR_TICKS : pp.axisFlags & (~X_MINOR_TICKS);
756 if (xMinorTicks && !hasFlag(X_GRID))
757 pp.axisFlags |= X_TICKS;
758 }
759
760 /** Sets whether to show minor ticks on the y axis (if linear). Also sets major ticks if true and no grid is set.
761 * Call update() thereafter to make the change visible (if the image is shown already). */

Callers 1

setAxesMethod · 0.95

Calls 1

hasFlagMethod · 0.95

Tested by

no test coverage detected