Independent zoom of x and y axis in core plot
===

I am Using the below code to zoom my core plot X-axis and Y-axis. Its working. But I wish to zoom both axis independent from each other.

I want the plot to zoom along X if I pinch along x-direction 

and zoom 

Y if pinch along Y-direction. 

In the following method i have only one return value. So i couldn't
zoom independent. Knows someone a working code example?



    - (CPTPlotRange *)plotSpace:(CPTPlotSpace *)space 
      willChangePlotRangeTo:(CPTPlotRange *)newRange 
              forCoordinate:(CPTCoordinate)coordinate {
    
    CPTPlotRange *updatedRange = nil;
    
    switch (coordinate) {
        case CPTCoordinateX:
            if (newRange.locationDouble < 0.0F) {
                CPTMutablePlotRange *mutableRange = [newRange mutableCopy];
                mutableRange.location = CPTDecimalFromFloat(0.0);
                updatedRange = mutableRange;
            }
            else {
                updatedRange = newRange;
            }
            break;
            
            
        case CPTCoordinateY:
            if (newRange.locationDouble < 0.0F) {
                CPTMutablePlotRange *mutableRange2 = [newRange mutableCopy];
                mutableRange2.location = CPTDecimalFromFloat(0.0);
                updatedRange = mutableRange2;
            }
            else {
                updatedRange = newRange;
            }
            break;
            
        default:
            updatedRange = newRange;
            
            
    }
    return updatedRange;
   
}



