[metapost] Function Grapher

Troy Henderson thenders at gmail.com
Mon Oct 24 23:20:30 CEST 2011


> Could the MetaPost source file (.mp) be downloadable? I
> imagine it would be shorter than the MPS/EPS file, and
> might be interesting as well.

The option to download the MP (Source) is now available, but don't
expect it to be clean because in order to be "fast" the MetaPost file
consists of colored line segments in three (excluding the contour
plot) 2D graphs and in the 3D space curve graph.  The surface plotters
fill/draw 4 node closed paths.

In order to have "smooth" contours, the line segments are converted to
longer concatenated paths with .. between each node.  This is a little
slower, but gives a nice effect.

Troy


More information about the metapost mailing list