CorePlot axisLine和gridLine的长度太长 [英] CorePlot axisLine and gridLine length too long

查看:170
本文介绍了CorePlot axisLine和gridLine的长度太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CorePlot来处理当前的项目,并且它非常棒。

我碰到的唯一问题是轴和网格的长度。

我只在左侧和底部使用带有标签的正立体坐标系。

我的问题是轴和网格的长度方向我的标签。


我尝试使用:

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