ansigraph: Terminal-based graphing via ANSI and Unicode
Ansigraph is an ultralightweight terminal-based graphing utility. It uses Unicode characters and ANSI escape codes to display and animate colored graphs of vectors/functions in real and complex variables.
This functionality is provided by a Graphable
type class, whose method
graphWith
draws a graph at the terminal. Another function animateWith
takes
a list of Graphable elements and displays an animation by rendering them in
sequence. Both of these functions take an options record as an argument. The
graph
and animate
functions are defined to use the default options, and the
user can define similar functions based on their own settings.
There are two main ways to use the package. Importing System.Console.Ansigraph provides all the functionality we typically use. This includes the FlexibleInstances extension, which makes it marginally more convenient to use graphing functions by allowing instances like 'Graphable [Double]'.
If you want to use the package without activating FlexibleInstances then you
can import System.Console.Ansigraph.Core, which provides everything except
these instances. Then you must use one of a few newtype wrappers, namely:
Graph
, PosGraph
, CGraph
, Mat
, CMat
. These wrappers are also
available from the standard Ansigraph
module.
The System.Console.Ansigraph.Examples module contains examples of all the graph types, and also shows the available ANSI colors.
[Skip to Readme]
Modules
[Index]
Downloads
- ansigraph-0.3.0.5.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.0.4, 0.3.0.5 |
---|---|
Change log | CHANGELOG.md |
Dependencies | ansi-terminal (>=0.6 && <1.2), base (>=4.6 && <4.21), transformers (>=0.3 && <0.6) [details] |
License | MIT |
Copyright | 2015-2016 Cliff Harvey |
Author | Cliff Harvey |
Maintainer | cs.hbar+hs@gmail.com |
Revised | Revision 2 made by Bodigrim at 2024-10-08T21:33:35Z |
Category | Graphics |
Home page | https://github.com/BlackBrane/ansigraph |
Source repo | head: git clone git://github.com/fieldstrength/ansigraph.git |
Uploaded | by Cliff_Harvey at 2017-12-28T00:03:09Z |
Distributions | |
Reverse Dependencies | 2 direct, 1 indirect [details] |
Downloads | 6172 total (31 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-12-28 [all 1 reports] |