%%% File: pictures.tex %%% A part of mfpic 0.5.0 2001/10/30 %%% \magnification=\magstep1 \newdimen\paperheight \newdimen\paperwidth %%!!!!!!!!!!!!!!!!!!!!!!!!!!! % adjust these to your liking: \paperheight 11truein \paperwidth 8.5truein % Default plainTeX margins \hsize \paperwidth \advance\hsize -2 truein \hoffset 0 truein % \vsize\paperheight \advance\vsize -2.1 truein \voffset 0 truein \input mfpic %% Uncomment this if you prefer metapost... %\usemetapost \ifx\pdfoutput\UndEfInEd \else \pdfpageheight=\paperheight \pdfpagewidth=\paperwidth \fi \opengraphsfile{pics} \mfpframesep0pt \headshape{1}{1}{true} \def\vs{\bigskip\filbreak} \mftitle{Commutative Diagram example.} % A-----D % |\ /| % | C-F | % |/ \| % B- - -E \noindent \mfpframe \mfpic[12]{0}{10}{0}{10} \tcaption[2.0,1.0]{\raggedright{\it Figure 1:} Commutative diagram example.} \tlabeljustify{cc} \tlabels{(1,9){A} (1,1){B} (3,5){C} (9,9){D} (9,1){E} (7,5){F}} \arrow\lines{(1,8.5), (1,1.5)} % A -> B. \arrow\lines{(1.5,8.5), (2.5,5.5)} % A -> C. \arrow\lines{(2.5,4.5), (1.5,1.5)} % C -> B. \arrow\lines{(1.5,9), (8.5,9)} % A -> D. \arrow\lines{(9,8.5), (9,1.5)} % D -> E. \arrow\lines{(8.5,8.5), (7.5,5.5)} % D -> F. \arrow\lines{(7.5,4.5), (8.5,1.5)} % F -> E. \arrow\lines{(3.5,5), (6.5,5)} % C -> F. % B- - ->E : \dotted\arrow[r90][b-12pt]\arrow[b15pt]\reverse\arrow\lines{(1.5,1), (8.5,1)} \endmfpic% \endmfpframe \vs \mftitle{Function Plot with Cartesian Axes.} \noindent \mfpframe% \mfpic[20]{-3}{3}{-3}{3} \axes \function{-2,2,0.1}{((x**3)-x)/3} \tcaption{\raggedright{\it Figure 2:} Function Plot with Cartesian Axes.} \endmfpic% \endmfpframe \vs \mftitle{Parametric Function Plot, and Filled Circle.} \noindent \mfpframe \mfpic[30]{-1.5}{1.5}{-1}{1} \parafcn{0,6,0.1}{cosd(150t)*dir(90t)} \gfill\circle{(0,0),0.25} \tcaption{\raggedright{\it Figure 3:} Parametric Function Plot, and Filled Circle.} \endmfpic% \endmfpframe \vs \mftitle{Bar Graph.} \noindent \mfpframe \mfpic[20]{-0.5}{4}{-0.5}{4} \axes \shade\draw\rect{(0,0),(1,0.5)} \darkershade \shade\draw\rect{(1,0),(2,1)} \hatch\draw\rect{(2,0),(3,2)} \tcaption{{\it Figure 4:} Bar Graph.} \endmfpic% \endmfpframe \vs \mftitle{Pie Chart.} \noindent \mfpframe \mfpic[30]{-1.3}{1.7}{-1}{1.1} \gfill\sector{(0.3,0.2), 1, 0,60} \shade\sector{(0,0), 1, 60,105} \turtle{(0,0), \plr{(1,105)}} \sector{(0,0), 1, 60,360} \tcaption{\raggedright{\it Figure 5:} Pie Chart.} \endmfpic% \endmfpframe \noindent Unindented text here. \vs \mftitle{Circle with Arrow.} \noindent \mfpframe \mfpic[20]{-2}{2}{-1}{1} \arrow\circle{(0,0),1} \tcaption{\raggedright{\it Figure 6:} Circle with Arrow.} \endmfpic% \endmfpframe \vs \mftitle{Use of hatch, draw, lclosed, connect, curve, point, lines, dotted, reverse.} \noindent \mfpframe% \mfpic[20]{-3}{3}{-3}{3} \hatch\draw\lclosed\connect \curve{(1,0), (1,0.5), (1,1), (0,1.5)} \point{(0,0)} \endconnect \lines{(-1,1), (-1,-1), (1,-1.5)} \point{(0,0)} \dotted\reverse\lines{(-2,2), (-2,-2), (2,-3)} \tcaption{\rightskip= 0pt plus 3em {\it Figure 7:} Use of hatch, draw, lclosed, connect, curve, point, lines, dotted, reverse.} \endmfpic% \endmfpframe \vs \mftitle{Simpler variant of the previous figure.} \noindent \mfpframe \mfpic[40]{-1}{1}{-1}{1} % Was `[20]'. \tcaption{\raggedright{\it Figure 8:} Simpler variant of the previous figure.} \hatch\draw\lclosed\connect \curve{(1,0), (0.5,0.25), (0.5,0.5), (0,0.75)} \point{(0,0)} \endconnect \reverse\lines{(-0.5,0.5), (-0.5,-0.5), (0.5,-0.75)} \tcaption{\raggedright{\it Figure 8:} Simpler variant of the previous figure.} \endmfpic \endmfpframe \closegraphsfile \end %%% %%% EOF pictures.tex %%%