简体   繁体   English

CorePlot 1.3:在轴和标签之间设置空间

[英]CorePlot 1.3: setting space between axis and labels

I need to position the y-axis according to the width of the labels, which is calculated dynamically. 我需要根据标签的宽度定位y轴,该宽度是动态计算的。 I have searched in the doc but I found nothing, even if it seems a pretty obvious thing to do. 我在文档中进行了搜索,但是即使看起来很明显,也没有发现任何内容。 How do I accomplish this? 我该如何完成?

EDIT: 编辑:

I solved it with: 我解决了:

[graph.plotAreaFrame setPaddingLeft: padding];

check the axis labeling policy,set the CPTAxisLabelingPolicyAutomatic 检查轴标签策略,设置CPTAxisLabelingPolicyAutomatic

For Hint yAxis.labelPolicy = CPTAxisLabelingPolicyAutomatic 对于提示yAxis.labelPolicy = CPTAxisLabelingPolicyAutomatic

For hint Please check so Answer 对于提示,请检查以便答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM