iPad 应用程序中的核心情节

发布于 01-07 08:56 字数 83 浏览 3 评论 0原文

在核心图中我看到了绘图符号,如何用颜色填充绘图符号?可以举例说明吗? 还可以在指定的(x,y)位置制作一个绘图符号吗? 我从哪里得到核心情节的完整教程?

In core plot I saw plot symbol,how can I fill plot symbol with color? Can please explain with an example?
And also can make one plot symbol in a specified (x,y) position?
From where I got the complete tutorial for core plot?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁吢2025-01-14 08:56:18

绘图符号是散点图的可选部分。 Core Plot 附带的示例应用程序中有很多示例,包括绘图库中的演示,其中显示了所有预定义的绘图符号形状。

通过设置 plotSymbol 属性,您可以让散点图在每个数据点显示相同的符号。如果您希望在不同的点使用不同的符号,请实现以下数据源方法之一:

-(CPTPlotSymbol *)symbolForScatterPlot:(CPTScatterPlot *)plot
                           recordIndex:(NSUInteger)index;
-(NSArray *)symbolsForScatterPlot:(CPTScatterPlot *)plot
                 recordIndexRange:(NSRange)indexRange;

每个绘图符号都有一个 filllineStyle 来确定内部填充和边框线样式。这些是整个 Core Plot 中使用的标准 CPTFillCPTLineStyle 对象。

Plot symbols are an optional part of the scatter plot. There are lots of examples throughout the example apps included with Core Plot, including a demo in the Plot Gallery that shows all of the predefined plot symbol shapes.

You can have the scatter plot show the same symbol at every data point by setting the plotSymbol property. If you want different symbols at different points, implement one of the following datasource methods:

-(CPTPlotSymbol *)symbolForScatterPlot:(CPTScatterPlot *)plot
                           recordIndex:(NSUInteger)index;
-(NSArray *)symbolsForScatterPlot:(CPTScatterPlot *)plot
                 recordIndexRange:(NSRange)indexRange;

Each plot symbol has a fill and lineStyle that determine the inside fill and the border line style. These are standard CPTFill and CPTLineStyle objects used throughout Core Plot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文