plot: A plotting library, exportable as eps/pdf/svg/png or renderable with gtk
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
A package for creating plots, built on top of the Cairo rendering engine.
An ambitious attempt to replace gnuplot.
Monadic actions are used to configure a figure, which is a (rxc) array of subplots.
Each plot displays a graph with optional heading, labels, legend, and annotations.
The annotations themselves may be used to draw diagrams.
A figure is preprocessed in preparation for rendering by the Cairo renderer.
The Cairo library can be used to output the figure to PS, PDF, SVG, and PNG file formats,
or to display the figure in a GTK Drawable context. (see package 'plot-gtk').
The preprocessed figure can be embedded as an arbitrary Cairo render, including in a diagram
created with the diagram package. Conversely, arbitrary Cairo renders can be embedded in
the data region of a Figure
.
The data series are type Data.Packed.Vector from hmatrix, which, when hmatrix
is compiled with '-fvector', is a synonym for Data.Vector.Storable from the
vector package and are thus compatible with packages such as statistics.
The example in Graphics.Rendering.Plot can be viewed at
http://code.haskell.org/plot/examples/perturbed-sine.png
[
Skip to Readme]
Properties
Versions |
0.1, 0.1.1, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.1.2, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.2.4, 0.1.3.0, 0.1.3.1, 0.1.3.2, 0.1.3.4, 0.1.3.5, 0.1.4, 0.1.4.1, 0.1.4.2, 0.1.5, 0.1.5.1, 0.1.6, 0.1.7, 0.1.7.1, 0.1.8, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.3.1, 0.2.3.2, 0.2.3.3, 0.2.3.4, 0.2.3.5, 0.2.3.6, 0.2.3.7, 0.2.3.8, 0.2.3.9, 0.2.3.10, 0.2.3.11, 0.2.3.12, 0.2.3.12 |
Change log |
CHANGES |
Dependencies |
array (>0.5 && <0.6), base (>=4.9.0.0 && <5), cairo (>=0.13 && <0.14), colour (>=2.2.1 && <2.4), hmatrix (>=0.17 && <0.21), mtl (>2 && <3), pango (>=0.13 && <0.14), transformers (>0.5 && <0.7) [details] |
License |
BSD-3-Clause |
Copyright |
(c) A.V.H. McPhail 2010, 2012-2017, 2019, 2024 |
Author |
Vivian McPhail |
Maintainer |
haskell.vivian.mcphail <at> gmail <dot> com |
Category |
Graphics |
Home page |
http://github.com/amcphail/plot
|
Source repo |
head: git clone https://github.com/amcphail/plot |
Uploaded |
by VivianMcPhail at 2024-03-18T22:27:29Z |
Modules
- Graphics
- Rendering
- Graphics.Rendering.Plot
- Graphics.Rendering.Plot.Figure
- Graphics.Rendering.Plot.Figure.Simple
- Graphics.Rendering.Plot.Render
Downloads
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees
Readme for plot-0.2.3.12
[
back to package description]
THIS README COPIED FROM THE diagrams PACKAGE
Graphics.Rendering.Plot provides an embedded domain-specific
language (EDSL) for creating plots rendered with Cairo
For some examples of use, see http://code.haskell.org/plot/examples .
------------------------------------------------------------------------
To install the Plots library:
1. Get the dependencies
The plots library uses Haskell bindings to the Cairo vector
graphics library. In order to build the plots library, you
will first need the following:
* The Cairo library itself. This is probably available through
your system's package manager and may even already be installed.
On Ubuntu, for example, it is available from the 'libcairo'
package.
* The Haskell cairo bindings, which are packaged as part of
gtk2hs.
cabal install gtk2hs-buildtools
cabal install gtk
* The colour library, which is available from Hackage. If you use
the cabal-install build option described below, the colour
library will be downloaded and installed for you automatically.
2. Build
* Option 1: use cabal-install
If you have cabal-install, *after* installing gtk2hs, you can
install plots and the remaining dependencies with
cabal-install:
cabal install plot
Optionally, you can also pass options such as --user
--prefix=$HOME to install locally.
* Option 2: manual build
Once all the dependencies are built and installed, you can build
and install plots as follows:
runhaskell Setup.lhs configure --prefix=$HOME --user
runhaskell Setup.lhs build
runhaskell Setup.lhs install
(Optionally, you can omit the --prefix and --user arguments to the
configure step, and run the install step with 'sudo' in order to
install the library systemwide.)
3. Building Haddock documentation (recommended)
runhaskell Setup.lhs haddock
Once the documentation has been built, you can access it by
pointing your browser to dist/doc/html/plot/index.html.