File: chunk_xaxis

package info (click to toggle)
ploticus 2.33-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,608 kB
  • ctags: 2,838
  • sloc: ansic: 48,139; perl: 913; sh: 393; makefile: 138
file content (57 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//// chunk included by prefabs to do standard x axis
#if bottom in @xaxis
 #proc xaxis
 #if @xlbl = "#usefname"
   label: @x
 #else
   #ifspec xlbl label
 #endif
 #ifspec xlbldet labeldetails
 #if @xinc = datematic
   stubs: datematic
 #else
   stubs: inc @xinc
 #endif
 #ifspec stubfmt stubformat
 #ifspec xstubfmt stubformat
 //
 // added 5/25/04 scg
 #ifspec xstubdet stubdetails
 stubrange: @XMIN
 #ifspec stubvert
 #ifspec xgrid grid
 #ifspec xlbldistance labeldistance
#endif

// added scg 8/4/04...
#if top in @xaxis 
  #proc xaxis
  location: max
  #if $def(xstubdet) = 1
    stubdetails: adjust=0,0.2  @xstubdet
  #else
    stubdetails: adjust=0,0.2
  #endif
  ticlen: -0.08

  // the rest is replicated from above..
  #if @xlbl = "#usefname"
    label: @x
  #else
    #ifspec xlbl label
  #endif
  #ifspec xlbldet labeldetails
  #if @xinc = datematic
    stubs: datematic
  #else
    stubs: inc @xinc
  #endif
  #ifspec stubfmt stubformat
  #ifspec xstubfmt stubformat
  //
  // added 5/25/04 scg
  stubrange: @XMIN
  #ifspec stubvert
  #ifspec xgrid grid
  #ifspec xlbldistance labeldistance
#endif