Alphabetical list Categories
marker Select a new marker for MARK and PMARK
Call signature:

marker(shape=None, size=None, fill=None)

Help text:

marker(shape, size, fill) selects a marker.
All arguments are optional.
shape must be one of + x - | o s d < > ^ v p h; see below.
size is specified in points.
fill is one of open|solid|brush|spine:
  open - The mark is filled with white
  solid - The mark is filled with the current pen's color
  brush - The mark is filled with the current brush's color
  spine - Draws lines from the center to the vertices of the chosen shape instead of drawing the shape.
The mark is always outlined with the current pen (which may be 'none', of course).
Marks are: o: circle/disk        + x: horizontal+vertical or diagonal crosses        - |: horizontal or vertical lines        s d p h: square, diamond, pentagon, or hexagon        < > ^ v: left / right / up / down pointing triangles The fill style has no effect on +|x|-|| marks; spine is like brush for circle.

Example:

import qplot as qp

import numpy as np

qp.figure('marker', 3, 3)

sty = [ 'open', 'solid', 'brush' ]

shp = '+x-|osd<>^vph'

qp.pen('k')

qp.brush('r')

for x in range(len(shp)):

        for y in range(len(sty)):

                qp.marker(shp[x], fill=sty[y])

                qp.mark(x, y)

QPlot Documentation — (C) Daniel Wagenaar, 2014–2023