Constructor
new MMGraph(Mat, tag, drawsize)
Parameters:
Name | Type | Description |
---|---|---|
Mat |
MiniMat | The matrix to draw |
tag |
str | the tag to create the chart as (or update) |
drawsize |
int | the height and width to draw each matrix element as, in pixels |
- Source:
Methods
(static) blue_gc(value)
change sauration and alpha value of blue-like, HSLA
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
- Source:
(static) gray_gc(value)
change sauration and alpha value of a grayscale range, HSLA
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
- Source:
(static) grey_gc(value)
change sauration and alpha value of a greyscale range, HSLA
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
- Source:
(static) lin_scale(val, min, max)
linear scale function
Parameters:
Name | Type | Description |
---|---|---|
val |
float | a normalized on [0,1] value to normalize/scale |
min |
float | the minimum value of the data |
max |
float | the maximum value of the data |
- Source:
(static) rainbow_gc(value)
change sauration and alpha value of a rainbow, HSLA
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
- Source:
(static) redgreen_gc(value)
Split data at the average; red less, green higher, HSLA
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
- Source:
(static) scale_color(value, scheme)
Translate normalized data into a color output per a scheme, parsing nonnumerics.
Parameters:
Name | Type | Description |
---|---|---|
value |
float | a value on [0,1] to translate into a color for drawing |
scheme |
function | a color scaling scheme, which takes in a value [0,1] and returns an array of color information, starting with a string of the color type (e.g. HSLA) |
- Source:
draw()
draw the Mat to this.tag given, already initalized
- Source: