wumpus-core-0.37.0: Pure Haskell PostScript and SVG generation.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Core.OutputPostScript

Contents

Description

Output PostScript - either PostScript (PS) files or EPS (Encapusulated PostScript) files can be generated.

Synopsis

Output PostScript

writePS :: (Real u, Floating u, PSUnit u) => FilePath -> TextEncoder -> [Picture u] -> IO ()Source

Output a series of pictures to a Postscript file. Each picture will be printed on a separate page.

Generally an encoder should always support the principal encoders for the fonts used (e.g. Latin1) and the encoder for the Symbol font, as characters from the Symbol font may be used as decorations for plot marks, etc.

writeEPS :: (Real u, Floating u, PSUnit u) => FilePath -> TextEncoder -> Picture u -> IO ()Source

Output a picture to an EPS (Encapsulated PostScript) file. The .eps file can then be imported or embedded in another document.

Generally an encoder should always support the principal encoders for the fonts used (e.g. Latin1) and the encoder for the Symbol font, as characters from the Symbol font may be used as decorations for plot marks, etc.

writePS_latin1 :: (Real u, Floating u, PSUnit u) => FilePath -> [Picture u] -> IO ()Source

Version of writePS - using the default encoder which supports Latin1 and the Symbol font.

Generally an encoder should always support the principal encoder (e.g. Latin1) and the Symbol font, as characters from the Symbol font may be used as decorations for plot marks, etc.

writeEPS_latin1 :: (Real u, Floating u, PSUnit u) => FilePath -> Picture u -> IO ()Source

Version of writeEPS - using Latin1 encoding.