summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/mfpic/pictures.tex
blob: 76be74689aa10fa44b2b951be3987241ca4035cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
%%% File: pictures.tex
%%% A part of mfpic 0.7a beta 2004/04/16
%%%
\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}
\tlabeljustify{cc}
\tcaption[2.0,1.0]{\raggedright{\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{\draw\arrow\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 :
%\dotted\arrow[r90][b-12pt]\arrow[b15pt]\reverse\arrow\lines{(1.5,1), (8.5,1)}
\dotted\arrow\arrow[b10pt]\reverse\arrow\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{\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

\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
\endmfpic
\endmfpframe

\closegraphsfile

\end

%%%
%%%  EOF  pictures.tex
%%%