title: Core Plot: How to position the axis title for two y-axes at the same height?
body: <p>I am using two y-axes (y and y2) in my scatter plot and I would like to position titles for each axis at the same height.</p>
  <p>Please refer to my sample chart below, where I have two titles (y: &quot;USD&quot; and y2: &quot;ev/ebit&quot;). Unfortunately, I did not find a way to draw both titles at exactly the same height (y-value).</p>
  <p>This is how I currently calculate the y-location for my titles:</p>
  <pre><code>double yTitleLocation = plotSpace.yRange.lengthDouble + plotSpace.yRange.locationDouble;
  yAxis.titleLocation = CPTDecimalFromDouble(yTitleLocation);
  yAxis.title = self.issue.company.contrCurrency;
  yAxis.titleRotation = 2 * M_PI;
  yAxis.titleOffset = -15;
  
  double y2TitleLocation = valuationPlotSpace.yRange.lengthDouble + valuationPlotSpace.yRange.locationDouble;
  y2Axis.titleLocation = CPTDecimalFromDouble(y2TitleLocation);
  y2Axis.title = self.valuation.id;
  y2Axis.titleRotation = 2 * M_PI;
  </code></pre>
  <p>How would I need to change my code to draw the title at the same y-value for both y-axes?</p>
  <p>What would you suggest to left-align my title for the y-axis and right-align for the y2-axis. I am currently using titleOffset for the y-axis but believe there could be a better way to do this.</p>
  <p>Thank you!
  <img src="https://i.stack.imgur.com/fbCrT.png" alt="Axis titles" /></p>
  <p>Chart after the bug fix in the Core-Plot framework:
  (please refer to the answer 1 below)</p>
  <p><img src="https://i.stack.imgur.com/a1w8Q.png" alt="enter image description here" /></p>
  <h1>Edit: This is how I set up my chart:</h1>
  <p>I have added this code snippet to show how I set up the graph and the two scatter charts (stock price and valuation):</p>
  <pre><code>graph = [[CPTXYGraph alloc] initWithFrame:CGRectZero];
  self.hostView.hostedGraph = graph;
  [graph applyTheme:[CPTTheme themeNamed:kCPTPlainWhiteTheme]];    
  graph.frame = self.view.bounds;
  graph.plotAreaFrame.masksToBorder = NO;
  graph.plotAreaFrame.cornerRadius  = 0.0f;
  
  CPTScatterPlot *sharePricePlot = [[CPTScatterPlot alloc] initWithFrame:graph.bounds];
  sharePricePlot.identifier = @&quot;CloseSharePricePlot&quot;;
  sharePricePlot.dataLineStyle = sharePricePlotLineStyle;
  sharePricePlot.dataSource = self;
  
  CPTScatterPlot *valuationPlot = [[CPTScatterPlot alloc]initWithFrame:graph.bounds];
  valuationPlot.dataSource = self;
  
  CPTXYPlotSpace *valuationPlotSpace = [[CPTXYPlotSpace alloc] init];
  valuationPlotSpace.identifier = ValuationPlotSpaceIdentifier;
  [graph addPlotSpace:valuationPlotSpace];
  
  CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)graph.defaultPlotSpace;
       
  [plotSpace scaleToFitPlots:[NSArray arrayWithObject:sharePricePlot]];
  [valuationPlotSpace scaleToFitPlots:[NSArray arrayWithObject:valuationPlot]];
  </code></pre>