As the codebase gets closer to the 1.0 stretch we now have the addition of slope colors for when values go up/down or remain constant between points. The code still only handles two columns of data, but the intent is for each segment to also be colored appropriately (up/down/same) in a multi-column layout. I was… Continue reading
Posts Tagged → tufte
Slopegraphs in Python – More Output Tweaks
The best way to explain this release will be to walk you through an updated configuration file: { "label_font_family" : "Palatino","label_font_size" : "9", "header_font_family" : "Palatino","header_font_size" : "10", "x_margin" : "20","y_margin" : "30", "line_width" : "0.5", "slope_length" : "150", "labels" : [ "1970", "1979" ], "header_color" : "000000","background_color" : "FFFFFF","label_color" : "111111","value_color" : "999999","slope_color" : "AAAAAA", "value_format_string" : "%2d", "input" : "receipts.csv","output" : "receipts","format"… Continue reading
Slopegraphs in Python – The Great Refactor
Despite being on holiday, I had a spare hour to refactor the code (@mrshrbrmstr was joining the 1% in the hotel spa). It’s up on github and now sports a spiffy JSON-format config file. You now must execute the slopegraph.py script with a “–config FILENAME” argument. The configuration file lets you specify the “theme” as… Continue reading
Slopegraphs in Python – Attention to Detail
In the previous installment, a foundation was laid for “parameterizing” fonts, colors and overall slopegraph size. However, a big failing in all this code (up until now) was the reliance on character string length to determine label width. When working with fonts, the font metrics are more important since a lowercase ‘l’ will have a… Continue reading
Slopegraphs In Python – colors, fonts & alignment
On the heels of last evening’s release of Slopegraphs in Python post comes some minor tweaks: Complete alignment control of labels & and values Colors (for background, lines, labels & values) — I picked a random pattern from Adobe’s Kuler A font change (to prove width calculations work) …and a new example slopegraph: As promised,… Continue reading
Slopegraphs in Python
(NOTE: You can keep up with progress best at github, but can always search on “slopegraph” here or just hit the tag page: “slopegraph” regularly) I’ve been a bit obsessed with slopegraphs (a.k.a “Tufte table-chart”) of late and very dissatisfied with the lack of tools to make this particular visualization tool more prevalent. While my… Continue reading