CorePlot 0.9:isFloatingAxis属性的替代品 [英] CorePlot 0.9: alternatives to isFloatingAxis property
问题描述
https://github.com/djw/core-plot/tree/ 9282845bddbb8c40ff314bbfa158beff797c91f7 / examples
这表明isFloatingAxis属性已从0.9版本中删除。
<有人知道如何浮动X轴没有这个属性?换句话说,如果我想让图的原点为(0,6000),我们可以说,如何将x轴保留在绘图范围内,而y轴未设置为:
y.orthogonalCoordinateDecimal = CPTDecimalFromInt(0);
我可以通过查看CorePlot_0.9文件夹中的CPTTestApp示例来了解这一点。我查看了类文件,发现它在Controller.m中:
x.axisConstraints = [CPTConstraints constraintWithUpperOffset:132];
目前,这是将我的x轴保持在同一个点上,所以我可以将orthogonalCoordinateDecimal更改为6000或者没有x轴和标签的任何东西消失。
https://github.com/djw/core-plot/tree/9282845bddbb8c40ff314bbfa158beff797c91f7/examples
This states that the isFloatingAxis property has been removed from at least version 0.9.
Does anyone know how to float the x axis without this property? In other words, if I want the origin of the graph to be (0,6000) lets say, how can I maintain the x axis inside the plot range, while the y axis is NOT set to:
y.orthogonalCoordinateDecimal = CPTDecimalFromInt(0);
I was able to figure this out by looking in the CPTTestApp example from the CorePlot_0.9 folder. I looked in the class files and found this in Controller.m:
x.axisConstraints = [CPTConstraints constraintWithUpperOffset:132];
For now, this is holding my x axis in the same spot so I can change the orthogonalCoordinateDecimal to 6000 or whatever without the x axis and labels disappearing.
这篇关于CorePlot 0.9:isFloatingAxis属性的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!