Coreplot graph fill color along y-axis

Solutions Collect From Internet About “Coreplot graph fill color along y-axis”

Core Plot calls that a “background limit band”. There are examples in several of the example apps, including the Plot Gallery.

CPTPlotRange *range = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromDouble(4.0)
                                                   length:CPTDecimalFromDouble(6.0)];
CPTFill *bandFill = [CPTFill fillWithColor:[CPTColor blueColor]];
[yAxis addBackgroundLimitBand:[CPTLimitBand limitBandWithRange:range
                                                          fill:bandFill]];