-1
我跟隨此帖子Core plot: How to hide the plot, axis and labels?隱藏x/y軸。使用隱藏屬性弄亂了該地塊,並顯示使用默認X/Y軸的範圍(0至-1)設置xAxis/yAxis隱藏屬性完全破解coreplot圖形
CPTXYAxisSet *axistSet =(CPTXYAxisSet *)self.graph.axisSet;
axistSet.xAxis.hidden = YES;
axistSet.yAxis.hidden = YES;
axistSet.xAxis.labelingPolicy = CPTAxisLabelingPolicyNone;
axistSet.yAxis.labelingPolicy = CPTAxisLabelingPolicyNone;
通過嘗試和錯誤圖形,下面的代碼來實現我想要的東西:隱藏x和y軸而情節顯示正確的價值。
CPTXYAxisSet *axistSet =(CPTXYAxisSet *)self.graph.axisSet;
axistSet.xAxis.labelingPolicy = CPTAxisLabelingPolicyNone;
axistSet.yAxis.labelingPolicy = CPTAxisLabelingPolicyNone;
axistSet.xAxis.axisLineStyle = nil;
axistSet.yAxis.axisLineStyle = nil;
什麼是隱藏x和y軸的正確方法?