diff options
Diffstat (limited to 'Master/texmf-dist/metapost/metaplot')
-rw-r--r-- | Master/texmf-dist/metapost/metaplot/metaplot.mp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/metapost/metaplot/metaplot.mp b/Master/texmf-dist/metapost/metaplot/metaplot.mp index d26c938d6ce..3bd6219a35a 100644 --- a/Master/texmf-dist/metapost/metaplot/metaplot.mp +++ b/Master/texmf-dist/metapost/metaplot/metaplot.mp @@ -1,5 +1,5 @@ % METAPLOT: primary plot routines for the METAPLOT package. -% Copyright(C) 2004, Brooks Moses +% Copyright(C) 2004-2005, Brooks Moses % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -12,7 +12,7 @@ % % This work has the LPPL maintenance status "author-maintained". % -% Version 0.9. +% Version 0.91. % % The n < 1.0 release number indicates that this is a beta release; % the author at present makes no assurances that the command syntax @@ -20,7 +20,7 @@ % release. % % Bug reports, feature requests, and all other suggestions should -% be directed to Brooks Moses, bmoses@stanford.edu. +% be directed to Brooks Moses via metaplot@dpdx.net. % Load MetaPlot axes macros @@ -63,6 +63,15 @@ def plot_instantiate(suffix inst)(suffix plot_object) = % Pointer-function to plot_object's plots, scaled and positioned. vardef inst.plot(suffix name) = + begingroup + save xleft; save xright; save ybot; save ytop; + xleft = min(xpart(llcorner plot_object.name), 0.0); + xright = max(xpart(urcorner plot_object.name), 1.0); + ybot = min(ypart(llcorner plot_object.name), 0.0); + ytop = max(ypart(urcorner plot_object.name), 1.0); + setbounds plot_object.name to + (xleft,ybot)--(xright,ybot)--(xright,ytop)--(xleft,ytop)--cycle; + endgroup; plot_object.name xscaled inst.pagewidth yscaled inst.pageheight shifted inst.llft enddef; |