iphone, utilizando una matriz para definir en el rango de trazado central

Ya casi termino con un gráfico de trama central en el que he estado trabajando durante un par de días. Hay algo que todavía no puedo hacer (y no puedo encontrar documentación sobre esto), es cambiar las etiquetas del eje x a lo que necesito. Hoy, tengo un eje x con una etiqueta de número entero que se muestra cada 5 valores: "5 10 15 ...", necesito tener etiquetas que correspondan a las últimas 24 horas. Por ejemplo, si son las 15:00, necesitaría etiquetas como: "15 16 17 ... 23 0 1 2 .. 15" Estaba pensando en usar un NSArray para esto y pasarlo al plotSpace.xRange pero no saber si esta es la buena manera de hacerlo. Aquí está mi código:

            CPXYPlotSpace *plotSpace = (CPXYPlotSpace *)graph.defaultPlotSpace;
            plotSpace.xRange = [CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(-15)
                                                           length:CPDecimalFromFloat(xmax + 15)];
            plotSpace.yRange = [CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(-1000)
                                                           length:CPDecimalFromFloat(4300)];


            // Setup axis
            CPXYAxisSet *axisSet = (CPXYAxisSet *)graph.axisSet;
            CPLineStyle *lineStyle = [CPLineStyle lineStyle];
            lineStyle.lineColor = [CPColor whiteColor];
            lineStyle.lineWidth = 1.0f;
            CPTextStyle *cyanStyle = [CPTextStyle textStyle];
            cyanStyle.color = [CPColor cyanColor];
            NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
            [formatter setMaximumFractionDigits:0];

            axisSet.xAxis.majorIntervalLength = [[NSDecimalNumber decimalNumberWithString:@"5"] decimalValue];
            axisSet.xAxis.minorTicksPerInterval = 0;
            axisSet.xAxis.majorTickLineStyle = lineStyle;
            axisSet.xAxis.minorTickLineStyle = lineStyle;
            axisSet.xAxis.axisLineStyle = lineStyle;
            axisSet.xAxis.majorTickLength = 5.0f;
            axisSet.xAxis.labelOffset = 3.0f;
            axisSet.xAxis.labelExclusionRanges = [NSArray arrayWithObjects:
                                      [CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(-15) 
                                                                  length:CPDecimalFromFloat(15)], 
                                      nil];
            axisSet.xAxis.visibleRange = [CPPlotRange plotRangeWithLocation:CPDecimalFromInteger(0) length:CPDecimalFromInteger(xmax)];
            axisSet.xAxis.labelFormatter = formatter;
            axisSet.xAxis.title = @"Hour";
            axisSet.xAxis.titleOffset = 25.0f;
            axisSet.xAxis.titleLocation = CPDecimalFromFloat(25.0f);
            axisSet.xAxis.titleTextStyle = cyanStyle;

Cualquier ayuda sería realmente bienvenida :) Muchas gracias, Luc

Respuestas a la pregunta(1)

Su respuesta a la pregunta