Skip to content

MarkerShape Source

Bases: Enum

Shapes drawn at the values of a LineChart or a ScatterChart.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.SQUARE)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example

Attributes

NONE = auto() Source

No marker, only the line. Default value of LineChart, refused by ScatterChart.

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(marker=ndp.MarkerShape.NONE)
plot = ndp.Plot.line(prices, chart)
plot.show()

Plot drawn by the example

CIRCLE = auto() Source

A disc. Default value of ScatterChart.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.CIRCLE)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example

SQUARE = auto() Source

A square.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.SQUARE)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example

TRIANGLE = auto() Source

A triangle pointing up.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.TRIANGLE)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example

CROSS = auto() Source

A cross made of two diagonal strokes.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.CROSS)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example

DIAMOND = auto() Source

A diamond.

Added in version 0.1.0

Examples:

import numdaplot as ndp

surfaces = ndp.Array.from_list([30.0, 45.0, 60.0, 80.0])
prices = ndp.Array.from_list([150.0, 210.0, 260.0, 330.0])
flats = ndp.Table.from_arrays({"surface": surfaces, "price": prices})
chart = ndp.ScatterChart(x="surface", y="price", marker=ndp.MarkerShape.DIAMOND)
plot = ndp.Plot.scatter(flats, chart)
plot.show()

Plot drawn by the example