source: Sophya/trunk/SophyaPI/DemoPIApp/CONTENT@ 4073

Last change on this file since 4073 was 4073, checked in by ansari, 13 years ago

Ajout script polarplot.pic (trace en coord. polaires) et modifs cosmetiques/copyright, Reza 10/05/2012

File size: 2.2 KB
RevLine 
[3436]1====== SOPHYA/piapp demo scripts and programs ======
2===============================================================
[4073]3 (C) LAL / Univ. Paris Sud, CNRS/IN2P3 1998-2012
4 (C) IRFU-SPP/CEA 1998-2012
[3436]5===============================================================
6
7See http://www.sophya.org and the SOPHYA overview manual and piapp
8user's guide for more information.
9
101/ script demo.pic and associated demo.ppf data file
11 demo script showing general piapp features
12csh> spiapp -exec demo
13OR
14csh> spiapp
15# Execute the piapp command :
16piapp> exec demo.pic
17
182/ script tarc.pic
19 Drawing text, arcs and arrows ...
20piapp> exec demo.pic
21
223/ fft2d.pic and fft2.cc
23 c++ execution in piapp
24piapp> exec fft2d.pic
25
264/ multicurve.pic
27 Drawing example, superposition of several functions
28piapp> exec multicurve
29 OR exec multicurve.pic
30
315/ axel.pic : Some options for axes
32
336/ addelts.pic : How to add some graphic objects (circles, rectangles, text)
34 to a plot, in this case a function plot
35
367/ pnbpays.pic : How to make and draw a bargraph
37
[4073]388/ polarplot.pic : Example for creating and filling an NTuple
39 with suitable data for plot in polar coordinates using the interpreter
40 and examples of plot in polar coordinates
41piapp> exec polarplot
42
439/ resonance.pic : How to make complex plots/drawings , in this case
[3436]44 the resonance curve of an harmonic oscillator, using the piapp
45 scripting capabilities
46
[4073]4710/ oh_xva_spring.pic : An other example of complex drawing ...
[3436]48
[4073]4911/ user.cc : example of function which can be called from piapp
5011.a/ Create the shared/loadable object user.so
[3436]51csh> make user.so
[4073]5211.b/ in piapp, link the module and call the function
[3436]53piapp> link user.so user
54piapp> call user
55# --> creates NTuple usernt
56# Can be called again [with different arguments]
57piapp> call user aaa 1 2 bbb
58
59
60
61Loadable modules
62----------------
63piapp capabilities can be extended using loadable modules
64
[4073]6512/ exmod.pic , exmodule.cc
6612.a/ Create the loadable module exmodule.so
[3436]67csh> make exmodule.so
[4073]6812.b/ Execute the script exmod.pic
[3436]69 ---> new commands are added to piapp
70
[4073]7113/ exmoddrw.pic exmoddrw.cc
[3436]72csh> make exmoddrw.so
73 in piapp> exec exmoddrw.pic
74 ---> extends piapp graphic capability by a new drawer
75
76
77
Note: See TracBrowser for help on using the repository browser.