rubypost 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Tue, 03 Aug 2010 07:45:18 +1000
1
+ Fri, 17 Sep 2010 08:31:06 +1000
@@ -28,8 +28,8 @@
28
28
  <a href="classes/RubyPost/BaseGraphData.html#M000018">add_coords (RubyPost::BaseGraphData)</a><br />
29
29
  <a href="classes/RubyPost/Graph.html#M000083">add_data (RubyPost::Graph)</a><br />
30
30
  <a href="classes/RubyPost/Figure.html#M000143">add_drawable (RubyPost::Figure)</a><br />
31
- <a href="classes/RubyPost/Picture.html#M000174">add_drawable (RubyPost::Picture)</a><br />
32
- <a href="classes/RubyPost/File.html#M000161">add_figure (RubyPost::File)</a><br />
31
+ <a href="classes/RubyPost/Picture.html#M000175">add_drawable (RubyPost::Picture)</a><br />
32
+ <a href="classes/RubyPost/File.html#M000162">add_figure (RubyPost::File)</a><br />
33
33
  <a href="classes/RubyPost/Graph.html#M000085">add_graph_option (RubyPost::Graph)</a><br />
34
34
  <a href="classes/RubyPost/BaseGraphData.html#M000016">add_grid (RubyPost::BaseGraphData)</a><br />
35
35
  <a href="classes/RubyPost/Macros.html#M000152">add_input (RubyPost::Macros)</a><br />
@@ -55,117 +55,117 @@
55
55
  <a href="classes/RubyPost/BaseLabel.html#M000045">colour (RubyPost::BaseLabel)</a><br />
56
56
  <a href="classes/RubyPost/BaseDrawCommand.html#M000077">colour (RubyPost::BaseDrawCommand)</a><br />
57
57
  <a href="classes/RubyPost/ImpulsePlot.html#M000089">compile (RubyPost::ImpulsePlot)</a><br />
58
- <a href="classes/RubyPost/Picture.html#M000176">compile (RubyPost::Picture)</a><br />
58
+ <a href="classes/RubyPost/Picture.html#M000177">compile (RubyPost::Picture)</a><br />
59
59
  <a href="classes/RubyPost/GraphData.html#M000037">compile (RubyPost::GraphData)</a><br />
60
- <a href="classes/RubyPost/Coords.html#M000172">compile (RubyPost::Coords)</a><br />
60
+ <a href="classes/RubyPost/DotLabel.html#M000011">compile (RubyPost::DotLabel)</a><br />
61
61
  <a href="classes/RubyPost/Pen.html#M000039">compile (RubyPost::Pen)</a><br />
62
- <a href="classes/RubyPost/File.html#M000164">compile (RubyPost::File)</a><br />
62
+ <a href="classes/RubyPost/Coords.html#M000173">compile (RubyPost::Coords)</a><br />
63
+ <a href="classes/RubyPost/Draw.html#M000101">compile (RubyPost::Draw)</a><br />
64
+ <a href="classes/RubyPost/Pair.html#M000095">compile (RubyPost::Pair)</a><br />
65
+ <a href="classes/RubyPost/Translate.html#M000108">compile (RubyPost::Translate)</a><br />
66
+ <a href="classes/RubyPost/PicturePrecompiler.html#M000093">compile (RubyPost::PicturePrecompiler)</a><br />
67
+ <a href="classes/RubyPost/CurvedPlot.html#M000033">compile (RubyPost::CurvedPlot)</a><br />
68
+ <a href="classes/RubyPost/StemPlot.html#M000022">compile (RubyPost::StemPlot)</a><br />
69
+ <a href="classes/RubyPost/YLabel.html#M000109">compile (RubyPost::YLabel)</a><br />
70
+ <a href="classes/RubyPost/File.html#M000165">compile (RubyPost::File)</a><br />
71
+ <a href="classes/RubyPost/Label.html#M000035">compile (RubyPost::Label)</a><br />
72
+ <a href="classes/RubyPost/GraphFile.html#M000031">compile (RubyPost::GraphFile)</a><br />
73
+ <a href="classes/RubyPost/Circle.html#M000111">compile (RubyPost::Circle)</a><br />
63
74
  <a href="classes/Numeric.html#M000004">compile (Numeric)</a><br />
64
75
  <a href="classes/RubyPost/Scale.html#M000159">compile (RubyPost::Scale)</a><br />
65
76
  <a href="classes/RubyPost/Arrow.html#M000157">compile (RubyPost::Arrow)</a><br />
77
+ <a href="classes/RubyPost/Graph.html#M000087">compile (RubyPost::Graph)</a><br />
78
+ <a href="classes/RubyPost/LinePlot.html#M000025">compile (RubyPost::LinePlot)</a><br />
66
79
  <a href="classes/RubyPost/Range.html#M000155">compile (RubyPost::Range)</a><br />
67
- <a href="classes/RubyPost/CurvedPlot.html#M000033">compile (RubyPost::CurvedPlot)</a><br />
68
80
  <a href="classes/RubyPost/Macros.html#M000153">compile (RubyPost::Macros)</a><br />
81
+ <a href="classes/RubyPost/GraphTitle.html#M000029">compile (RubyPost::GraphTitle)</a><br />
82
+ <a href="classes/RubyPost/Path.html#M000118">compile (RubyPost::Path)</a><br />
69
83
  <a href="classes/RubyPost/Rotate.html#M000150">compile (RubyPost::Rotate)</a><br />
70
84
  <a href="classes/RubyPost/GraphLabel.html#M000147">compile (RubyPost::GraphLabel)</a><br />
85
+ <a href="classes/RubyPost/Colour.html#M000028">compile (RubyPost::Colour)</a><br />
86
+ <a href="classes/RubyPost/Clip.html#M000123">compile (RubyPost::Clip)</a><br />
87
+ <a href="classes/RubyPost/YLabelRight.html#M000065">compile (RubyPost::YLabelRight)</a><br />
71
88
  <a href="classes/RubyPost/XLabel.html#M000145">compile (RubyPost::XLabel)</a><br />
72
- <a href="classes/RubyPost/GraphFile.html#M000031">compile (RubyPost::GraphFile)</a><br />
89
+ <a href="classes/RubyPost/AutoGrid.html#M000067">compile (RubyPost::AutoGrid)</a><br />
73
90
  <a href="classes/RubyPost/Figure.html#M000144">compile (RubyPost::Figure)</a><br />
91
+ <a href="classes/RubyPost/Plot.html#M000069">compile (RubyPost::Plot)</a><br />
74
92
  <a href="classes/RubyPost/CustomOption.html#M000141">compile (RubyPost::CustomOption)</a><br />
93
+ <a href="classes/RubyPost/CustomDrawable.html#M000071">compile (RubyPost::CustomDrawable)</a><br />
94
+ <a href="classes/RubyPost/DoubleArrow.html#M000072">compile (RubyPost::DoubleArrow)</a><br />
75
95
  <a href="classes/RubyPost/Dashed.html#M000138">compile (RubyPost::Dashed)</a><br />
76
- <a href="classes/String.html#M000007">compile (String)</a><br />
77
96
  <a href="classes/RubyPost/Fill.html#M000124">compile (RubyPost::Fill)</a><br />
78
- <a href="classes/RubyPost/Clip.html#M000123">compile (RubyPost::Clip)</a><br />
79
- <a href="classes/RubyPost/Path.html#M000118">compile (RubyPost::Path)</a><br />
97
+ <a href="classes/String.html#M000007">compile (String)</a><br />
80
98
  <a href="classes/RubyPost/Object.html#M000010">compile (RubyPost::Object)</a><br />
