Popularity
2.5
Declining
Activity
0.0
Stable
3
3
0
Monthly Downloads: 7
Programming language: Haskell
License: Mozilla Public License 2.0
Tags:
Plotting
Latest version: v1.0.0
Add another 'Plotting' Package
README
Machination
A Haskell library for text plotting in the terminal.
Overview
Histograms
Plot histograms as unicode strings in the console. For example, one could plot answers and their frequencies to the question:
"Who's your favorite metal band?"
import Prelude
import Plot.Text.Histogram
( Histogram (..), plot )
main :: IO ()
main = putStrLn $ do
plot $ Histogram
{ width = 80
, height = 24
, bins =
[ ( "Metallica", 78 )
, ( "Iron Maiden", 61 )
, ( "Slayer", 16 )
, ( "Dimmu Borgir", 3 )
, ( "Ghost", 48 )
]
}
:book: Documentation | :floppy_disk: Changelog
*Note that all licence references and agreements mentioned in the machination README section above
are relevant to that project's source code only.