Skip to content

Interface: LayoutYaxisMinor ​

Minor ticks and grid lines between the major ticks.

Properties ​

PropertyTypeDefault valueDescription
dtick?unknownundefinedMinor tick step. Tick step. Linear axes: a positive number. Log axes: an integer n (a tick every n decades), L<f> (linear steps of f in data units, e.g. L0.5), D1 (every digit) or D2 (1, 2 and 5). Date axes: milliseconds, or M<n> for n months (M12 for years).
gridcolor?stringundefinedMinor grid color. Defaults to gridcolor blended halfway to the plot background.
griddash?stringundefinedMinor grid dash style. Defaults to griddash. Dash style: solid, dot, dash, longdash, dashdot, longdashdot, or a CSS-like list of dash lengths in px (5px,10px,2px,2px).
gridwidth?numberundefinedMinor grid width in px. Defaults to gridwidth. Minimum: 0
nticks?number5Maximum number of minor ticks per major interval for tickmode: auto (0 picks it from the axis length). Minimum: 0
showgrid?booleanfalseDraw minor grid lines.
tick0?unknownundefinedAs the major tick0. Defaults to the major tick0.
tickcolor?stringundefinedMinor tick color. Defaults to tickcolor.
ticklen?numberundefinedMinor tick length in px. Defaults to 60% of ticklen. Minimum: 0
tickmode?"auto" | "linear" | "array"undefinedAs the major tickmode. Defaults to array when minor.tickvals is set, linear when minor.dtick is set, else auto.
ticks?"" | "outside" | "inside"""Draw minor tick marks outside or inside the plot area, or not at all.
tickvals?DataArrayundefinedMinor tick positions for tickmode: array.
tickwidth?numberundefinedMinor tick width in px. Defaults to tickwidth. Minimum: 0

Released under the MIT License.