metapost: Generate a MetaPost File

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate a MetaPost file from a MetaPost path.

Usage

1
metapost(x, file = "fig.mp", digits=2)

Arguments

x

A MetaPost path, as produced from knot etc.

file

The name of the file to produce. If NULL, no file is created.

digits

The number of decimal places to use when writing floating point values in MetaPost code.

Value

The MetaPost code is returned invisibly.

Author(s)

Paul Murrell

See Also

knot

Examples

1
2
3
p <- knot(0, 0) + dir(0) + dir(0) + knot(1, 1)
mpcode <- metapost(p, NULL)
mpcode

metapost documentation built on June 25, 2019, 1:02 a.m.