81
- <a href="classes/RubyPost/GraphTitle.html#M000029">compile (RubyPost::GraphTitle)</a><br />
82
- <a href="classes/RubyPost/Circle.html#M000111">compile (RubyPost::Circle)</a><br />
83
- <a href="classes/RubyPost/YLabel.html#M000109">compile (RubyPost::YLabel)</a><br />
84
- <a href="classes/RubyPost/Translate.html#M000108">compile (RubyPost::Translate)</a><br />
85
- <a href="classes/RubyPost/Colour.html#M000028">compile (RubyPost::Colour)</a><br />
86
- <a href="classes/RubyPost/Draw.html#M000101">compile (RubyPost::Draw)</a><br />
87
- <a href="classes/RubyPost/YLabelRight.html#M000065">compile (RubyPost::YLabelRight)</a><br />
88
- <a href="classes/RubyPost/DotLabel.html#M000011">compile (RubyPost::DotLabel)</a><br />
89
- <a href="classes/RubyPost/AutoGrid.html#M000067">compile (RubyPost::AutoGrid)</a><br />
90
- <a href="classes/RubyPost/Pair.html#M000095">compile (RubyPost::Pair)</a><br />
91
- <a href="classes/RubyPost/Plot.html#M000069">compile (RubyPost::Plot)</a><br />
92
- <a href="classes/RubyPost/PicturePrecompiler.html#M000093">compile (RubyPost::PicturePrecompiler)</a><br />
93
- <a href="classes/RubyPost/LinePlot.html#M000025">compile (RubyPost::LinePlot)</a><br />
94
- <a href="classes/RubyPost/DoubleArrow.html#M000072">compile (RubyPost::DoubleArrow)</a><br />
95
- <a href="classes/RubyPost/StemPlot.html#M000022">compile (RubyPost::StemPlot)</a><br />
96
- <a href="classes/RubyPost/Label.html#M000035">compile (RubyPost::Label)</a><br />
97
- <a href="classes/RubyPost/Graph.html#M000087">compile (RubyPost::Graph)</a><br />
98
- <a href="classes/RubyPost/CustomDrawable.html#M000071">compile (RubyPost::CustomDrawable)</a><br />
99
- <a href="classes/RubyPost/BaseLabel.html#M000044">compile_options (RubyPost::BaseLabel)</a><br />
100
- <a href="classes/RubyPost/BaseDrawCommand.html#M000076">compile_options (RubyPost::BaseDrawCommand)</a><br />
101
99
  <a href="classes/RubyPost/Graph.html#M000086">compile_options (RubyPost::Graph)</a><br />
100
+ <a href="classes/RubyPost/BaseDrawCommand.html#M000076">compile_options (RubyPost::BaseDrawCommand)</a><br />
101
+ <a href="classes/RubyPost/BaseLabel.html#M000044">compile_options (RubyPost::BaseLabel)</a><br />
102
102
  <a href="classes/RubyPost/BaseGraphData.html#M000020">compile_post_commands (RubyPost::BaseGraphData)</a><br />
103
103
  <a href="classes/RubyPost/BaseGraphData.html#M000015">compile_pre_commands (RubyPost::BaseGraphData)</a><br />
104
- <a href="classes/RubyPost/File.html#M000163">compile_to_file (RubyPost::File)</a><br />
105
- <a href="classes/RubyPost/File.html#M000162">compile_to_string (RubyPost::File)</a><br />
104
+ <a href="classes/RubyPost/File.html#M000164">compile_to_file (RubyPost::File)</a><br />
105
+ <a href="classes/RubyPost/File.html#M000163">compile_to_string (RubyPost::File)</a><br />
106
106
  <a href="classes/RubyPost/LinePlot.html#M000026">compilewithscale (RubyPost::LinePlot)</a><br />
107
107
  <a href="classes/RubyPost/StemPlot.html#M000023">compilewithscale (RubyPost::StemPlot)</a><br />
108
- <a href="classes/RubyPost/CurvedPlot.html#M000034">compilewithscale (RubyPost::CurvedPlot)</a><br />
109
108
  <a href="classes/RubyPost/ImpulsePlot.html#M000090">compilewithscale (RubyPost::ImpulsePlot)</a><br />
109
+ <a href="classes/RubyPost/CurvedPlot.html#M000034">compilewithscale (RubyPost::CurvedPlot)</a><br />
110
110
  <a href="classes/RubyPost/Path.html#M000117">curved (RubyPost::Path)</a><br />
111
111
  <a href="classes/RubyPost/Dashed.html#M000135">evenly (RubyPost::Dashed)</a><br />
112
112
  <a href="classes/Numeric.html#M000002">inch (Numeric)</a><br />
113
113
  <a href="classes/RubyPost.html#M000009">latex (RubyPost)</a><br />
114
114
  <a href="classes/RubyPost/BaseLabel.html#M000055">left (RubyPost::BaseLabel)</a><br />
115
115
  <a href="classes/RubyPost/BaseLabel.html#M000056">lft (RubyPost::BaseLabel)</a><br />
116
- <a href="classes/RubyPost/Coords.html#M000169">linearlinear (RubyPost::Coords)</a><br />
117
- <a href="classes/RubyPost/Coords.html#M000170">linearlog (RubyPost::Coords)</a><br />
116
+ <a href="classes/RubyPost/Coords.html#M000170">linearlinear (RubyPost::Coords)</a><br />
117
+ <a href="classes/RubyPost/Coords.html#M000171">linearlog (RubyPost::Coords)</a><br />
118
118
  <a href="classes/RubyPost/BaseLabel.html#M000060">llft (RubyPost::BaseLabel)</a><br />
119
- <a href="classes/RubyPost/Coords.html#M000171">loglinear (RubyPost::Coords)</a><br />
120
- <a href="classes/RubyPost/Coords.html#M000168">loglog (RubyPost::Coords)</a><br />
119
+ <a href="classes/RubyPost/Coords.html#M000172">loglinear (RubyPost::Coords)</a><br />
120
+ <a href="classes/RubyPost/Coords.html#M000169">loglog (RubyPost::Coords)</a><br />
121
121
  <a href="classes/RubyPost/BaseLabel.html#M000064">lrt (RubyPost::BaseLabel)</a><br />
122
- <a href="classes/RubyPost/BaseLabel.html#M000040">new (RubyPost::BaseLabel)</a><br />
123
- <a href="classes/RubyPost/BaseGraphData.html#M000012">new (RubyPost::BaseGraphData)</a><br />
124
- <a href="classes/RubyPost/AbstractPlot.html#M000102">new (RubyPost::AbstractPlot)</a><br />
122
+ <a href="classes/RubyPost/Figure.html#M000142">new (RubyPost::Figure)</a><br />
125
123
  <a href="classes/RubyPost/StemPlot.html#M000021">new (RubyPost::StemPlot)</a><br />
126
- <a href="classes/RubyPost/Plot.html#M000068">new (RubyPost::Plot)</a><br />
127
- <a href="classes/RubyPost/Coords.html#M000167">new (RubyPost::Coords)</a><br />
128
- <a href="classes/RubyPost/AutoGrid.html#M000066">new (RubyPost::AutoGrid)</a><br />
124
+ <a href="classes/RubyPost/AbstractPlot.html#M000102">new (RubyPost::AbstractPlot)</a><br />
125
+ <a href="classes/RubyPost/GraphData.html#M000036">new (RubyPost::GraphData)</a><br />
126
+ <a href="classes/RubyPost/Pen.html#M000038">new (RubyPost::Pen)</a><br />
127
+ <a href="classes/RubyPost/Picture.html#M000174">new (RubyPost::Picture)</a><br />
128
+ <a href="classes/RubyPost/BaseLabel.html#M000040">new (RubyPost::BaseLabel)</a><br />
129
129
  <a href="classes/RubyPost/Translate.html#M000107">new (RubyPost::Translate)</a><br />
