見出し
scatterPlot グラフを描画するために CorePlot Library を使用しています。CPTXYGraph および CPTGraphHostingView インスタンスを作成するためにカスタマイズされたフレームを使用すると、グラフは実際のグラフのミラー イメージとして表示されます (つまり、逆の方法で)。私が間違いを犯している場所を誰か教えてください。助けてください。これが私のコードです:
graph = [[CPTXYGraph alloc] initWithFrame:CGRectMake(0, 0, 320, 300)];
CPTTheme *theme = [CPTTheme themeNamed:kCPTDarkGradientTheme];
[graph applyTheme:theme];
CPTGraphHostingView *hostingView = [[CPTGraphHostingView alloc] initWithFrame:CGRectMake(0, 0, 320, 300)];
[self.view addSubview:hostingView];
hostingView.collapsesLayers = NO;
hostingView.hostedGraph = graph;