/[escript]/tags/prior_to_merge_with_ROBW_XPLATFORM/pyvisi/website/examples/examples_body.part
ViewVC logotype

Contents of /tags/prior_to_merge_with_ROBW_XPLATFORM/pyvisi/website/examples/examples_body.part

Parent Directory Parent Directory | Revision Log Revision Log


Revision 680 - (show annotations)
Mon Mar 27 02:15:08 2006 UTC (14 years, 11 months ago) by robwdcock
File size: 12483 byte(s)
Tagging trunk prior to merge with ROBW_XPLATFORM branch
1 <!-- $Id: examples_body.part,v 1.19 2005/06/28 04:09:31 paultcochrane Exp $ -->
2 <h1>Examples</h1>
3
4 <hr class="top" />
5
6 <p>
7 These are some simple examples showing the core functionality of the
8 currently available pyvisi plotting objects.
9 </p>
10
11 <h2>simplePlot</h2>
12
13 <p>
14 This is a very simple example showing how one would produce a line plot
15 using pyvisi. It shows a graph of <code>y = x^2</code>.
16 </p>
17
18 <a href="examples/simpleLinePlot.html">simpleLinePlot.py</a>
19
20 <h3>Example pyvisi output</h3>
21
22 <table>
23 <tr>
24 <th><a href="http://www.gnuplot.info">Gnuplot</a> renderer module</th>
25 <th><a href="http://www.vtk.org">Vtk</a> renderer module</th>
26 </tr>
27 <tr>
28 <td><a href="examples/simpleLinePlotGnuplot.png"><img
29 src="examples/simpleLinePlotGnuplotSmall.png"
30 alt="simpleLinePlotGnuplot.png"/></a></td>
31 <td><a href="examples/simpleLinePlotVtk.png"><img
32 src="examples/simpleLinePlotVtkSmall.png"
33 alt="simpleLinePlotVtk.png"/></a></td>
34 </tr>
35 <tr>
36 <td>Click on image for larger version</td>
37 <td>Click on image for larger version</td>
38 </tr>
39 </table>
40
41 <hr />
42
43 <h2>singleArrayPlot</h2>
44
45 <p>
46 This example shows a graph of <code>y = sin(x)</code>. However, what is
47 special about it is that one only specifies the y-coordinate, and pyvisi
48 uses the indicies of the y array as the x-coordinate points.
49 </p>
50
51 <a href="examples/singleArrayLinePlot.html">singleArrayLinePlot.py</a>
52
53 <h3>Example pyvisi output</h3>
54
55 <table>
56 <tr>
57 <th><a href="http://www.gnuplot.info">Gnuplot</a> renderer module</th>
58 <th><a href="http://www.vtk.org">Vtk</a> renderer module</th>
59 </tr>
60 <tr>
61 <td><a href="examples/singleArrayLinePlotGnuplot.png"><img
62 src="examples/singleArrayLinePlotGnuplotSmall.png"
63 alt="singleArrayLinePlotGnuplot.png"/></a></td>
64 <td><a href="examples/singleArrayLinePlotVtk.png"><img
65 src="examples/singleArrayLinePlotVtkSmall.png"
66 alt="singleArrayLinePlotVtk.png"/></a></td>
67 </tr>
68 <tr>
69 <td>Click on image for larger version</td>
70 <td>Click on image for larger version</td>
71 </tr>
72 </table>
73
74 <hr />
75
76 <h2>multiCurvePlot</h2>
77
78 <p>
79 Here we have an example of how to plot multiple curves with the same
80 x-coordinate variable. This example shows <code>y = sin(x)</code>,
81 <code>y = cos(x)</code> and <code>y = cos(x)^2</code>.
82 </p>
83
84 <a href="examples/multiCurvePlot.html">multiCurvePlot.py</a>
85
86 <h3>Example pyvisi output</h3>
87
88 <table>
89 <tr>
90 <th><a href="http://www.gnuplot.info">Gnuplot</a> renderer module</th>
91 <th><a href="http://www.vtk.org">Vtk</a> renderer module</th>
92 </tr>
93 <tr>
94 <td><a href="examples/multiCurvePlotGnuplot.png"><img
95 src="examples/multiCurvePlotGnuplotSmall.png"
96 alt="multiCurvePlotGnuplot.png"/></a></td>
97 <td><a href="examples/multiCurvePlotVtk.png"><img
98 src="examples/multiCurvePlotVtkSmall.png"
99 alt="multiCurvePlotVtk.png"/></a></td>
100 </tr>
101 <tr>
102 <td>Click on image for larger version</td>
103 <td>Click on image for larger version</td>
104 </tr>
105 </table>
106
107 <hr />
108
109 <h2>contourPlot</h2>
110
111 <p>
112 This shows a two-dimensional contour map of a three-dimensional surface.
113 The surface was generated with the equation
114 <code>z = x*exp(-x^2 - y^2)</code>.
115 </p>
116
117 <a href="examples/contourPlot.html">contourPlot.py</a>
118
119 <h3>Example pyvisi output</h3>
120
121 <table>
122 <tr>
123 <th>
124 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
125 (gnuplot version 3.8)
126 </th>
127 <th>
128 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
129 (gnuplot version 4.0)
130 </th>
131 </tr>
132 <tr>
133 <td><a href="examples/contourPlotGnuplot.png"><img
134 src="examples/contourPlotGnuplotSmall.png"
135 alt="contourPlotGnuplot.png"/></a></td>
136 <td><a href="examples/contourPlotGnuplot4.png"><img
137 src="examples/contourPlotGnuplot4Small.png"
138 alt="contourPlotGnuplot4.png"/></a></td>
139 </tr>
140 <tr>
141 <td>Click on image for larger version</td>
142 <td>Click on image for larger version</td>
143 </tr>
144 </table>
145
146 <hr />
147
148 <h2>surfacePlot</h2>
149
150 <p>
151 This shows a three-dimensional surface. The surface was generated
152 with the equation <code>z = x*exp(-x^2 - y^2)</code>.
153 </p>
154
155 <a href="examples/surfacePlot.html">surfacePlot.py</a>
156
157 <h3>Example pyvisi output</h3>
158
159 <table>
160 <tr>
161 <th>
162 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
163 (gnuplot version 3.8)
164 </th>
165 <th>
166 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
167 (gnuplot version 4.0)
168 </th>
169 </tr>
170 <tr>
171 <td><a href="examples/surfacePlotGnuplot.png"><img
172 src="examples/surfacePlotGnuplotSmall.png"
173 alt="surfacePlotGnuplot.png"/></a></td>
174 <td><a href="examples/surfacePlotGnuplot4.png"><img
175 src="examples/surfacePlotGnuplot4Small.png"
176 alt="surfacePlotGnuplot4.png"/></a></td>
177 </tr>
178 <tr>
179 <td>Click on image for larger version</td>
180 <td>Click on image for larger version</td>
181 </tr>
182 </table>
183
184 <hr />
185
186 <h2>surfaceAndContourPlot</h2>
187
188 <p>
189 This shows a three-dimensional surface, with its contour shown on the base
190 of the axes. The surface was generated with the equation
191 <code>z = x*exp(-x^2 - y^2)</code>.
192 </p>
193
194 <a href="examples/surfaceAndContourPlot.html">surfaceAndContourPlot.py</a>
195
196 <h3>Example pyvisi output</h3>
197
198 <table>
199 <tr>
200 <th>
201 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
202 (gnuplot version 3.8)
203 </th>
204 <th>
205 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
206 (gnuplot version 4.0)
207 </th>
208 </tr>
209 <tr>
210 <td><a href="examples/surfaceAndContourPlotGnuplot.png"><img
211 src="examples/surfaceAndContourPlotGnuplotSmall.png"
212 alt="surfaceAndContourPlotGnuplot.png"/></a></td>
213 <td><a href="examples/surfaceAndContourPlotGnuplot4.png"><img
214 src="examples/surfaceAndContourPlotGnuplot4Small.png"
215 alt="surfaceAndContourPlotGnuplot4.png"/></a></td>
216 </tr>
217 <tr>
218 <td>Click on image for larger version</td>
219 <td>Click on image for larger version</td>
220 </tr>
221 </table>
222
223 <hr />
224
225 <h2>scatterPlot</h2>
226
227 <p>
228 Here we have randomly generated x-y data plotted as a scatter plot.
229 </p>
230
231 <a href="examples/scatterPlot.html">scatterPlot.py</a>
232
233 <h3>Example pyvisi output</h3>
234
235 <table>
236 <tr>
237 <th>
238 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
239 (gnuplot version 3.8)
240 </th>
241 <th>
242 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
243 (gnuplot version 4.0)
244 </th>
245 </tr>
246 <tr>
247 <td><a href="examples/scatterPlotGnuplot.png"><img
248 src="examples/scatterPlotGnuplotSmall.png"
249 alt="scatterPlotGnuplot.png"/></a></td>
250 <td><a href="examples/scatterPlotGnuplot4.png"><img
251 src="examples/scatterPlotGnuplot4Small.png"
252 alt="scatterPlotGnuplot4.png"/></a></td>
253 </tr>
254 <tr>
255 <td>Click on image for larger version</td>
256 <td>Click on image for larger version</td>
257 </tr>
258 </table>
259
260 <hr />
261
262 <h2>scatterPlot3D</h2>
263
264 <p>
265 Here we have a three-dimensional scatter plot. The x and y data are
266 generated randomly, and the z value is calculated via
267 <code>z = exp(-x^2 - y^2)</code>.
268 </p>
269
270 <a href="examples/scatterPlot3D.html">scatterPlot3D.py</a>
271
272 <h3>Example pyvisi output</h3>
273
274 <table>
275 <tr>
276 <th>
277 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
278 (gnuplot version 3.8)
279 </th>
280 <th>
281 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
282 (gnuplot version 4.0)
283 </th>
284 </tr>
285 <tr>
286 <td><a href="examples/scatterPlot3DGnuplot.png"><img
287 src="examples/scatterPlot3DGnuplotSmall.png"
288 alt="scatterPlot3DGnuplot.png"/></a></td>
289 <td><a href="examples/scatterPlot3DGnuplot4.png"><img
290 src="examples/scatterPlot3DGnuplot4Small.png"
291 alt="scatterPlot3DGnuplot4.png"/></a></td>
292 </tr>
293 <tr>
294 <td>Click on image for larger version</td>
295 <td>Click on image for larger version</td>
296 </tr>
297 </table>
298
299 <hr />
300
301 <h2>arrowPlot</h2>
302
303 <p>
304 This example shows a vector plot of randomly generated vectors. Here we are
305 only using 1D arrays as input.
306 </p>
307
308 <a href="examples/arrowPlot.html">arrowPlot.py</a>
309
310 <h3>Example pyvisi output</h3>
311
312 <table>
313 <tr>
314 <th>
315 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
316 (gnuplot version 3.8)
317 </th>
318 <th>
319 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
320 (gnuplot version 4.0)
321 </th>
322 </tr>
323 <tr>
324 <td><a href="examples/arrowPlotGnuplot.png"><img
325 src="examples/arrowPlotGnuplotSmall.png"
326 alt="arrowPlotGnuplot.png"/></a></td>
327 <td><a href="examples/arrowPlotGnuplot4.png"><img
328 src="examples/arrowPlotGnuplot4Small.png"
329 alt="arrowPlotGnuplot4.png"/></a></td>
330 </tr>
331 <tr>
332 <td>Click on image for larger version</td>
333 <td>Click on image for larger version</td>
334 </tr>
335 </table>
336
337 <hr />
338
339 <h2>arrowPlot2D</h2>
340
341 <p>
342 This example shows a vector plot of randomly generated vectors. Here we are
343 only using 2D arrays as input.
344 </p>
345
346 <a href="examples/arrowPlot2D.html">arrowPlot2D.py</a>
347
348 <h3>Example pyvisi output</h3>
349
350 <table>
351 <tr>
352 <th>
353 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
354 (gnuplot version 3.8)
355 </th>
356 <th>
357 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
358 (gnuplot version 4.0)
359 </th>
360 </tr>
361 <tr>
362 <td><a href="examples/arrowPlot2DGnuplot.png"><img
363 src="examples/arrowPlot2DGnuplotSmall.png"
364 alt="arrowPlot2DGnuplot.png"/></a></td>
365 <td><a href="examples/arrowPlot2DGnuplot4.png"><img
366 src="examples/arrowPlot2DGnuplot4Small.png"
367 alt="arrowPlot2DGnuplot4.png"/></a></td>
368 </tr>
369 <tr>
370 <td>Click on image for larger version</td>
371 <td>Click on image for larger version</td>
372 </tr>
373 </table>
374
375 <hr />
376
377 <h2>offsetPlot</h2>
378
379 <p>
380 This shows offset plot, or record section as is useful in seismology.
381 </p>
382
383 <a href="examples/offsetPlot.html">offsetPlot.py</a>
384
385 <h3>Example pyvisi output</h3>
386
387 <table>
388 <tr>
389 <th>
390 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
391 </th>
392 <th>
393 <a href="http://www.vtk.org">vtk</a> renderer module
394 </th>
395 </tr>
396 <tr>
397 <td><a href="examples/offsetPlotGnuplot.png"><img
398 src="examples/offsetPlotGnuplotSmall.png"
399 alt="offsetPlotGnuplot.png"/></a></td>
400 <td><a href="examples/offsetPlotVtk.png"><img
401 src="examples/offsetPlotVtkSmall.png"
402 alt="offsetPlotVtk.png"/></a></td>
403 </tr>
404 <tr>
405 <td>Click on image for larger version</td>
406 <td>Click on image for larger version</td>
407 </tr>
408 </table>
409
410 <hr />
411
412 <h2>seismicOffsetPlot1</h2>
413
414 <p>
415 Another offset plot example with data imported from file.
416 </p>
417
418 <a href="examples/seismicOffsetPlot1.html">seismicOffsetPlot1.py</a>
419
420 <h3>Example pyvisi output</h3>
421
422 <table>
423 <tr>
424 <th>
425 <a href="http://www.gnuplot.info">Gnuplot</a> renderer module
426 </th>
427 <th>
428 <a href="http://www.vtk.org">vtk</a> renderer module
429 </th>
430 </tr>
431 <tr>
432 <td><a href="examples/seismicOffsetPlot1Gnuplot.png"><img
433 src="examples/seismicOffsetPlot1GnuplotSmall.png"
434 alt="seismicOffsetPlot1Gnuplot.png"/></a></td>
435 <td><a href="examples/seismicOffsetPlot1Vtk.png"><img
436 src="examples/seismicOffsetPlot1VtkSmall.png"
437 alt="seismicOffsetPlot1Vtk.png"/></a></td>
438 </tr>
439 <tr>
440 <td>Click on image for larger version</td>
441 <td>Click on image for larger version</td>
442 </tr>
443 </table>
444
445 <hr />
446
447 <h2>ballPlot</h2>
448
449 <p>
450 Plot spheres in space, loading data from a vtk xml file
451 </p>
452
453 <a href="examples/ballPlot.html">ballPlot.py</a>
454
455 <h3>Example pyvisi output</h3>
456
457 <table>
458 <tr>
459 <th>
460 <a href="http://www.povray.org">Povray</a> renderer module
461 (unavailable at this time)
462 </th>
463 <th>
464 <a href="http://www.vtk.org">vtk</a> renderer module
465 </th>
466 </tr>
467 <tr>
468 <td><a href="examples/ballPlotPovray.png"><img
469 src="examples/ballPlotPovraySmall.png"
470 alt="ballPlotPovray.png"/></a></td>
471 <td><a href="examples/ballPlotVtk.png"><img
472 src="examples/ballPlotVtkSmall.png"
473 alt="ballPlotVtk.png"/></a></td>
474 </tr>
475 <tr>
476 <td>Click on image for larger version</td>
477 <td>Click on image for larger version</td>
478 </tr>
479 </table>
480
481 <hr />
482
483 <h2>arrowPlot3D</h2>
484
485 <p>
486 Plot three dimensional arrows in space, loading data from a vtk xml file
487 </p>
488
489 <a href="examples/arrowPlot3D.html">arrowPlot3D.py</a>
490
491 <h3>Example pyvisi output</h3>
492
493 <table>
494 <tr>
495 <th>
496 <a href="http://www.povray.org">Povray</a> renderer module
497 (unavailable at this time)
498 </th>
499 <th>
500 <a href="http://www.vtk.org">vtk</a> renderer module
501 </th>
502 </tr>
503 <tr>
504 <td><a href="examples/arrowPlot3DPovray.png"><img
505 src="examples/arrowPlot3DPovraySmall.png"
506 alt="arrowPlot3DPovray.png"/></a></td>
507 <td><a href="examples/arrowPlot3DVtk.png"><img
508 src="examples/arrowPlot3DVtkSmall.png"
509 alt="arrowPlot3DVtk.png"/></a></td>
510 </tr>
511 <tr>
512 <td>Click on image for larger version</td>
513 <td>Click on image for larger version</td>
514 </tr>
515 </table>
516

  ViewVC Help
Powered by ViewVC 1.1.26