The diagrams package

[Tags: bsd3, library]

Diagrams is a full-featured framework and embedded domain-specific langauge 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 two different backends. A Haskell-native SVG backend (the diagrams-svg package) can be selected with -fsvg. This flag is enabled by default, so if you do not want the SVG backend, you must explicitly disable it with -f-svg. The SVG backend does not yet quite support all the features of the cairo backend: text alignment and embedded images are the two main missing features at this point, and of course it can only produce SVG images. It is, however, much easier to install, so it is the out-of-the-box default.

There is also a cairo backend (the diagrams-cairo package) which can be selected with the -fcairo flag. It is fully-featured and can produce PNG, PS, PDF, or SVG output; however, due to its dependencies it can be difficult to install on some platforms (notably OS X).

For more information, including a gallery of examples, tutorial, and user manual, see the diagrams website: http://projects.haskell.org/diagrams. For help, join the #diagrams IRC channel on Freenode or the mailing list: http://groups.google.com/group/diagrams-discuss.


[Skip to ReadMe]

Properties

Versions0.1, 0.2, 0.2.1, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.2, 0.2.2.1, 0.2.2.2, 0.2.2.3, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.1, 0.7.1.1, 1.0, 1.0.0.1, 1.1, 1.1.0.1, 1.2, 1.3
Change logNone available
Dependenciesdiagrams-contrib (==0.6.*), diagrams-core (==0.6.*), diagrams-lib (==0.6.*), diagrams-svg (==0.6.*) [details]
LicenseBSD3
AuthorBrent Yorgey
Maintainerdiagrams-discuss@googlegroups.com
CategoryGraphics
Home pagehttp://projects.haskell.org/diagrams
Bug trackerhttp://github.com/diagrams/diagrams/issues
Source repositoryhead: git clone git://github.com/diagrams/diagrams.git
UploadedWed Dec 12 02:58:29 UTC 2012 by BrentYorgey
DistributionsLTSHaskell:1.3, NixOS:1.3, Stackage:1.3
Downloads8465 total (457 in last 30 days)
Votes
1 []
StatusDocs not available [build log]
Successful builds reported [all 2 reports]

Modules

Flags

NameDescriptionDefaultType
cairoEnable the cairo backendDisabledManual
svgEnable the Haskell-native SVG backendEnabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for diagrams-0.6

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 two 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 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 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.