0

我正在尝试使用 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];
4

1 回答 1

1

Expand the xRange and/or yRange of the plot space a bit so the plot points don't fall right on the edge of the plot area. Look at the "Control Chart" demo in the Plot Gallery example app for sample code.

于 2013-05-07T00:22:31.573 回答