     var offset: CGFloat!
     
     if fullHorizontal {
-        yScalingFactor = yScalingFactor * (CGFloat(1) / ratio)
+        yScalingFactor = (CGFloat(1.0) / highestY) * (toSize.height * (CGFloat(1) / ratio))
         
         let newY = highestY * yScalingFactor
         offset = (toSize.height - newY) / CGFloat(2)

    //// www.paintcodeapp.com
    
    //// Color Declarations
    let color2 = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000)
    
    //// Bezier Drawing
    var bezierPath = UIBezierPath()

    //// www.paintcodeapp.com
    
    //// Color Declarations
    let color = color
    
    //// Oval Drawing
    var ovalPath = UIBezierPath(ovalInRect: CGRectMake(0 * xScalingFactor, 0 * yScalingFactor, 40 * xScalingFactor, 40 * yScalingFactor))
