Alphabetical list Categories
brush Set brush for QPlot
Call signature:

brush(color=None, alpha=None, id=None)

Help text:

All arguments are optional.
  color may be a named color (i.e., one of krgbcmyw), or a 3-digit or a 6-digit string, or 'none' or '' for none.
  alpha must be a number between 0 and 1.
  id specifies an id.

Example:

import qplot as qp

import numpy as np

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

qp.brush('777')

qp.patch([0, 1, 1, 0], [0, 0, 1, 1])

qp.brush('r', .25, id='A')

qp.patch([.5, 1.5, 1.5, .5], [.5, .5, 1.5, 1.5])

qp.brush('none')

qp.patch([.2, .7, .7, .2], [.8, .8, 1.3, 1.3])

qp.brush('b')

qp.patch([.2, .4, .4, .2], [.2, .2, .4, .4])

qp.brush(id='A', alpha=.75)

qp.patch([1.2, 1.4, 1.4, 1.2], [.3, .3, .8, .8])

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