<s> from ascii_graph import Pyasciigraph <EOL> from ascii_graph . colors import * <EOL> test = [ ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT> , Red ) , <EOL> ( '<STR_LIT>' , [ ( <NUM_LIT> , Gre ) , ( <NUM_LIT> , Blu ) ] ) , <EOL> ( '<STR_LIT>' , [ ( <NUM_LIT:200> , Yel ) , ( <NUM_LIT:100> , ) ] ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:100> , Cya ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:50> , Blu ) , <EOL> ( '<STR_LIT>' , [ ( <NUM_LIT:100> , Gre ) , ( <NUM_LIT> , Red ) , ( <NUM_LIT:200> , Yel ) , ( <NUM_LIT> , Blu ) ] ) ] <EOL> graph = Pyasciigraph ( separator_length = <NUM_LIT:4> ) <EOL> for line in graph . graph ( '<STR_LIT>' , test ) : <EOL> print ( line ) <EOL> graph = Pyasciigraph ( separator_length = <NUM_LIT:4> , multivalue = False ) <EOL> for line in graph . graph ( '<STR_LIT>' , test ) : <EOL> print ( line ) <EOL> from ascii_graph . colordata import hcolor <EOL> test = [ ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:200> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:100> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:50> ) ] <EOL> thresholds = { <EOL> <NUM_LIT> : Gre , <EOL> <NUM_LIT:100> : Blu , <EOL> <NUM_LIT> : Yel , <EOL> <NUM_LIT> : Red , <EOL> } <EOL> data = hcolor ( test , thresholds ) <EOL> for line in graph . graph ( '<STR_LIT>' , data ) : <EOL> print ( line ) <EOL> exit ( <NUM_LIT:0> ) </s>
