Showing posts with label Core Plot. Show all posts
Showing posts with label Core Plot. Show all posts

Thursday, November 8, 2012

Custom Color in Iphone and Core Plot

Custom Color in Iphone and Core Plot



Add Custom Color in Iphone

[UIColor colorWithRed:0.47 green:0.77 blue:0.37 alpha:1.0



Add Custom Color in Core-Plot

[CPTColor colorWithComponentRed:0.47 green:0.77 blue:0.37 alpha:1.0];

Tuesday, October 23, 2012

Core Plot Custom Themes in iPhone

Core Plot Custom Themes in iPhone


    CPTheme *theme = [CPTheme themeNamed:kCPPlainWhiteTheme]; 
    graph = (CPXYGraph *)[theme newGraph];
    
    graph.fill = [CPFill fillWithColor:[CPColor clearColor]];
    graph.plotAreaFrame.fill = [CPFill fillWithColor:[CPColor clearColor]];

You can apply following Themes in Core Plot

themeNamed:kCPPlainWhiteTheme
themeNamed:kCPTDarkGradientTheme
themeNamed:kCPTPlainBlackTheme
themeNamed:kCPTSlateTheme
themeNamed:kCPTStocksTheme