source: trunk/Documentation/xmldoc/idlfiles/tst_basic.pro @ 63

Last change on this file since 63 was 63, checked in by pinsard, 18 years ago

upgrade of Documentation/xmldoc/idlfiles according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

  • Property svn:executable set to *
File size: 800 bytes
Line 
1PRO tst_basic
2;
3; figure 1: basics plots
4;
5; 1) plot
6;
7  n = 10
8  y = findgen(n)
9; basic plot
10  splot, y, small = [2, 2, 1], /portrait
11; improved plot by using plot and "graphic keywords"
12  splot, y, small = [2, 2, 2], /noerase, yrange = [0, (n-1)^2], title = 'x and x^2'
13  oplot, y^2, color = 100, linestyle = 2, thick = 3
14;
15; 2) contour
16;
17  z = dist(n)
18; basic plot
19  scontour, z, /fill, nlevels = 15, small = [2, 2, 3], /noerase
20; improved plot by using contour and "graphic keywords"
21  ind = findgen(2*n)/(2.*n)
22  scontour, z, levels = n*ind, c_orientation = 180*ind, c_spacing = .2*ind $
23            , small = [2, 2, 4], /noerase
24  contour, z, /overplot, c_label = rebin([1, 0], 2, n), levels = n*ind $
25           , c_charthick = 2, c_charsize = 1.5, c_colors = 250*ind
26           
27  return
28end
Note: See TracBrowser for help on using the repository browser.