130
130
  <a href="classes/RubyPost/Pair.html#M000094">new (RubyPost::Pair)</a><br />
131
- <a href="classes/RubyPost/CustomDrawable.html#M000070">new (RubyPost::CustomDrawable)</a><br />
132
- <a href="classes/RubyPost/Circle.html#M000110">new (RubyPost::Circle)</a><br />
133
- <a href="classes/RubyPost/BaseDrawCommand.html#M000073">new (RubyPost::BaseDrawCommand)</a><br />
134
- <a href="classes/RubyPost/Path.html#M000112">new (RubyPost::Path)</a><br />
135
131
  <a href="classes/RubyPost/PicturePrecompiler.html#M000091">new (RubyPost::PicturePrecompiler)</a><br />
136
- <a href="classes/RubyPost/Colour.html#M000027">new (RubyPost::Colour)</a><br />
137
- <a href="classes/RubyPost/File.html#M000160">new (RubyPost::File)</a><br />
138
- <a href="classes/RubyPost/Scale.html#M000158">new (RubyPost::Scale)</a><br />
132
+ <a href="classes/RubyPost/Circle.html#M000110">new (RubyPost::Circle)</a><br />
139
133
  <a href="classes/RubyPost/ImpulsePlot.html#M000088">new (RubyPost::ImpulsePlot)</a><br />
140
- <a href="classes/RubyPost/Square.html#M000156">new (RubyPost::Square)</a><br />
134
+ <a href="classes/RubyPost/Path.html#M000112">new (RubyPost::Path)</a><br />
135
+ <a href="classes/RubyPost/CurvedPlot.html#M000032">new (RubyPost::CurvedPlot)</a><br />
141
136
  <a href="classes/RubyPost/LinePlot.html#M000024">new (RubyPost::LinePlot)</a><br />
137
+ <a href="classes/RubyPost/Coords.html#M000168">new (RubyPost::Coords)</a><br />
138
+ <a href="classes/RubyPost/GraphFile.html#M000030">new (RubyPost::GraphFile)</a><br />
139
+ <a href="classes/RubyPost/Graph.html#M000082">new (RubyPost::Graph)</a><br />
140
+ <a href="classes/RubyPost/File.html#M000160">new (RubyPost::File)</a><br />
141
+ <a href="classes/RubyPost/Colour.html#M000027">new (RubyPost::Colour)</a><br />
142
142
  <a href="classes/RubyPost/Clip.html#M000120">new (RubyPost::Clip)</a><br />
143
+ <a href="classes/RubyPost/Square.html#M000156">new (RubyPost::Square)</a><br />
143
144
  <a href="classes/RubyPost/Range.html#M000154">new (RubyPost::Range)</a><br />
144
- <a href="classes/RubyPost/CurvedPlot.html#M000032">new (RubyPost::CurvedPlot)</a><br />
145
- <a href="classes/RubyPost/Graph.html#M000082">new (RubyPost::Graph)</a><br />
146
- <a href="classes/RubyPost/Pen.html#M000038">new (RubyPost::Pen)</a><br />
147
- <a href="classes/RubyPost/SimplePlot.html#M000125">new (RubyPost::SimplePlot)</a><br />
148
145
  <a href="classes/RubyPost/Macros.html#M000151">new (RubyPost::Macros)</a><br />
149
- <a href="classes/RubyPost/Picture.html#M000173">new (RubyPost::Picture)</a><br />
150
146
  <a href="classes/RubyPost/Rotate.html#M000148">new (RubyPost::Rotate)</a><br />
147
+ <a href="classes/RubyPost/SimplePlot.html#M000125">new (RubyPost::SimplePlot)</a><br />
151
148
  <a href="classes/RubyPost/GraphLabel.html#M000146">new (RubyPost::GraphLabel)</a><br />
152
- <a href="classes/RubyPost/GraphFile.html#M000030">new (RubyPost::GraphFile)</a><br />
153
- <a href="classes/RubyPost/Figure.html#M000142">new (RubyPost::Figure)</a><br />
149
+ <a href="classes/RubyPost/AutoGrid.html#M000066">new (RubyPost::AutoGrid)</a><br />
150
+ <a href="classes/RubyPost/Plot.html#M000068">new (RubyPost::Plot)</a><br />
151
+ <a href="classes/RubyPost/BaseGraphData.html#M000012">new (RubyPost::BaseGraphData)</a><br />
152
+ <a href="classes/RubyPost/CustomDrawable.html#M000070">new (RubyPost::CustomDrawable)</a><br />
154
153
  <a href="classes/RubyPost/CustomOption.html#M000140">new (RubyPost::CustomOption)</a><br />
155
154
  <a href="classes/RubyPost/CustomOption.html#M000139">new (RubyPost::CustomOption)</a><br />
155
+ <a href="classes/RubyPost/BaseDrawCommand.html#M000073">new (RubyPost::BaseDrawCommand)</a><br />
156
156
  <a href="classes/RubyPost/Dashed.html#M000134">new (RubyPost::Dashed)</a><br />
157
- <a href="classes/RubyPost/GraphData.html#M000036">new (RubyPost::GraphData)</a><br />
157
+ <a href="classes/RubyPost/Scale.html#M000158">new (RubyPost::Scale)</a><br />
158
158
  <a href="classes/RubyPost.html#M000008">numbers_to_letters (RubyPost)</a><br />
159
+ <a href="classes/RubyPost/Picture.html#M000176">precompile (RubyPost::Picture)</a><br />
159
160
  <a href="classes/RubyPost/SimplePlot.html#M000133">precompile (RubyPost::SimplePlot)</a><br />
160
- <a href="classes/RubyPost/Picture.html#M000175">precompile (RubyPost::Picture)</a><br />
161
161
  <a href="classes/RubyPost/Rotate.html#M000149">radians= (RubyPost::Rotate)</a><br />
162
162
  <a href="classes/RubyPost/Path.html#M000115">reverse (RubyPost::Path)</a><br />
163
163
  <a href="classes/RubyPost/BaseLabel.html#M000053">right (RubyPost::BaseLabel)</a><br />
164
- <a href="classes/RubyPost/BaseDrawCommand.html#M000081">rotate (RubyPost::BaseDrawCommand)</a><br />
165
164
  <a href="classes/RubyPost/BaseLabel.html#M000049">rotate (RubyPost::BaseLabel)</a><br />
165
+ <a href="classes/RubyPost/BaseDrawCommand.html#M000081">rotate (RubyPost::BaseDrawCommand)</a><br />
166
166
  <a href="classes/RubyPost/BaseLabel.html#M000054">rt (RubyPost::BaseLabel)</a><br />
167
- <a href="classes/RubyPost/BaseDrawCommand.html#M000079">scale (RubyPost::BaseDrawCommand)</a><br />
168
167
  <a href="classes/RubyPost/BaseLabel.html#M000047">scale (RubyPost::BaseLabel)</a><br />
168
+ <a href="classes/RubyPost/BaseDrawCommand.html#M000079">scale (RubyPost::BaseDrawCommand)</a><br />
169
169
  <a href="classes/RubyPost/BaseDrawCommand.html#M000075">set_drawable (RubyPost::BaseDrawCommand)</a><br />
