CorePlot axisLine and gridLine length too long

2019-07-30 20:52发布

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!

1条回答
放荡不羁爱自由
2楼-- · 2019-07-30 21:03

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.

查看更多
登录 后发表回答