Hallo zusammen,
ich hab das Problem, dass eine Methode ab und zu funktioniert (was natürlich merkwürdig ist).
Der Code sieht wie folgt aus
Alles anzeigen
Es wird ein Plot angelegt. Wenn enabled == FALSE übergeben wird, soll er den Plot aus dem Graphen entfernen.
Manchmal tut es das auch, aber manchmal auch nicht. Weiß jemand warum?
Gruß
Damasus
ich hab das Problem, dass eine Methode ab und zu funktioniert (was natürlich merkwürdig ist).
Der Code sieht wie folgt aus
Quellcode
- CPTScatterPlot* xAchse = [[[CPTScatterPlot alloc] initWithFrame:graphView.bounds] autorelease];
- xAchse.identifier = @"xAchse";
- xAchse.dataSource = self;
- CPTPlotSymbol *greenCirclePlotSymbol = [CPTPlotSymbol ellipsePlotSymbol];
- greenCirclePlotSymbol.fill = [CPTFill fillWithColor:[CPTColor greenColor]];
- greenCirclePlotSymbol.size = CGSizeMake(10.0, 10.0);
- xAchse.plotSymbol = greenCirclePlotSymbol;
- if (enabled == TRUE)
- [graph addPlot:xAchse];
- else
- [graph removePlotWithIdentifier:@"xAchse"];
Es wird ein Plot angelegt. Wenn enabled == FALSE übergeben wird, soll er den Plot aus dem Graphen entfernen.
Manchmal tut es das auch, aber manchmal auch nicht. Weiß jemand warum?
Gruß
Damasus
