CorePlot axisLine and gridLine length too long

断了今生、忘了曾经 提交于 2019-12-13 00:29:53

问题


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:


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.



来源:https://stackoverflow.com/questions/14011194/coreplot-axisline-and-gridline-length-too-long

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!