% Figures 8-9 from _MetaPlot, MetaContour, and Other Collaborations
% with METAPOST_, preprint version, given at the Practical TeX 2004
% conference.
prologues:=0;
input metaplot % MetaPlot macros
% mc2.mp is produced by the very pre-release version of metacontour
% that should be included with this file; the program consists of
% the files metacontour.cc, metacontour.h, cpoint.cc, cpoint.h,
% and metacontour_main.cc. There is no input file; the data to
% be plotted is generated within the program.
%
% Note that the resulting file is not in true "plot object" form;
% we need to manually clip it and define the plot scale here.
% This will, of course, be fixed in later versions of metacontour.
input mc2
clip contplotA.LinePlot to (0,0)--(0,1)--(1,1)--(1,0)--cycle;
clip contplotA.FillPlot to (0,0)--(0,1)--(1,1)--(1,0)--cycle;
clip contplotA.Grid to (0,0)--(0,1)--(1,1)--(1,0)--cycle;
% Figure 8: Sample graph created by MetaContour and MetaPlot,
% showing potential lines for a combination of a linear gradient
% and a point source, plotted on a polar grid.