我正在使用核心情节1.0。 目前我正在通过将Y范围定义为略低于0来使X轴绘制在屏幕底部上方20个点(因此标签可以显示)。
现在我被问到原点应该是0.0并且在两个轴上都不应该有低于0的任何值,所以我现在正在查看核心情节文档并且用以下问题摸不着头脑:
我需要设置什么属性才能将轴移动到我想要的位置并继续显示点标签和轴标题?
非常感谢!
I'm using core plot 1.0. Currently I'm making the X axis draw say 20 points above the bottom of the screen (so the labels can show up) by defining the Y range a little bit below 0.
Now I was asked that the origin point should be 0.0 and there should not be anything below 0 in both axes, so I'm now looking at the core plot documentation and scratching my head with the following question:
What property do I need to set to move the axes at the position I'd like to and also keep on showing the point labels and axis titles?
Thanks a lot!
最满意答案
我找到了所以我把它留在这里,如果有人需要帮助的话。
这有点棘手,你需要在绘图空间上调整xRange和yRange ,这样它就足以绘制标签,刻度和标题,然后调整每个轴上的visibleRange属性。 此时,您将获得所需的轴数量,并仍然显示所需的信息。
如果有人知道更好的方式请分享:)
I've found it so I leave it here for if somebody else needs help with this.
It is kind of tricky, you need to adjust the xRange and yRange on the plot space so it's big enough to draw the labels, the ticks and the titles and then adjust the visibleRange property on each axis. At this point you get the amount of axis you want and still displaying the information you need.
If someone knows a better way please share :)
更多推荐
发布评论