Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to set background color of hostingview in coreplot?

Tags:

ios

core-plot

i need to set background color of hosting view in core plot to clear color.can anyone help me with that?

like image 848
Mansi Panchal Avatar asked May 24 '12 09:05

Mansi Panchal


1 Answers

The Core Plot hosting view is a subclass of UIView. It should default to a clear backgroundColor. See the UIView docs.

You can also set a fill on the graph using your image instead of placing it in the background.

graph.fill = [CPTFill fillWithImage:[CPTImage imageWithCGImage:myCGImage]];

This is just one example. CPTImage also has several other initialization methods.

like image 119
Eric Skroch Avatar answered Nov 15 '22 08:11

Eric Skroch