Popularity
2.6
Growing
Activity
0.0
Declining
3
2
0

Monthly Downloads: 9
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.