Page MenuHomec4science

pictures.tex
No OneTemporary

File Metadata

Created
Tue, Feb 11, 04:33

pictures.tex

% File: pictures.tex
% A part of mfpic 1.10 2012/12/03
%
\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
%% Comment this if you prefer metafont:
\usemetapost
\useraggedcaptions
\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}
\tlabeljustify{cc}
\tcaption[2.0,1.0]{{\it Figure 1:} Commutative diagram example.}
\tlabels{(1,9){A}
(1,1){B}
(3,5){C}
(9,9){D}
(9,1){E}
(7,5){F}}
\setrender{\arrow\draw\trimpath{6pt}}
\lines{(1,9), (1,1)} % A -> B.
\lines{(1,9), (3,5)} % A -> C.
\lines{(3,5), (1,1)} % C -> B.
\lines{(1,9), (9,9)} % A -> D.
\lines{(9,9), (9,1)} % D -> E.
\lines{(9,9), (7,5)} % D -> F.
\lines{(7,5), (9,1)} % F -> E.
\lines{(3,5), (7,5)} % C -> F.
% B- - ->E :
\arrow\arrow[b10pt]\reverse\arrow\dotted\trimpath{6pt}\lines{(1,1), (9,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{{\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{{\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{{\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{{\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{{\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{{\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{{\it Figure 8:} Simpler variant of the previous figure.}
\endmfpic
\endmfpframe
\vs
\mftitle{Graph of data from file.}
\noindent
\mfpframe
\mfpic[6]{-10}{10}{-2}{12}
\makepercentother
\using{#1% #2 #3}{(#1,#2)}
\makepercentcomment
\mfpdatacomment\#
\fcncurve\datafile{data.dat}
\axes
\tcaption{{\it Figure 9:} Example of a graph drawn from data in a file}
\endmfpic
\endmfpframe
\closegraphsfile
\end
%%%
%%% EOF pictures.tex
%%%

Event Timeline