diff options
author | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
commit | 78e6b19d4678a9d641c4afa4ca800288cfa0a9d5 (patch) | |
tree | ad774593055c02ade73402379b9df52568f6940f /info/drawing-with-metapost/src/plain-axes.mp | |
parent | b17717e3829bc08efb71ec2537d9d894c8b82d45 (diff) |
CTAN sync 202304150301
Diffstat (limited to 'info/drawing-with-metapost/src/plain-axes.mp')
-rw-r--r-- | info/drawing-with-metapost/src/plain-axes.mp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/info/drawing-with-metapost/src/plain-axes.mp b/info/drawing-with-metapost/src/plain-axes.mp new file mode 100644 index 0000000000..e535290d21 --- /dev/null +++ b/info/drawing-with-metapost/src/plain-axes.mp @@ -0,0 +1,17 @@ +\documentclass{standalone} +\usepackage{luamplib} +\begin{document} +\mplibtextextlabel{enable} +\begin{mplibcode} +beginfig(1); + path xx, yy; + xx = (left -- right) scaled 130; + yy = (down -- up) scaled 80; + drawarrow xx; + drawarrow yy; + label.rt("$x$", point 1 of xx); + label.top("$y$", point 1 of yy); +endfig; +\end{mplibcode} +\end{document} + |