Skip to content

LineType Source

Bases: Enum

How the lines of a LineChart are drawn.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
chart = ndp.LineChart(line=ndp.LineType.DASHED)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

Attributes

SOLID = auto() Source

A continuous line. 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])
chart = ndp.LineChart(line=ndp.LineType.SOLID)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

DASHED = auto() Source

A line of dashes.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
chart = ndp.LineChart(line=ndp.LineType.DASHED)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

DOTTED = auto() Source

A line of dots.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
chart = ndp.LineChart(line=ndp.LineType.DOTTED)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

DASH_DOT = auto() Source

A line of dashes and dots in turn.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0])
chart = ndp.LineChart(line=ndp.LineType.DASH_DOT)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example