如何在核心图轴的末端设置箭头? [英] How to set arrows at the end of Core Plot axis?
问题描述
我发现Core Plot是非常好的绘图库。
但是有一个小问题:我找不到任何方法在图的轴端设置方向箭头。
我可能在这里丢失了某些东西吗?
I found Core Plot as very nice plotting library. But there is small issue: I can not find any way to set directional arrows at the end of axis for plots. Am I missing something here maybe?
推荐答案
Core Plot还不支持。您可以在Core Plot 问题跟踪器中添加增强请求。无法保证何时会实施这样的措施,但是一个公开的问题将使它不受关注。
This isn't supported by Core Plot yet. You can add an enhancement request at the Core Plot issue tracker. No guarantees on when something like this will be implemented, but an open issue will keep it on the radar.
同时,您可以使用绘图空间注释来伪造它。将自己的箭头放置在适当的位置。注释内容可以是 CPTLayer
,带有箭头的背景图像或自定义(即由您自己构建) CPTLayer
绘制箭头。
In the meantime, you could fake it using a plot space annotation to position your own arrow at the proper spot. The annotation content could be CPTLayer
with a background image of the arrow or a custom (i.e., built by you) CPTLayer
that draws the arrow.
Eric
这篇关于如何在核心图轴的末端设置箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!