170
170
  <a href="classes/RubyPost/Clip.html#M000121">set_path (RubyPost::Clip)</a><br />
171
171
  <a href="classes/RubyPost/Clip.html#M000122">set_picture (RubyPost::Clip)</a><br />
@@ -174,19 +174,20 @@
174
174
  <a href="classes/RubyPost/BaseLabel.html#M000042">set_text (RubyPost::BaseLabel)</a><br />
175
175
  <a href="classes/RubyPost/SimplePlot.html#M000128">setaxes (RubyPost::SimplePlot)</a><br />
176
176
  <a href="classes/RubyPost/SimplePlot.html#M000127">setaxesfor (RubyPost::SimplePlot)</a><br />
177
+ <a href="classes/RubyPost/File.html#M000161">startstring (RubyPost::File)</a><br />
177
178
  <a href="classes/RubyPost/Path.html#M000116">straight (RubyPost::Path)</a><br />
178
179
  <a href="classes/Float.html#M000006">to_s (Float)</a><br />
179
180
  <a href="classes/Float.html#M000005">to_s (Float)</a><br />
180
181
  <a href="classes/RubyPost/BaseLabel.html#M000052">top (RubyPost::BaseLabel)</a><br />
181
182
  <a href="classes/RubyPost/BaseLabel.html#M000057">top_left (RubyPost::BaseLabel)</a><br />
182
183
  <a href="classes/RubyPost/BaseLabel.html#M000061">top_right (RubyPost::BaseLabel)</a><br />
183
- <a href="classes/RubyPost/BaseLabel.html#M000048">translate (RubyPost::BaseLabel)</a><br />
184
184
  <a href="classes/RubyPost/BaseDrawCommand.html#M000080">translate (RubyPost::BaseDrawCommand)</a><br />
185
+ <a href="classes/RubyPost/BaseLabel.html#M000048">translate (RubyPost::BaseLabel)</a><br />
185
186
  <a href="classes/RubyPost/Dashed.html#M000137">type (RubyPost::Dashed)</a><br />
186
187
  <a href="classes/RubyPost/BaseLabel.html#M000058">ulft (RubyPost::BaseLabel)</a><br />
187
188
  <a href="classes/RubyPost/BaseLabel.html#M000062">urt (RubyPost::BaseLabel)</a><br />
188
- <a href="classes/RubyPost/File.html#M000165">view (RubyPost::File)</a><br />
189
- <a href="classes/RubyPost/File.html#M000166">view_dvi (RubyPost::File)</a><br />
189
+ <a href="classes/RubyPost/File.html#M000166">view (RubyPost::File)</a><br />
190
+ <a href="classes/RubyPost/File.html#M000167">view_dvi (RubyPost::File)</a><br />
190
191
  <a href="classes/RubyPost/Dashed.html#M000136">withdots (RubyPost::Dashed)</a><br />
191
192
  <a href="classes/RubyPost/SimplePlot.html#M000131">xlabel (RubyPost::SimplePlot)</a><br />
192
193
  <a href="classes/RubyPost/AbstractPlot.html#M000103">xmax (RubyPost::AbstractPlot)</a><br />
data/lib/drawable.rb CHANGED
@@ -14,7 +14,9 @@ module RubyPost
14
14
  #numbers in names
15
15
  def numbers_to_letters(n)
16
16
  s = n.to_s
17
- s.bytes.to_a.map{ |b| (b + 20).chr }.to_s
17
+ str = ''
18
+ s.bytes.to_a.each{ |b| str = str + (b + 20).chr }
19
+ return str
18
20
  end
19
21
 
20
22
  #wrapper for the metapost picture
data/lib/objects.rb CHANGED
@@ -77,6 +77,11 @@ module RubyPost
77
77
  @@start_of_file = <<END_OF_STRING
78
78
  prologues := 2;
79
79
  filenametemplate "%j-%c.mps";
80
+ verbatimtex
81
+ %&latex
82
+ \\documentclass{minimal}
83
+ \\begin{document}
84
+ etex
80
85
  END_OF_STRING
81
86
 
82
87
  #input 'sarith' so that metapost can read exponential notation
@@ -84,6 +89,19 @@ END_OF_STRING
84
89
  @figures = Array.new
85
90
  @fname = fname
86
91
  end
92
+
93
+ #set a string at the very start of the file. For example, prologues
94
+ #latex setup etc. The default string is: <br>
95
+ #prologues := 2;<br>
96
+ #filenametemplate "%j-%c.mps";<br>
97
+ #verbatimtex<br>
98
+ #%&latex<br>
99
+ #\documentclass{minimal}<br>
100
+ #\begin{document}<br>
101
+ #etex<br>
102
+ def startstring(str)
103
+ @@start_of_file = str
104
+ end
87
105
 
88
106
  #add a new figure to this mpost file
89
107
  def add_figure(f)
@@ -118,7 +136,7 @@ END_OF_STRING
118
136
  #and copmiles the metapost commands if mpost is in the path
119
137
  def compile(fname=@fname)
120
138
  compile_to_file(fname)
121
- system('mpost -quiet ' + fname + '.mp')
139
+ system('mpost ' + fname + '.mp')
122
140
  end
123
141
 
124
142
  #default view command is view_dvi
data/lib/rubypost.rb CHANGED
@@ -4,4 +4,5 @@ require 'drawable'
4
4
  require 'draw'
5
5
  require 'options'
6
6
  require 'label'
7
- require 'graph'
7
+ require 'graph'
8
+ require 'simpleplot'
data/lib/simpleplot.rb CHANGED
@@ -4,6 +4,8 @@ module RubyPost
4
4
 
5
5
  class SimplePlot < Picture
6
6
 
7
+ attr_writer :drawxaxis, :drawyaxis
8
+
7
9
  #initialise with height and width in centemeters
8
10
  def initialize(width, height)
9
11
  super()
@@ -16,6 +18,8 @@ module RubyPost
16
18
  @ytickstr = "\n"
17
19
  @xlabel = "\n"
18
20
  @ylabel = "\n"
21
+ @drawxaxis = true
22
+ @drawyaxis = true
19
23
  end
20
24
 
21
25
  #the scale factors are decided by the very last plot you add
@@ -47,10 +51,10 @@ module RubyPost
47
51
  #and negative for on the top.
48
52
  def xticks(x, label=nil, func = lambda {|v| 1} )
49
53
  if(label==nil) then label = x.map{|v| latex(v.to_s) } end
50
- lplace = x.map{ |v| if(func.call(v) < 0) then 'urt' else 'lrt' end }
54
+ lplace = x.map{ |v| if(func.call(v) < 0) then 'top' else 'bot' end }
51
55
  @xtickstr = ''
52
56
  x.each_index{ |i|
53
- @xtickstr = @xtickstr + 'draw ((0,-0.1cm)--(0,0.1cm)) shifted (' + (x[i]*@xscale).to_s + "cm, 0);\n"
57
+ @xtickstr = @xtickstr + 'draw ((0,-0.05cm)--(0,0.05cm)) shifted (' + (x[i]*@xscale).to_s + "cm, 0);\n"
54
58
  @xtickstr = @xtickstr + 'label.' + lplace[i].to_s + '(' + label[i] + ' ,(' + (x[i]*@xscale).to_s + "cm, 0));\n"
55
59
  }
56
60
  end
@@ -60,7 +64,7 @@ module RubyPost
60
64
  if(label==nil) then label = y.map{|v| latex(v.to_s) } end
61
65
  @ytickstr = ''
