         CGContextMoveToPoint( context, bounds.minX, bounds.minY-5.0)
         CGContextAddLineToPoint( context, bounds.minX, bounds.maxY)
 
-        CGContextDrawPath( context, kCGPathStroke)
+        CGContextDrawPath(context, CGPathDrawingMode.Stroke)
 
         CGContextRestoreGState(context)
     }

        CGContextSaveGState(context)

        let firstPlot = plots.first!
        let interval = CGFloat(firstPlot.plotTime.timeIntervalSinceDate(self.absoluteStartDate)/60.0)
        var x = ceil(bounds.minX + (interval*self.stepX))

        for plot in plots {
            let interval = CGFloat(plot.plotTime.timeIntervalSinceDate(self.absoluteStartDate)/60.0)
            x = ceil(bounds.minX + (interval*self.stepX))

            let winddir = CGFloat(plot.windDir.floatValue)
            let windspeed = CGFloat(plot.windAvg.floatValue)
            let image = DrawArrow.drawArrowAtAngle( winddir, forSpeed:windspeed, highlighted:false, color: UIColor.whiteColor(), hightlightedColor: UIColor.blackColor())

            image.drawInRect(CGRectMake(x-8.0, bounds.maxY+10, 16.0, 16.0))


        let lengths = [2.0, 3.0] as [CGFloat]
        CGContextSetLineDash( context, 0.0, lengths, 2)
        CGContextDrawPath(context, CGPathDrawingMode.Stroke)

        CGContextRestoreGState(context)
    }
