Debian Codegraph @

texmf-dist/doc/latex/metaplot/examples/figure_1.mp

raw
1 % Figure 1 from _MetaPlot, MetaContour, and Other Collaborations
2 % with METAPOST_, preprint version, given at the Practical TeX 2004
3 % conference.
4
5 prologues :=0;
6
7 % cap1.mp is the output from the cap1.cc program.
8 input cap1
9
10 % Define pens, for convenience.
11 pen thickline; thickline := pencircle scaled 2pt;
12 pen thinline; thinline := pencircle scaled 1pt;
13 pen hairline; hairline := pencircle scaled 0.25pt;
14
15 beginfig(1)
16 pair contactpoint; contactpoint := ulcorner capillary scaled 0.5in;
17 pair rightend; rightend := (xpart(lrcorner capillary) * 0.5in, 0);
18 linecap := butt;
19 draw (capillary scaled 0.5in) withcolor (0.85,0.85,0.85);
20 drawarrow (0,-0.25in) -- (0,0.5in) withpen thinline;
21 label.top(btex $z$ etex,(0,0.5in));
22 drawarrow (0,0) -- (rightend + (0.1in,0)) withpen thinline;
23 label.rt(btex $y$ etex, (rightend + (0.1in,0)));
24 draw ((0,0) -- (0.24in, -0.24in)) shifted contactpoint withpen hairline;
25 label(btex $\theta$ etex, (contactpoint + (0.07in, -0.18in)));
26 endfig;
27
28 end
29