The plots package

[Tags:bsd3, library]

Diagrams based plotting library.

[Skip to Readme]


Dependencies adjunctions, base (>=4.7 && <5.0), base-orphans, colour, containers (>=0.3 && <0.6), data-default (>=0.5 && <0.8), diagrams-core (>=1.3 && <1.5), diagrams-lib (>=1.3 && <1.5), directory, distributive, filepath, fingertree, hashable (>=1.1 && <1.3), intervals, JuicyPixels, lens (>=4.6 && <5.0), linear (>=1.2 && <2.0), monoid-extras (>=0.3 && <0.6), mtl (>=1.0 && <3.2), optparse-applicative, process, profunctors, semigroupoids, semigroups, split (>=0.1.2 && <0.5), statistics, time, transformers, vector [details]
License BSD3
Author Christopher Chalmers
Category Graphics
Home page
Bug tracker
Source repository head: git clone
Uploaded Sun Nov 20 21:29:28 UTC 2016 by cchalmers
Updated Sun Nov 20 22:55:44 UTC 2016 by cchalmers to revision 1
Distributions NixOS:
Downloads 145 total (16 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for plots

Readme for plots-


Haddock Travis

plots is a plotting library based on diagrams.

Some sample plots:

Scatter plot


Bar plot


Heat map


There are many more plots to be added. There are also plans to support 3D plots. Issues and pull requests welcome.


There are several example plots in the examples/ directory. To build the examples, first ensure that you have stack installed, and that you have a stack.yaml file in this directory that contains the lines:

- '.'
- 'test'

(If you run the command stack init, stack will automatically generate the stack.yaml file with the appropriate packages.)

You can then build the examples using sh stack build stack exec RunExamples The RunExamples script will generate png files in the examples_output directory.

Note: The RunExamples script re-builds an example if the output file (examples_output/X.png) does not exist, or if the source file (examples/X.hs) has been modified since the last time the script was run.