1 | ################################################################
|
---|
2 | ### SOPHYA class library - piapp interactive analysis tool
|
---|
3 | ### (C) LAL / Univ. Paris Sud, CNRS/IN2P3 1998-2012
|
---|
4 | ### (C) IRFU-SPP / CEA 1998-2012
|
---|
5 | ################################################################
|
---|
6 | ### addelts.pic : demo script showing the possibilities to adding
|
---|
7 | ### text and graphical elements to plots
|
---|
8 | ################################################################
|
---|
9 | # Drawing a gaussian using the predefined limits and no default title
|
---|
10 | # with Defining the 2D plot limits
|
---|
11 | func exp(-(x-2)*(x-2)/12.) -10 20 100 "xylimits=-10,30,-0.4,1.2 orange normalline notit"
|
---|
12 | # Setting the top and bottom titles
|
---|
13 | settitle 'addelts.pic : Top Title ' 'Bottom Title (addelts.pic) ' siennared
|
---|
14 | # Superimposing a sin(x)/x function
|
---|
15 | func sin(x)/x 0.1 30 100 'green same'
|
---|
16 | # Setting axes attributes
|
---|
17 | setaxesatt 'bigboldfont timesfont'
|
---|
18 | # Adding a text string and a line to the display
|
---|
19 | addtext 15 0.2 'f(x) = sin(x)/x' gold
|
---|
20 | addline 0 0.8 20 0.2 red
|
---|
21 | # Rectangle drawing
|
---|
22 | addfrect 5 0.85 10 0.95 navyblue
|
---|
23 | addrect 7 1.05 8 0.75 purple
|
---|
24 | # Drawing circles
|
---|
25 | addfcirc 18 0.75 0.25 violet
|
---|
26 | addfcirc 18 0.75 0.15 violetred
|
---|
27 | addfcirc 18 0.75 0.07 magenta
|
---|
28 | addfcirc 22 0.55 0.10 blueviolet
|
---|
29 | addfcirc 26 0.55 0.10 darkviolet
|
---|
30 | # Make an Encapsulated Postscript file (eps)
|
---|
31 | pssetfilename
|
---|
32 | w2eps addelts.eps
|
---|