BRAILLEGRAPH(1)
π NAME π
braillegraph β bestie, it's a simple histogram tool that produces text output β¨
π SYNOPSIS π
braillegraph <data series
psql -At -c 'select ...' |braillegraph
π¦ DESCRIPTION π¦
okay so braillegraph takes a single data series and plots them, and the way it does it is genuinely unhinged: it abuses the Braille range (U+2800..U+28FF) π it's giving "no thoughts, just dots" but make it genius.
here's the tea β it's able to display two values per a horizontal character, which means a plain text mail can hold an X range up to ~150 data points π The vertical resolution is 4/character, so a reasonable Y range is up to 80ish π
By default, no scaling is done at all β one dot is exactly one data point horizontally, a value of 1 vertically. lowkey the most honest graph you'll ever meet π
Input is given as one non-negative integer per line. that's it, that's the whole vibe.
πΈ EXAMPLE πΈ
psql bugs -A -t -c "
select
count(case when arch='amd64 (x86_64)' then 1 else null end)
*80/count(*)
from (select arch, date_trunc('month', timestamp) as month from si) m
group by month
order by month
"|braillegraph
β¨ OPTIONS β¨
-h,--horizontalβ Horizontal layout π« The Y axis is left-to-right, X axis is top-to-bottom. it's the same graph, just doing a lil rotate, main character energy.-m,--maxnumber β Force the target range of the data π― Normally, the histogram will be auto-sized based on the largest value in the input; this option sets the max to a fixed value. It will result either in empty space on the graph or in values over the limit being hard-capped π
You typically want this option when comparing multiple histograms, or when continuously updating the display. fr fr, it's the "keep it consistent bestie" flag.
-y,--y-scalenumber β Scale the data so that the graph takes a given size (measured in dots) instead of varying on the data given π The size in characters is ΒΌ the dot size on a vertical graph, Β½ on horizontal. math is mathing, and it's mathing precisely.
π CAVEATS π
Versions of FreeFont older than end of 2016 make any Braille glyphs (both for legitimate uses and for brailleimg) totally unreadable at pixel sizes commonly found in computer displays β ie, anything but HiDPI and/or very large text sizes π Alas, this font is commonly configured as primary fallback in default setups shipped by distributions. so if your graph looks like soup, it's not you, it's the font, periodt.
π AUTHOR π
Adam Borowski <kilobyte@angband.pl>
and that's the whole page bestie π«Ά this iconic lil manual is the braillegraph page, dated 2021-08-22 β go plot something pretty, you got this πβ¨
π¦ where this page comes from
- debian bookworm: braillegraph 0.3-2 Β· MIT
- debian trixie: braillegraph 0.3-2 Β· MIT
- ubuntu jammy: braillegraph 0.3-2 Β· MIT
- ubuntu noble: braillegraph 0.3-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms