核心情节图轴位置(Core Plot Charts Axis Position)

系统教程 行业动态 更新时间:2024-06-14 16:57:40
核心情节图轴位置(Core Plot Charts Axis Position)

我正在使用核心情节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 :)

更多推荐

本文发布于:2023-04-13 12:15:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/401ac00345d8024e14292cc606f03363.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:情节   核心   位置   Core   Position

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!