我正在尝试使用 Core Plot 绘制一个简单的线图。情节标签似乎在末端附近被切掉。
我以这种方式设置填充:
self.graph.plotAreaFrame.paddingBottom = 25.0;
self.graph.plotAreaFrame.paddingTop = 25.0;
self.graph.plotAreaFrame.paddingLeft = 25.0;
self.graph.plotAreaFrame.paddingRight = 25.0;
并将轴设置为零
[self.graph addPlot:plot];
self.graph.axisSet = nil;
self.graphHostView.allowPinchScaling = YES;
self.graphHostView.hostedGraph = self.graph;
[self.view addSubview:self.graphHostView];