sa14


// Usage: pl -gif sa14.htm 
// Illustrates grid and tic options using two overlaid axes

#proc page
#if @DEVICE in png,gif
  scale: 0.6
#endif

#proc areadef
  rectangle: 1 1 5 2  // Absolute coordinates for page
  xrange: 98 102
  yrange: 50 51
  frame: width=0.5 color=black

// Do one xaxis to get orange grid every 0.1
#proc xaxis
  ticincrement .1
  grid color=orange

// Do second x axis to get black grid every 1.0
#proc xaxis
  stubs inc 1
  minorticinc .1
  grid: yes

#proc yaxis
  tics yes
  grid: yes
  stubs: inc 1