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

Method setYMinorTicks

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

Sets whether to show minor ticks on the y 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 yMinorTicks)

Source from the content-addressed store, hash-verified

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). */
762 public void setYMinorTicks(boolean yMinorTicks) {
763 pp.axisFlags = yMinorTicks ? pp.axisFlags | Y_MINOR_TICKS : pp.axisFlags & (~Y_MINOR_TICKS);
764 if (yMinorTicks && !hasFlag(Y_GRID))
765 pp.axisFlags |= Y_TICKS;
766 }
767
768 /** Sets the properties of the axes. Call update() thereafter to make the change visible
769 * (if the image is shown already). */

Callers 1

setAxesMethod · 0.95

Calls 1

hasFlagMethod · 0.95

Tested by

no test coverage detected