Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Embedded domain-specific language for declarative vector graphics (wrapper package)
Haskell
tag: v0.7

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.markdown
Setup.hs
diagrams.cabal

README.markdown

Build Status

diagrams is a full-featured framework and domain-specific langauge (embedded in Haskell) for creating declarative vector graphics and animations.

This package is just a convenient wrapper around the diagrams-core, diagrams-lib, and diagrams-contrib packages, so they can be installed with a single cabal install diagrams command.

The package also comes with flags to enable three different backends. The native SVG backend is enabled by the -fsvg flag and is enabled by default. If you don't want it, you must explicitly disable it with -f-svg.

The native postscript backend is disabled by default but can be enabled by the -fps flag.

The cairo/gtk backend is disabled by default but can be selected with the -fcairo flag.

Installation

cabal update && cabal install diagrams

or, to get the postscript backend in addition to the SVG backend:

cabal update && cabal install -fps diagrams

or, to get the cairo backend in addition to the SVG backend:

cabal update && cabal install gtk2hs-buildtools && cabal install -fcairo diagrams

Reporting bugs

Issue trackers for all diagrams-related repositories are hosted under the diagrams organization on github. If you know the specific package containing the bug, report it in the issue tracker specific to that package (for example, diagrams-lib). Otherwise, just report the issue in the issue tracker for the general diagrams repository.

Further reading

For more information, including a gallery of examples, tutorial, and user manual, see the diagrams website. For help, join the #diagrams IRC channel on Freenode or the mailing list.

Something went wrong with that request. Please try again.