1

我想个性化绘图区域的大小,因为我发现绘图区域太小,所以百分比数字部分可见。另外我不想重写 CPTTheme 类,有什么想法吗?

4

2 回答 2

0

A theme is just a convenient way to set a lot of appearance properties (line styles, fills, etc.) all at once. You can start by setting a theme and then changing some of the properties, or skip the theme and start with the defaults.

于 2013-06-28T11:17:31.477 回答
0

您没有在这个问题中提供足够的信息和代码。但我认为您可以使用填充:

graph.plotAreaFrame.paddingBottom=25;
graph.plotAreaFrame.paddingLeft=40;
graph.plotAreaFrame.paddingRight=20;
graph.plotAreaFrame.paddingTop=20;
[graph applyTheme:[CPTTheme themeNamed:kCPTSlateTheme]];
于 2013-06-28T04:12:50.023 回答