如何设置核心图中轴的绝对位置

发布于 2024-09-17 03:17:21 字数 169 浏览 2 评论 0原文

我现在正在 iPhone 上处理核心图,并且尝试以 [0,0] 坐标始终位于同一位置的方式设置 ScatterPlot 图表(即距左侧 40 像素和距左侧 40 像素)从底部)

我只是浪费了 4 个小时试图让它工作,但仍然不知道,救命!

额外问题 - 如何设置轴以仅使 >0 部分可见?

I'm working with core plot on iPhone now, and I'm trying to set up the ScatterPlot graph in such a way that [0,0] coordinates are always at the same place (that is 40 pixels from the left and 40 pixels from the bottom)

I just wasted 4 hours trying to get this to work, and still have no idea, help!

Bonus question - how to set up axises to make only the >0 parts visible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女的英雄梦 2024-09-24 03:23:31
graph.plotAreaFrame.paddingBottom = 40.0;
graph.plotAreaFrame.paddingLeft = 40.0;

奖金:
设置填充将移动轴和绘图区域,使原点从左侧和底部偏移 40 像素。

graph.plotAreaFrame.paddingBottom = 40.0;
graph.plotAreaFrame.paddingLeft = 40.0;

Bonus:
Setting the padding will move the axes and plot area so your origin is offset from the left and bottom by 40px.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文