Package ascii_graph.colordata

ascii_graph.colordata.hcolor(data, thresholds)

Multicolor a graph according to thresholds

Parameters:
  • data (list of tuples (info, value)) – the data
  • thresholds (dict) – dict of thresholds, format {<threshold>: <color>,}
Returns:

the colored graph

Return type:

list of arrays

ascii_graph.colordata.vcolor(data, pattern)

Color a graph line by line

Parameters:
  • data (list of tuples (info, value)) – the data
  • pattern (list of 'colors' (str)) – list of colors, this list defines the pattern to color each line of the graph.
Returns:

the colored graph

Return type:

list of arrays (<info>, <value>, <color>)