62
66
  y.each_index{ |i|
63
- @ytickstr = @ytickstr + 'draw ((-0.1.cm,0)--(0.1cm,0)) shifted (0,' + (y[i]*@yscale).to_s + "cm);\n"
67
+ @ytickstr = @ytickstr + 'draw ((-0.05cm,0)--(0.05cm,0)) shifted (0,' + (y[i]*@yscale).to_s + "cm);\n"
64
68
  @ytickstr = @ytickstr + 'label.rt(' + label[i] + ' ,(0,' + (y[i]*@yscale).to_s + "cm));\n"
65
69
  }
66
70
  end
@@ -78,8 +82,8 @@ module RubyPost
78
82
 
79
83
  #draw the axes
80
84
  str = str + "\n%draw the axes\n"
81
- str = str + 'draw ((' + (@xscale*@xmax + 0.6).to_s + 'cm,0)--('+ (@xscale*@xmin - 0.3).to_s + "cm,0));\n"
82
- str = str + 'draw ((0, ' + (@yscale*@ymin - 0.3).to_s + 'cm)--(0, ' + (@yscale*@ymax + 0.6).to_s + "cm));\n"
85
+ str = str + 'draw ((' + (@xscale*@xmax + 0.6).to_s + 'cm,0)--('+ (@xscale*@xmin - 0.3).to_s + "cm,0));\n" if (@drawxaxis)
86
+ str = str + 'draw ((0, ' + (@yscale*@ymin).to_s + 'cm)--(0, ' + (@yscale*@ymax + 0.6).to_s + "cm));\n" if (@drawyaxis)
83
87
 
84
88
  str = str + "\n%draw xticks\n"
85
89
  str = str + @xtickstr
@@ -93,8 +97,6 @@ module RubyPost
93
97
 
94
98
  #draw each plot componenet.
95
99
  @plot_array.each{|p|
96
- puts p.class
97
- puts p.ymax
98
100
  str = str + p.compilewithscale(@xscale, @yscale) }
99
101
 
100
102
  str = str + @name + " := currentpicture; currentpicture := " + @@org_picture + ";\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robby McKilliam
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-03 00:00:00 +10:00
12
+ date: 2010-09-17 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,11 +22,6 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - README
24
24
  files:
25
- - tests/testsimpleplot-1.mps
26
- - tests/testsimpleplot-2.mps
27
- - tests/testsimpleplot.log
28
- - tests/testsimpleplot.mp
29
- - tests/testsimpleplot.mpx
30
25
  - tests/test_circle.rb
31
26
  - tests/test_clip.rb
32
27
  - tests/test_graph.rb
