2014-03-03 185 views

回答

2

你可以做到這一點的限制使你的軸時,

CPTXYAxis *x = [self _makeDefaultAxis]; 
x.coordinate = CPTCoordinateX; 
x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 
x.tickDirection = CPTSignPositive; 
// ... 

CPTXYAxis *y = [self _makeDefaultAxis]; 
y.coordinate = CPTCoordinateY; 
y.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 
y.tickDirection = CPTSignPositive; 
// ... 

CPTXYAxis *y2 = [self _makeDefaultAxis]; 
y2.coordinate = CPTCoordinateY; 
y2.axisConstraints = [CPTConstraints constraintWithUpperOffset:0.0]; 
y2.tickDirection = CPTSignNegative; 
// ... 

CPTXYAxis *x2 = [self _makeDefaultAxis]; 
x2.coordinate = CPTCoordinateX; 
x2.axisConstraints = [CPTConstraints constraintWithUpperOffset:0.0]; 
x2.tickDirection = CPTSignNegative; 

其中給出類似,

Box axis

所以也表明你需要的標籤,以調節填充等

相關問題