CorePlot axisLine和gridLine的长度太长 [英] CorePlot axisLine and gridLine length too long
问题描述
我碰到的唯一问题是轴和网格的长度。
我只在左侧和底部使用带有标签的正立体坐标系。
我的问题是轴和网格的长度方向我的标签。
我尝试使用:
axisSet.xAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@ - value);
axisSet.yAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@ - value);
或
x.labelOffset = value;
y.labelOffset = value;
但这只是设置我标签的距离不同而不影响网格长度。
在我的例子中, y轴
和那里 grid
重叠了我的标签:@ {1,2,3,4,5,6,7,8}
有人处理过同样的问题吗? THX for all answer to the way way!
visibleRange
和 gridLinesRange
来分别限制坐标轴和网格线。请参阅示例代码的 Plot Gallery 示例应用中的控制图。 I'm using CorePlot for my current project and its amazing.
The only problem I came across is the length of the axis and grids.
I'm only using a positiv coordinate system with labels on the left and bottom side.
And my problem is the length of the axis and grids in direction to my labels.
I tried to use:
axisSet.xAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"-value");
axisSet.yAxis.orthogonalCoordinateDecimal = CPTDecimalFromString(@"-value");
or
x.labelOffset = value;
y.labelOffset = value;
but this is only setting the distance of my labels different and not affecting the grids length.
In my example the y-axis
and there grid
overlaps my label:@{1,2,3,4,5,6,7,8}
Did somebody dealed with the same problem? THX for all answer to the right way!
Use the visibleRange
and gridLinesRange
to limit the axes and grid lines, respectively. See the "Control Chart" in the Plot Gallery example app for sample code.
这篇关于CorePlot axisLine和gridLine的长度太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!