| 1 |
% File: pictures.tex |
| 2 |
% A part of mfpic 1.10 2012/12/03 |
| 3 |
% |
| 4 |
\magnification=\magstep1 |
| 5 |
|
| 6 |
\newdimen\paperheight |
| 7 |
\newdimen\paperwidth |
| 8 |
%%!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 9 |
% adjust these to your liking: |
| 10 |
\paperheight 11truein |
| 11 |
\paperwidth 8.5truein |
| 12 |
|
| 13 |
% Default plainTeX margins |
| 14 |
\hsize \paperwidth |
| 15 |
\advance\hsize -2 truein |
| 16 |
\hoffset 0 truein |
| 17 |
% |
| 18 |
\vsize\paperheight |
| 19 |
\advance\vsize -2.1 truein |
| 20 |
\voffset 0 truein |
| 21 |
|
| 22 |
\input mfpic |
| 23 |
%% Comment this if you prefer metafont: |
| 24 |
\usemetapost |
| 25 |
\useraggedcaptions |
| 26 |
\ifx\pdfoutput\UndEfInEd |
| 27 |
\else |
| 28 |
\pdfpageheight=\paperheight |
| 29 |
\pdfpagewidth=\paperwidth |
| 30 |
\fi |
| 31 |
|
| 32 |
\opengraphsfile{pics} |
| 33 |
|
| 34 |
\mfpframesep0pt |
| 35 |
\headshape{1}{1}{true} |
| 36 |
|
| 37 |
\def\vs{\bigskip\filbreak} |
| 38 |
|
| 39 |
\mftitle{Commutative Diagram example.} |
| 40 |
|
| 41 |
% A-----D |
| 42 |
% |\ /| |
| 43 |
% | C-F | |
| 44 |
% |/ \| |
| 45 |
% B.....E |
| 46 |
|
| 47 |
\noindent |
| 48 |
\mfpframe |
| 49 |
\mfpic[12]{0}{10}{0}{10} |
| 50 |
\tlabeljustify{cc} |
| 51 |
\tcaption[2.0,1.0]{{\it Figure 1:} Commutative diagram example.} |
| 52 |
\tlabels{(1,9){A} |
| 53 |
(1,1){B} |
| 54 |
(3,5){C} |
| 55 |
(9,9){D} |
| 56 |
(9,1){E} |
| 57 |
(7,5){F}} |
| 58 |
\setrender{\arrow\draw\trimpath{6pt}} |
| 59 |
\lines{(1,9), (1,1)} % A -> B. |
| 60 |
\lines{(1,9), (3,5)} % A -> C. |
| 61 |
\lines{(3,5), (1,1)} % C -> B. |
| 62 |
\lines{(1,9), (9,9)} % A -> D. |
| 63 |
\lines{(9,9), (9,1)} % D -> E. |
| 64 |
\lines{(9,9), (7,5)} % D -> F. |
| 65 |
\lines{(7,5), (9,1)} % F -> E. |
| 66 |
\lines{(3,5), (7,5)} % C -> F. |
| 67 |
% B- - ->E : |
| 68 |
\arrow\arrow[b10pt]\reverse\arrow\dotted\trimpath{6pt}\lines{(1,1), (9,1)} |
| 69 |
\endmfpic |
| 70 |
\endmfpframe |
| 71 |
|
| 72 |
\vs |
| 73 |
|
| 74 |
\mftitle{Function Plot with Cartesian Axes.} |
| 75 |
|
| 76 |
\noindent |
| 77 |
\mfpframe |
| 78 |
\mfpic[20]{-3}{3}{-3}{3} |
| 79 |
\axes |
| 80 |
\function{-2,2,0.1}{((x**3)-x)/3} |
| 81 |
\tcaption{{\it Figure 2:} Function Plot with Cartesian Axes.} |
| 82 |
\endmfpic |
| 83 |
\endmfpframe |
| 84 |
|
| 85 |
\vs |
| 86 |
|
| 87 |
\mftitle{Parametric Function Plot, and Filled Circle.} |
| 88 |
|
| 89 |
\noindent |
| 90 |
\mfpframe |
| 91 |
\mfpic[30]{-1.5}{1.5}{-1}{1} |
| 92 |
\parafcn{0,6,0.1}{cosd(150t)*dir(90t)} |
| 93 |
\gfill\circle{(0,0),0.25} |
| 94 |
\tcaption{{\it Figure 3:} Parametric Function Plot, and |
| 95 |
Filled Circle.} |
| 96 |
\endmfpic |
| 97 |
\endmfpframe |
| 98 |
|
| 99 |
\vs |
| 100 |
|
| 101 |
\mftitle{Bar Graph.} |
| 102 |
|
| 103 |
\noindent |
| 104 |
\mfpframe |
| 105 |
\mfpic[20]{-0.5}{4}{-0.5}{4} |
| 106 |
\axes |
| 107 |
\shade\draw\rect{(0,0),(1,0.5)} |
| 108 |
\darkershade |
| 109 |
\shade\draw\rect{(1,0),(2,1)} |
| 110 |
\hatch\draw\rect{(2,0),(3,2)} |
| 111 |
\tcaption{{\it Figure 4:} Bar Graph.} |
| 112 |
\endmfpic |
| 113 |
\endmfpframe |
| 114 |
|
| 115 |
\vs |
| 116 |
|
| 117 |
\mftitle{Pie Chart.} |
| 118 |
|
| 119 |
\noindent |
| 120 |
\mfpframe |
| 121 |
\mfpic[30]{-1.3}{1.7}{-1}{1.1} |
| 122 |
\gfill\sector{(0.3,0.2), 1, 0,60} |
| 123 |
\shade\sector{(0,0), 1, 60, 105} |
| 124 |
\turtle{(0,0), \plr{(1, 105)}} |
| 125 |
\sector{(0,0), 1, 60, 360} |
| 126 |
\tcaption{{\it Figure 5:} Pie Chart.} |
| 127 |
\endmfpic |
| 128 |
\endmfpframe |
| 129 |
|
| 130 |
\noindent Unindented text here. |
| 131 |
|
| 132 |
\vs |
| 133 |
|
| 134 |
\mftitle{Circle with Arrow.} |
| 135 |
|
| 136 |
\noindent |
| 137 |
\mfpframe |
| 138 |
\mfpic[20]{-2}{2}{-1}{1} |
| 139 |
\arrow\circle{(0,0),1} |
| 140 |
\tcaption{{\it Figure 6:} Circle with Arrow.} |
| 141 |
\endmfpic |
| 142 |
\endmfpframe |
| 143 |
|
| 144 |
\vs |
| 145 |
|
| 146 |
\mftitle{Use of hatch, draw, lclosed, connect, curve, point, lines, |
| 147 |
dotted, reverse.} |
| 148 |
|
| 149 |
\noindent |
| 150 |
\mfpframe |
| 151 |
\mfpic[20]{-3}{3}{-3}{3} |
| 152 |
\hatch\draw\lclosed\connect |
| 153 |
\curve{(1,0), (1,0.5), (1,1), (0,1.5)} |
| 154 |
\point{(0,0)} |
| 155 |
\endconnect |
| 156 |
\lines{(-1,1), (-1,-1), (1,-1.5)} |
| 157 |
\point{(0,0)} |
| 158 |
\dotted\reverse\lines{(-2,2), (-2,-2), (2,-3)} |
| 159 |
\tcaption{{\it Figure 7:} Use of hatch, draw, lclosed, connect, |
| 160 |
curve, point, lines, dotted, reverse.} |
| 161 |
\endmfpic |
| 162 |
\endmfpframe |
| 163 |
|
| 164 |
\vs |
| 165 |
|
| 166 |
\mftitle{Simpler variant of the previous figure.} |
| 167 |
|
| 168 |
\noindent |
| 169 |
\mfpframe |
| 170 |
\mfpic[40]{-1}{1}{-1}{1} % Was `[20]'. |
| 171 |
\tcaption{{\it Figure 8:} Simpler variant of the previous figure.} |
| 172 |
\hatch\draw\lclosed\connect |
| 173 |
\curve{(1,0), (0.5,0.25), (0.5,0.5), (0,0.75)} |
| 174 |
\point{(0,0)} |
| 175 |
\endconnect |
| 176 |
\reverse\lines{(-0.5,0.5), (-0.5,-0.5), (0.5,-0.75)} |
| 177 |
\tcaption{{\it Figure 8:} Simpler variant of the previous figure.} |
| 178 |
\endmfpic |
| 179 |
\endmfpframe |
| 180 |
|
| 181 |
\vs |
| 182 |
|
| 183 |
\mftitle{Graph of data from file.} |
| 184 |
|
| 185 |
\noindent |
| 186 |
\mfpframe |
| 187 |
\mfpic[6]{-10}{10}{-2}{12} |
| 188 |
\makepercentother |
| 189 |
\using{#1% #2 #3}{(#1,#2)} |
| 190 |
\makepercentcomment |
| 191 |
\mfpdatacomment\# |
| 192 |
\fcncurve\datafile{data.dat} |
| 193 |
\axes |
| 194 |
\tcaption{{\it Figure 9:} Example of a graph drawn from data in a file} |
| 195 |
\endmfpic |
| 196 |
\endmfpframe |
| 197 |
|
| 198 |
\closegraphsfile |
| 199 |
|
| 200 |
\end |
| 201 |
|
| 202 |
%%% |
| 203 |
%%% EOF pictures.tex |
| 204 |
%%% |