Skip to content

Color Source

Bases: Enum

Named colors of the series of a chart: the first ten colors of the default cycle, then black.

The series or color_by groups without chosen colors take the colors of the default cycle: these ten colors, then their light colors, #aec7e8 for blue to #9edae5 for cyan. After 20 series the cycle starts again, with a ReadabilityWarning. Write any other color with CustomColor.

Added in version 0.1.0

Changed in version 0.2.0

The default cycle goes on with ten light colors before it starts again.

Examples:

import numdaplot as ndp

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

Plot drawn by the example

Attributes

BLUE = auto() Source

Blue, #1f77b4, the first color of the default cycle.

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(colors=[ndp.Color.BLUE])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

ORANGE = auto() Source

Orange, #ff7f0e.

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(colors=[ndp.Color.ORANGE])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

GREEN = auto() Source

Green, #2ca02c.

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(colors=[ndp.Color.GREEN])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

RED = auto() Source

Red, #d62728.

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(colors=[ndp.Color.RED])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

PURPLE = auto() Source

Purple, #9467bd.

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(colors=[ndp.Color.PURPLE])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

BROWN = auto() Source

Brown, #8c564b.

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(colors=[ndp.Color.BROWN])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

PINK = auto() Source

Pink, #e377c2.

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(colors=[ndp.Color.PINK])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

GRAY = auto() Source

Gray, #7f7f7f.

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(colors=[ndp.Color.GRAY])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

OLIVE = auto() Source

Olive, #bcbd22.

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(colors=[ndp.Color.OLIVE])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

CYAN = auto() Source

Cyan, #17becf.

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(colors=[ndp.Color.CYAN])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

BLACK = auto() Source

Black, #000000.

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(colors=[ndp.Color.BLACK])
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example