@@ -1,33 +0,0 @@
1
- %!PS-Adobe-3.0 EPSF-3.0
2
- %%BoundingBox: -86 -1 86 256
3
- %%HiResBoundingBox: -85.28935 -0.25 85.28935 255.36806
4
- %%Creator: MetaPost 1.208
5
- %%CreationDate: 2010.08.02:2217
6
- %%Pages: 1
7
- %%DocumentResources: procset mpost-minimal
8
- %%DocumentSuppliedResources: procset mpost-minimal
9
- %%EndComments
10
- %%BeginProlog
11
- %%BeginResource: procset mpost-minimal
12
- /bd{bind def}bind def/fshow {exch findfont exch scalefont setfont show}bd
13
- /fcp{findfont dup length dict begin{1 index/FID ne{def}{pop pop}ifelse}forall}bd
14
- /fmc{FontMatrix dup length array copy dup dup}bd/fmd{/FontMatrix exch def}bd
15
- /Amul{4 -1 roll exch mul 1000 div}bd/ExtendFont{fmc 0 get Amul 0 exch put fmd}bd
16
- /ScaleFont{dup fmc 0 get Amul 0 exch put dup dup 3 get Amul 3 exch put fmd}bd
17
- /SlantFont{fmc 2 get dup 0 eq{pop 1}if Amul FontMatrix 0 get mul 2 exch put fmd}bd
18
- %%EndResource
19
- %%EndProlog
20
- %%BeginSetup
21
- %%EndSetup
22
- %%Page: 1 1
23
- 1 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop
24
- [] 0 setdash 1 setlinecap 1 setlinejoin 10 setmiterlimit
25
- newpath -85.03935 255.11806 moveto
26
- -79.06273 207.2454 -69.58858 159.87465 -56.6929 113.3858 curveto
27
- -48.70035 84.57266 -39.40112 56.13019 -28.34645 28.34645 curveto
28
- -22.77745 14.34987 -14.41289 0 0 0 curveto
29
- 14.41289 0 22.77745 14.34987 28.34645 28.34645 curveto
30
- 39.40111 56.13019 48.70035 84.57266 56.6929 113.3858 curveto
31
- 69.58858 159.87465 79.06273 207.2454 85.03935 255.11806 curveto stroke
32
- showpage
33
- %%EOF
@@ -1,238 +0,0 @@
1
- %!PS-Adobe-3.0 EPSF-3.0
2
- %%BoundingBox: -151 -9 161 164
3
- %%HiResBoundingBox: -150.48628 -8.75403 160.67749 163.72165
4
- %%Creator: MetaPost 1.208
5
- %%CreationDate: 2010.08.02:2217
6
- %%Pages: 1
7
- %%DocumentResources: procset mpost-minimal
8
- %%+ font CMR10
9
- %%DocumentSuppliedResources: procset mpost-minimal
10
- %%DocumentNeededResources: font CMR10
11
- %%IncludeResource: font CMR10
12
- %%EndComments
13
- %%BeginProlog
14
- %%BeginResource: procset mpost-minimal
15
- /bd{bind def}bind def/fshow {exch findfont exch scalefont setfont show}bd
16
- /fcp{findfont dup length dict begin{1 index/FID ne{def}{pop pop}ifelse}forall}bd
17
- /fmc{FontMatrix dup length array copy dup dup}bd/fmd{/FontMatrix exch def}bd
18
- /Amul{4 -1 roll exch mul 1000 div}bd/ExtendFont{fmc 0 get Amul 0 exch put fmd}bd
19
- /ScaleFont{dup fmc 0 get Amul 0 exch put dup dup 3 get Amul 3 exch put fmd}bd
20
- /SlantFont{fmc 2 get dup 0 eq{pop 1}if Amul FontMatrix 0 get mul 2 exch put fmd}bd
21
- %%EndResource
22
- %%EndProlog
23
- %%BeginSetup
24
- /cmr10 /CMR10 def
25
- %%EndSetup
26
- %%Page: 1 1
27
- 0 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop
28
- [] 0 setdash 1 setlinecap 1 setlinejoin 10 setmiterlimit
29
- newpath 158.7403 0 moveto
30
- -150.23628 0 lineto stroke
31
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
32
- newpath 0 -8.50403 moveto
33
- 0 158.7403 lineto stroke
34
- newpath -141.73225 -2.83482 moveto
35
- -141.73225 2.83482 lineto stroke
36
- -139.63226 -8.52039 moveto
37
- (-3) cmr10 9.96265 fshow
38
- newpath -94.48802 -2.83482 moveto
39
- -94.48802 2.83482 lineto stroke
40
- -92.38803 -8.52039 moveto
41
- (-2) cmr10 9.96265 fshow
42
- newpath -47.24423 -2.83482 moveto
43
- -47.24423 2.83482 lineto stroke
44
- -45.14424 -8.52039 moveto
45
- (-1) cmr10 9.96265 fshow
46
- newpath 0 -2.83482 moveto
47
- 0 2.83482 lineto stroke
48
- 2.09999 -8.52039 moveto
49
- (0) cmr10 9.96265 fshow
50
- newpath 47.24423 -2.83482 moveto
51
- 47.24423 2.83482 lineto stroke
52
- 49.34422 -8.52039 moveto
53
- (1) cmr10 9.96265 fshow
54
- newpath 94.48802 -2.83482 moveto
55
- 94.48802 2.83482 lineto stroke
56
- 96.58801 -8.52039 moveto
57
- (2) cmr10 9.96265 fshow
58
- newpath 141.73225 -2.83482 moveto
59
- 141.73225 2.83482 lineto stroke
60
- 143.83224 -8.52039 moveto
61
- (3) cmr10 9.96265 fshow
62
- 0 0.5 dtransform truncate idtransform setlinewidth pop
63
- newpath -2.83482 47.24423 moveto
64
- 2.83482 47.24423 lineto stroke
65
- 3 44.03403 moveto
66
- (3) cmr10 9.96265 fshow
67
- newpath -2.83482 94.48802 moveto
68
- 2.83482 94.48802 lineto stroke
69
- 3 91.27782 moveto
70
- (6) cmr10 9.96265 fshow
71
- newpath -2.83482 141.73225 moveto
72
- 2.83482 141.73225 lineto stroke
73
- 3 138.52205 moveto
74
- (9) cmr10 9.96265 fshow
75
- 156.80309 3 moveto
76
- (t) cmr10 9.96265 fshow
77
- 3 156.24965 moveto
78
- (X\(t\)) cmr10 9.96265 fshow
79
- 1 0 0 setrgbcolor
80
- newpath -141.73225 141.73225 moveto
81
- -128.78806 113.90198 -112.95288 87.51018 -94.48802 62.99231 curveto
82
- -80.99356 45.0742 -65.99892 28.09071 -47.24423 15.74808 curveto
83
- -33.07912 6.42587 -16.96332 0 0 0 curveto
84
- 16.96332 0 33.07912 6.42587 47.24423 15.74808 curveto
85
- 65.99892 28.09071 80.99356 45.0742 94.48802 62.99231 curveto
86
- 112.95288 87.51018 128.78804 113.90198 141.73225 141.73225 curveto stroke
87
- newpath -141.73225 141.73225 moveto
88
- -94.48802 62.99231 lineto
89
- -47.24423 15.74808 lineto
90
- 0 0 lineto
91
- 47.24423 15.74808 lineto
92
- 94.48802 62.99231 lineto
93
- 141.73225 141.73225 lineto stroke
94
- 0 1 0 setrgbcolor 0.5
95
- 0 dtransform exch truncate exch idtransform pop setlinewidth
96
- newpath -141.73225 0 moveto
97
- -141.73225 141.73225 lineto stroke
98
- 0 0.5 dtransform truncate idtransform setlinewidth pop
99
- newpath -140.20113 138.03589 moveto
100
- -141.73225 141.73225 lineto
101
- -143.26338 138.03589 lineto
102
- closepath
103
- gsave fill grestore stroke
104
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
105
- newpath -94.48802 0 moveto
106
- -94.48802 62.99231 lineto stroke
107
- 0 0.5 dtransform truncate idtransform setlinewidth pop
108
- newpath -92.95709 59.2964 moveto
109
- -94.48802 62.99231 lineto
110
- -96.01895 59.2964 lineto
111
- closepath
112
- gsave fill grestore stroke
113
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
114
- newpath -47.24423 0 moveto
115
- -47.24423 15.74808 lineto stroke
116
- 0 0.5 dtransform truncate idtransform setlinewidth pop
117
- newpath -45.71347 12.0526 moveto
118
- -47.24423 15.74808 lineto
119
- -48.775 12.0526 lineto
120
- closepath
121
- gsave fill grestore stroke
122
- newpath 0 0 moveto
123
- 0 0 lineto stroke
124
- newpath 0 0 moveto
125
- closepath
126
- gsave fill grestore stroke
127
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
128
- newpath 47.24423 0 moveto
129
- 47.24423 15.74808 lineto stroke
130
- 0 0.5 dtransform truncate idtransform setlinewidth pop
131
- newpath 48.775 12.0526 moveto
132
- 47.24423 15.74808 lineto
133
- 45.71347 12.0526 lineto
134
- closepath
135
- gsave fill grestore stroke
136
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
137
- newpath 94.48802 0 moveto
138
- 94.48802 62.99231 lineto stroke
139
- 0 0.5 dtransform truncate idtransform setlinewidth pop
140
- newpath 96.01895 59.2964 moveto
141
- 94.48802 62.99231 lineto
142
- 92.95709 59.2964 lineto
143
- closepath
144
- gsave fill grestore stroke
145
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
146
- newpath 141.73225 0 moveto
147
- 141.73225 141.73225 lineto stroke
148
- 0 0.5 dtransform truncate idtransform setlinewidth pop
149
- newpath 143.26338 138.03589 moveto
150
- 141.73225 141.73225 lineto
151
- 140.20113 138.03589 lineto
152
- closepath
153
- gsave fill grestore stroke
154
- 0 0 1 setrgbcolor 0.5
155
- 0 dtransform exch truncate exch idtransform pop setlinewidth
156
- newpath -141.73225 0 moveto
157
- -141.73225 141.73225 lineto stroke
158
- newpath -140.31483 141.73225 moveto
159
- -140.31483 142.10818 -140.4642 142.46869 -140.73001 142.7345 curveto
160
- -140.99582 143.0003 -141.35632 143.14967 -141.73225 143.14967 curveto
161
- -142.10818 143.14967 -142.46869 143.0003 -142.7345 142.7345 curveto
162
- -143.0003 142.46869 -143.14967 142.10818 -143.14967 141.73225 curveto
163
- -143.14967 141.35632 -143.0003 140.99582 -142.7345 140.73001 curveto
164
- -142.46869 140.4642 -142.10818 140.31483 -141.73225 140.31483 curveto
165
- -141.35632 140.31483 -140.99582 140.4642 -140.73001 140.73001 curveto
166
- -140.4642 140.99582 -140.31483 141.35632 -140.31483 141.73225 curveto closepath
167
- fill
168
- newpath -94.48802 0 moveto
169
- -94.48802 62.99231 lineto stroke
170
- newpath -93.0706 62.99231 moveto
171
- -93.0706 63.36824 -93.21997 63.72874 -93.48578 63.99455 curveto
172
- -93.75159 64.26036 -94.11209 64.40973 -94.48802 64.40973 curveto
173
- -94.86395 64.40973 -95.22446 64.26036 -95.49026 63.99455 curveto
174
- -95.75607 63.72874 -95.90544 63.36824 -95.90544 62.99231 curveto
175
- -95.90544 62.61638 -95.75607 62.25587 -95.49026 61.99007 curveto
176
- -95.22446 61.72426 -94.86395 61.57489 -94.48802 61.57489 curveto
177
- -94.11209 61.57489 -93.75159 61.72426 -93.48578 61.99007 curveto
178
- -93.21997 62.25587 -93.0706 62.61638 -93.0706 62.99231 curveto closepath fill
179
- newpath -47.24423 0 moveto
180
- -47.24423 15.74808 lineto stroke
181
- newpath -45.82681 15.74808 moveto
182
- -45.82681 16.12401 -45.97618 16.48451 -46.24199 16.75032 curveto
183
- -46.5078 17.01613 -46.8683 17.1655 -47.24423 17.1655 curveto
184
- -47.62016 17.1655 -47.98067 17.01613 -48.24648 16.75032 curveto
185
- -48.51228 16.48451 -48.66165 16.12401 -48.66165 15.74808 curveto
186
- -48.66165 15.37215 -48.51228 15.01164 -48.24648 14.74583 curveto
187
- -47.98067 14.48003 -47.62016 14.33066 -47.24423 14.33066 curveto
188
- -46.8683 14.33066 -46.5078 14.48003 -46.24199 14.74583 curveto
189
- -45.97618 15.01164 -45.82681 15.37215 -45.82681 15.74808 curveto closepath fill
190
- 0 0.5 dtransform truncate idtransform setlinewidth pop
191
- newpath 0 0 moveto
192
- 0 0 lineto stroke
193
- newpath 1.41742 0 moveto
194
- 1.41742 0.37593 1.26805 0.73643 1.00224 1.00224 curveto
195
- 0.73643 1.26805 0.37593 1.41742 0 1.41742 curveto
196
- -0.37593 1.41742 -0.73643 1.26805 -1.00224 1.00224 curveto
197
- -1.26805 0.73643 -1.41742 0.37593 -1.41742 0 curveto
198
- -1.41742 -0.37593 -1.26805 -0.73643 -1.00224 -1.00224 curveto
199
- -0.73643 -1.26805 -0.37593 -1.41742 0 -1.41742 curveto
200
- 0.37593 -1.41742 0.73643 -1.26805 1.00224 -1.00224 curveto
201
- 1.26805 -0.73643 1.41742 -0.37593 1.41742 0 curveto closepath fill
202
- 0.5 0 dtransform exch truncate exch idtransform pop setlinewidth
203
- newpath 47.24423 0 moveto
204
- 47.24423 15.74808 lineto stroke
205
- newpath 48.66165 15.74808 moveto
206
- 48.66165 16.12401 48.51228 16.48451 48.24648 16.75032 curveto
207
- 47.98067 17.01613 47.62016 17.1655 47.24423 17.1655 curveto
208
- 46.8683 17.1655 46.5078 17.01613 46.24199 16.75032 curveto
209
- 45.97618 16.48451 45.82681 16.12401 45.82681 15.74808 curveto
210
- 45.82681 15.37215 45.97618 15.01164 46.24199 14.74583 curveto
211
- 46.5078 14.48003 46.8683 14.33066 47.24423 14.33066 curveto
212
- 47.62016 14.33066 47.98067 14.48003 48.24648 14.74583 curveto
213
- 48.51228 15.01164 48.66165 15.37215 48.66165 15.74808 curveto closepath fill
214
- newpath 94.48802 0 moveto
215
- 94.48802 62.99231 lineto stroke
216
- newpath 95.90544 62.99231 moveto
217
- 95.90544 63.36824 95.75607 63.72874 95.49026 63.99455 curveto
218
- 95.22446 64.26036 94.86395 64.40973 94.48802 64.40973 curveto
219
- 94.11209 64.40973 93.75159 64.26036 93.48578 63.99455 curveto
220
- 93.21997 63.72874 93.0706 63.36824 93.0706 62.99231 curveto
221
- 93.0706 62.61638 93.21997 62.25587 93.48578 61.99007 curveto
222
- 93.75159 61.72426 94.11209 61.57489 94.48802 61.57489 curveto
223
- 94.86395 61.57489 95.22446 61.72426 95.49026 61.99007 curveto
224
- 95.75607 62.25587 95.90544 62.61638 95.90544 62.99231 curveto closepath fill
225
- newpath 141.73225 0 moveto
226
- 141.73225 141.73225 lineto stroke
227
- newpath 143.14967 141.73225 moveto
228
- 143.14967 142.10818 143.0003 142.46869 142.7345 142.7345 curveto
229
- 142.46869 143.0003 142.10818 143.14967 141.73225 143.14967 curveto
230
- 141.35632 143.14967 140.99582 143.0003 140.73001 142.7345 curveto
231
- 140.4642 142.46869 140.31483 142.10818 140.31483 141.73225 curveto
232
- 140.31483 141.35632 140.4642 140.99582 140.73001 140.73001 curveto
233
- 140.99582 140.4642 141.35632 140.31483 141.73225 140.31483 curveto
234
- 142.10818 140.31483 142.46869 140.4642 142.7345 140.73001 curveto
235
- 143.0003 140.99582 143.14967 141.35632 143.14967 141.73225 curveto closepath
236
- fill
237
- showpage
238
- %%EOF
@@ -1,4 +0,0 @@
1
- This is MetaPost, version 1.208 (kpathsea version 5.0.0) (mem=mpost 2010.05.14) 2 AUG 2010 22:17
2
- **testsimpleplot.mp
3
- (./testsimpleplot.mp [1{pdftex.map}] [2] )
4
- 2 output files written: testsimpleplot-1.mps .. testsimpleplot-2.mps
@@ -1,75 +0,0 @@
1
- prologues := 2;
2
- filenametemplate "%j-%c.mps";
3
- picture ORIGINAL_PICTURE;
4
- ORIGINAL_PICTURE := currentpicture;
5
- picture picDblerg;
6
-
7
- %draw the axes
8
- draw ((5.6cm,0)--(-5.3cm,0));
9
- draw ((0, -0.3cm)--(0, 5.6cm));
10
-
11
- %draw xticks
12
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (-5.0cm, 0);
13
- label.lrt(btex -3 etex ,(-5.0cm, 0));
14
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (-3.33333333333333cm, 0);
15
- label.lrt(btex -2 etex ,(-3.33333333333333cm, 0));
16
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (-1.66666666666667cm, 0);
17
- label.lrt(btex -1 etex ,(-1.66666666666667cm, 0));
18
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (0.0cm, 0);
19
- label.lrt(btex 0 etex ,(0.0cm, 0));
20
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (1.66666666666667cm, 0);
21
- label.lrt(btex 1 etex ,(1.66666666666667cm, 0));
22
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (3.33333333333333cm, 0);
23
- label.lrt(btex 2 etex ,(3.33333333333333cm, 0));
24
- draw ((0,-0.1cm)--(0,0.1cm)) shifted (5.0cm, 0);
25
- label.lrt(btex 3 etex ,(5.0cm, 0));
26
-
27
- %draw yticks
28
- draw ((-0.1.cm,0)--(0.1cm,0)) shifted (0,1.66666666666667cm);
29
- label.rt(btex 3 etex ,(0,1.66666666666667cm));
30
- draw ((-0.1.cm,0)--(0.1cm,0)) shifted (0,3.33333333333333cm);
31
- label.rt(btex 6 etex ,(0,3.33333333333333cm));
32
- draw ((-0.1.cm,0)--(0.1cm,0)) shifted (0,5.0cm);
33
- label.rt(btex 9 etex ,(0,5.0cm));
34
-
35
- %draw xticks
36
- label.top(btex t etex, (5.6cm,0));
37
-
38
- %draw yticks
39
- label.rt(btex X(t) etex, (0, 5.6cm));
40
- draw ((-5.0cm, 5.0cm)..(-3.33333333333333cm, 2.22222222222222cm)..(-1.66666666666667cm, 0.555555555555556cm)..(0.0cm, 0.0cm)..(1.66666666666667cm, 0.555555555555556cm)..(3.33333333333333cm, 2.22222222222222cm)..(5.0cm, 5.0cm)) withcolor(1.0,0,0);
41
- draw ((-5.0cm, 5.0cm)--(-3.33333333333333cm, 2.22222222222222cm)--(-1.66666666666667cm, 0.555555555555556cm)--(0.0cm, 0.0cm)--(1.66666666666667cm, 0.555555555555556cm)--(3.33333333333333cm, 2.22222222222222cm)--(5.0cm, 5.0cm)) withcolor(1.0,0,0);
42
- drawarrow (-5.0cm, 0)--(-5.0cm, 5.0cm) withcolor(0,1.0,0);
43
- drawarrow (-3.33333333333333cm, 0)--(-3.33333333333333cm, 2.22222222222222cm) withcolor(0,1.0,0);
44
- drawarrow (-1.66666666666667cm, 0)--(-1.66666666666667cm, 0.555555555555556cm) withcolor(0,1.0,0);
45
- drawarrow (0.0cm, 0)--(0.0cm, 0.0cm) withcolor(0,1.0,0);
46
- drawarrow (1.66666666666667cm, 0)--(1.66666666666667cm, 0.555555555555556cm) withcolor(0,1.0,0);
47
- drawarrow (3.33333333333333cm, 0)--(3.33333333333333cm, 2.22222222222222cm) withcolor(0,1.0,0);
48
- drawarrow (5.0cm, 0)--(5.0cm, 5.0cm) withcolor(0,1.0,0);
49
- draw (-5.0cm, 0)--(-5.0cm, 5.0cm) withcolor(0,0,1.0);
50
- fill fullcircle scaled (0.1cm) shifted (-5.0cm, 5.0cm) withcolor(0,0,1.0);
51
- draw (-3.33333333333333cm, 0)--(-3.33333333333333cm, 2.22222222222222cm) withcolor(0,0,1.0);
52
- fill fullcircle scaled (0.1cm) shifted (-3.33333333333333cm, 2.22222222222222cm) withcolor(0,0,1.0);
53
- draw (-1.66666666666667cm, 0)--(-1.66666666666667cm, 0.555555555555556cm) withcolor(0,0,1.0);
54
- fill fullcircle scaled (0.1cm) shifted (-1.66666666666667cm, 0.555555555555556cm) withcolor(0,0,1.0);
55
- draw (0.0cm, 0)--(0.0cm, 0.0cm) withcolor(0,0,1.0);
56
- fill fullcircle scaled (0.1cm) shifted (0.0cm, 0.0cm) withcolor(0,0,1.0);
57
- draw (1.66666666666667cm, 0)--(1.66666666666667cm, 0.555555555555556cm) withcolor(0,0,1.0);
58
- fill fullcircle scaled (0.1cm) shifted (1.66666666666667cm, 0.555555555555556cm) withcolor(0,0,1.0);
59
- draw (3.33333333333333cm, 0)--(3.33333333333333cm, 2.22222222222222cm) withcolor(0,0,1.0);
60
- fill fullcircle scaled (0.1cm) shifted (3.33333333333333cm, 2.22222222222222cm) withcolor(0,0,1.0);
61
- draw (5.0cm, 0)--(5.0cm, 5.0cm) withcolor(0,0,1.0);
62
- fill fullcircle scaled (0.1cm) shifted (5.0cm, 5.0cm) withcolor(0,0,1.0);
63
- picDblerg := currentpicture; currentpicture := ORIGINAL_PICTURE;
64
-
65
- beginfig(1);
66
- draw ((-3cm, 9cm)..(-2cm, 4cm)..(-1cm, 1cm)..(0cm, 0cm)..(1cm, 1cm)..(2cm, 4cm)..(3cm, 9cm)) withcolor(1.0,0,0);
67
-
68
- endfig;
69
-
70
- beginfig(2);
71
- draw picDblerg ;
72
-
73
- endfig;
74
-
75
- end;
@@ -1,121 +0,0 @@
1
- % Written by metapost version 1.208
2
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
3
- string _n[];
4
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
5
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
6
- _n0="cmr10";
7
- _s("-3",_n0,1.00000,0.0000,0.0000,);
8
- setbounds _p to (0,0.0000)--(8.3022,0.0000)--
9
- (8.3022,6.4204)--(0,6.4204)--cycle;
10
- _p endgroup
11
- mpxbreak
12
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
13
- string _n[];
14
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
15
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
16
- _n0="cmr10";
17
- _s("-2",_n0,1.00000,0.0000,0.0000,);
18
- setbounds _p to (0,0.0000)--(8.3022,0.0000)--
19
- (8.3022,6.4204)--(0,6.4204)--cycle;
20
- _p endgroup
21
- mpxbreak
22
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
23
- string _n[];
24
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
25
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
26
- _n0="cmr10";
27
- _s("-1",_n0,1.00000,0.0000,0.0000,);
28
- setbounds _p to (0,0.0000)--(8.3022,0.0000)--
29
- (8.3022,6.4204)--(0,6.4204)--cycle;
30
- _p endgroup
31
- mpxbreak
32
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
33
- string _n[];
34
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
35
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
36
- _n0="cmr10";
37
- _s("0",_n0,1.00000,0.0000,0.0000,);
38
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
39
- (4.9813,6.4204)--(0,6.4204)--cycle;
40
- _p endgroup
41
- mpxbreak
42
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
43
- string _n[];
44
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
45
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
46
- _n0="cmr10";
47
- _s("1",_n0,1.00000,0.0000,0.0000,);
48
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
49
- (4.9813,6.4204)--(0,6.4204)--cycle;
50
- _p endgroup
51
- mpxbreak
52
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
53
- string _n[];
54
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
55
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
56
- _n0="cmr10";
57
- _s("2",_n0,1.00000,0.0000,0.0000,);
58
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
59
- (4.9813,6.4204)--(0,6.4204)--cycle;
60
- _p endgroup
61
- mpxbreak
62
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
63
- string _n[];
64
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
65
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
66
- _n0="cmr10";
67
- _s("3",_n0,1.00000,0.0000,0.0000,);
68
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
69
- (4.9813,6.4204)--(0,6.4204)--cycle;
70
- _p endgroup
71
- mpxbreak
72
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
73
- string _n[];
74
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
75
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
76
- _n0="cmr10";
77
- _s("3",_n0,1.00000,0.0000,0.0000,);
78
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
79
- (4.9813,6.4204)--(0,6.4204)--cycle;
80
- _p endgroup
81
- mpxbreak
82
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
83
- string _n[];
84
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
85
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
86
- _n0="cmr10";
87
- _s("6",_n0,1.00000,0.0000,0.0000,);
88
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
89
- (4.9813,6.4204)--(0,6.4204)--cycle;
90
- _p endgroup
91
- mpxbreak
92
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
93
- string _n[];
94
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
95
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
96
- _n0="cmr10";
97
- _s("9",_n0,1.00000,0.0000,0.0000,);
98
- setbounds _p to (0,0.0000)--(4.9813,0.0000)--
99
- (4.9813,6.4204)--(0,6.4204)--cycle;
100
- _p endgroup
101
- mpxbreak
102
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
103
- string _n[];
104
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
105
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
106
- _n0="cmr10";
107
- _s("t",_n0,1.00000,0.0000,0.0000,);
108
- setbounds _p to (0,0.0000)--(3.8744,0.0000)--
109
- (3.8744,6.1278)--(0,6.1278)--cycle;
110
- _p endgroup
111
- mpxbreak
112
- begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
113
- string _n[];
114
- vardef _s(expr _t,_f,_m,_x,_y)(text _c)=
115
- addto _p also _t infont _f scaled _m shifted (_x,_y) _c; enddef;
116
- _n0="cmr10";
117
- _s("X(t)",_n0,1.00000,0.0000,0.0000,);
118
- setbounds _p to (0,-2.4907)--(19.0951,-2.4907)--
119
- (19.0951,7.4720)--(0,7.4720)--cycle;
120
- _p endgroup
121
- mpxbreak