source: Sophya/trunk/SophyaPI/DemoPIApp/addelts.pic@ 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: 1.4 KB
RevLine 
[4073]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################################################################
[1638]9# Drawing a gaussian using the predefined limits and no default title
[1973]10# with Defining the 2D plot limits
11func exp(-(x-2)*(x-2)/12.) -10 20 100 "xylimits=-10,30,-0.4,1.2 orange normalline notit"
[1638]12# Setting the top and bottom titles
13settitle 'addelts.pic : Top Title ' 'Bottom Title (addelts.pic) ' siennared
14# Superimposing a sin(x)/x function
[1973]15func sin(x)/x 0.1 30 100 'green same'
16# Setting axes attributes
17setaxesatt 'bigboldfont timesfont'
[1638]18# Adding a text string and a line to the display
[1973]19addtext 15 0.2 'f(x) = sin(x)/x' gold
[1638]20addline 0 0.8 20 0.2 red
21# Rectangle drawing
22addfrect 5 0.85 10 0.95 navyblue
23addrect 7 1.05 8 0.75 purple
24# Drawing circles
25addfcirc 18 0.75 0.25 violet
26addfcirc 18 0.75 0.15 violetred
27addfcirc 18 0.75 0.07 magenta
28addfcirc 22 0.55 0.10 blueviolet
29addfcirc 26 0.55 0.10 darkviolet
30# Make an Encapsulated Postscript file (eps)
31pssetfilename
32w2eps addelts.eps
Note: See TracBrowser for help on using the repository browser.