       }
     }
     
+    latestData!.AtmHeight = 5000
+    
     glClearColor(0,0,0,1)
     glClear(GLbitfield(GL_COLOR_BUFFER_BIT) | GLbitfield(GL_DEPTH_BUFFER_BIT))
     

    for power in logMin...logMax {
      var y : GLfloat = 0.25 + 0.5 * GLfloat((Double(power)-bottom)/logRange)
      drawLine((xPos,y), to: (xPos+GLfloat(lgeTickSize), y), width: 1)
      
      var nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
      let halfPoint = PseudoLog10(nextPow*0.5)
      y = 0.25 + GLfloat((halfPoint-bottom)/logRange * 0.5)
      drawLine((xPos,y), to: (xPos+GLfloat(medTickSize), y), width: 1)

      nextPow = InversePseudoLog10(Double(power >= 0 ? power+1 : power))
      let doubPoint = PseudoLog10(nextPow*0.1*2)
      y = 0.25 + 0.5 * GLfloat((doubPoint-bottom)/logRange)
      drawLine((xPos,y), to: (xPos+GLfloat(smlTickSize), y), width: 1)
    }
    // Draw text in a separate pass
    for power in logMin...logMax {

    var logMax = Int(ceil(center)+logRange/2)
    if !left {
      logMin = max(0, logMin)
      logMax = min(5, logMax)
    }
    let bottom = center - logRange / 2
//    let top    = center + logRange / 2
