title: Core Plot - Assigning a CPTGraphHostingView from a class
body: <p>I've been trying to get a dashboard working with various graphs presented using Core Plot. I've managed to get the first to work how I want by including the code in the AppDelegate.m, but this makes it difficult to get a second working and would mean that my AppDelegate becomes huge and difficult to work with if I include them all in the same file.</p>
  
  <p>Is there any way that I can set the CPTGraphHostingView that I want the plot to be contained in from a separate class? Or perhaps I can set a method to do this? This is probably a simple question but any help would be appreciated! I've looked through the examples provided in the SDK and don't seem to be able to work out how it's being done!</p>
  
  <p>This is the code I'm currently using in my AppDelegate method:</p>
  
  <pre><code>CPTTheme *theme = [CPTTheme themeNamed:kCPTDarkGradientTheme];
  graph = (CPTXYGraph*) [theme newGraph]; 
  _graphView.hostedGraph = graph;    
  </code></pre>
  
  <p>.... Followed by the specifications for the graph....</p>