gpt4 book ai didi

ios - CPTScatterPlotInterpolationCurved 类型无法正常工作

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:39:01 25 4
gpt4 key购买 nike

我正在使用 Coreplot 框架来创建折线图,

 CPTScatterPlot *plot = [[CPTScatterPlot alloc] init];
plot.dataSource = self;
plot.identifier = @"mainplot";
plot.dataLineStyle = lineStyle_;
plot.plotSymbol = plotSymbol;
plot.interpolation = CPTScatterPlotInterpolationCurved;
[self.graph addPlot:plot];

如果我使用 CPTScatterPlotInterpolationLinear 点在图中正确连接但是 CPTScatterPlotInterpolationCurved 点在图中设置不正确

1.使用CPTScatterPlotInterpolationLinear CPTScatterPlotInterpolationLinear

2.使用CPTScatterPlotInterpolationCurved enter image description here

顶部点工作正常,只有底部点设置不正确,请参见点 { (2,0),(3,0)},如何解决此问题?

最佳答案

这是按设计工作的。目标是获得一条通过所有数据点的平滑曲线,方向的突然变化尽可能少。

如果您有关于如何改进它的建议,请在 Core Plot 上打开增强请求 issue tracker .

关于ios - CPTScatterPlotInterpolationCurved 类型无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19852898/

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