gpt4 book ai didi

objective-c - 如何将图例添加到核心图的散点图

转载 作者:可可西里 更新时间:2023-11-01 17:10:39 24 4
gpt4 key购买 nike

我在我的 iPhone 应用程序中使用核心绘图。如何在散点图中添加图例。谁能帮帮我?

提前致谢

最佳答案

graph_.legend = [CPTLegend legendWithGraph:graph_];
graph_.legend.fill = [CPTFill fillWithColor:[CPTColor darkGrayColor]];
graph_.legend.cornerRadius = 5.0;
graph_.legend.swatchSize = CGSizeMake(25.0, 25.0);
graph_.legendAnchor = CPTRectAnchorBottom;
graph_.legendDisplacement = CGPointMake(0.0, 12.0);

关于objective-c - 如何将图例添加到核心图的散点图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9662423/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com