source: Sophya/trunk/SophyaPI/DemoPIApp/addelts.pic@ 1710

Last change on this file since 1710 was 1638, checked in by ansari, 24 years ago

exemple d'utilisation des commandes addline addtext ... et manipulation d'attributs graphiques - Reza 16/8/2001

File size: 881 bytes
Line 
1# Defining the 2D plot limits
2setxylimits -10 30 -0.4 1.2
3# Drawing a gaussian using the predefined limits and no default title
4func exp(-(x-2)*(x-2)/12.) -10 20 100 xylimits,orange,normalline,notit
5# Setting the top and bottom titles
6settitle 'addelts.pic : Top Title ' 'Bottom Title (addelts.pic) ' siennared
7# Superimposing a sin(x)/x function
8func sin(x)/x 0.1 30 100 green,same
9# Adding a text string and a line to the display
10addtext 15 0.2 'f(x) = sin(x)/x' gold,boldfont,bigfont,timesfont
11addline 0 0.8 20 0.2 red
12# Rectangle drawing
13addfrect 5 0.85 10 0.95 navyblue
14addrect 7 1.05 8 0.75 purple
15# Drawing circles
16addfcirc 18 0.75 0.25 violet
17addfcirc 18 0.75 0.15 violetred
18addfcirc 18 0.75 0.07 magenta
19addfcirc 22 0.55 0.10 blueviolet
20addfcirc 26 0.55 0.10 darkviolet
21# Make an Encapsulated Postscript file (eps)
22pssetfilename
23w2eps addelts.eps
Note: See TracBrowser for help on using the repository browser.