Core Plot 网格线移动经过轴

Core Plot grid lines moving past the axis

所以,这是一个老问题,但不能再用老方法解决了。我 found it here 和其他一些人。

这是一个由两部分组成的问题。首先,通过大量的搜索,我了解到我应该缩小可见范围并扩大实际范围以增加裁剪区域以便标签显示。这具有使绘图区域的线条与标签一起延伸的副作用。文件夹中的示例已过时,它们以 orthogonalPosition 作为轴 属性,不再存在,但曾经是解决方案。

(第 2 个问题)Core Plot 没有更新的文档或示例,我一直在使用猜测和检查几个小时,每张图,同时试图找到示例更新。有这方面的资源吗? wiki 仅具有设置和 api,但 api 不会告诉您 "you need to set the base value for the areaFill to show",但相比之下,它自动具有使刻度显示的默认值。刻度与间隔很容易弄清楚,但我最终不得不弄清楚,也没有记录。

orthogonalPosition 属性 是新版本。它是 2.0 版本 API 更新的一部分。还有一个 wiki page with details of the changes. The change log 也在网上显示了随着时间的推移发生的主要变化的历史。

当前的 API 文档始终可在 https://github.com/core-plot/core-plot.github.io. There are separate pages for the Mac and iOS/tvOS versions to account for differences between AppKit and UIKit. Core Plot includes several example apps that demonstrate many of the important concepts. The Plot Gallery app contains the widest array of features and runs on Mac, iOS, and tvOS. If you notice deficiencies in the API documentation like the areaFill example in the question, please open an issue on the issue tracker 在线获取。

我不知道有任何全面的高级文档详细介绍了所有内容。我考虑过写一本关于它的书,但这是一个大项目,我还没有投入其中。目前,Core Plot 包括 API 文档、示例应用程序和几个 wiki pages。网上也有各种关于不同主题的博客文章,但它们的质量各不相同,而且它们是否与更新的 Core Plot 版本保持同步。