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