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