Skip to content

GridLines Source

Bases: Enum

Whether a Plot draws light grid lines behind its values, used by PlotStyle.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
style = ndp.PlotStyle(grid_lines=ndp.GridLines.HIDDEN)
plot = ndp.Plot.line(prices, style=style)
plot.show()

Plot drawn by the example

Attributes

SHOWN = auto() Source

Light grid lines at each tick of the axes. Default value.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
style = ndp.PlotStyle(grid_lines=ndp.GridLines.SHOWN)
plot = ndp.Plot.line(prices, style=style)
plot.show()

Plot drawn by the example

HIDDEN = auto() Source

No grid lines.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
style = ndp.PlotStyle(grid_lines=ndp.GridLines.HIDDEN)
plot = ndp.Plot.line(prices, style=style)
plot.show()

Plot drawn by the example