title: Core Plot: Displaying Right Aligned Y Axis on iOS
body: <p>I have search for quite some time now and found a good amount of old resources that at one point were working solutions to my current issue. However, Core Plot has evolved and the solutions I've found are no longer functional if implemented in the same way. I was hoping I could get an up to date answer for what I'm sure is a common feature of various graphs and charts.</p>
  
  <p>My current issue is that when I try to right align one of the 3 axes that I have on my plot, while the axis itself, title included, does moves, there are no tick marks, or associated labels. I'm guessing what I have is probably incomplete.</p>
  
  <p>Here is my relevant axis generation code:</p>
  
  <pre><code>CPTAxis *yRight = [[CPTXYAxis alloc] init];
  yRight.Title = @"Right Axis";
  yRight.titleOffset = 10.0f;
  yRight.axisLineStyle = axisLineStyle;
  yRight.majorTickLineStyle = axisLineStyle;
  yRight.minorTickLineStyle = axisLineStyle;
  yRight.labelTextStyle = axisTextStyle;
  yRight.labelOffset = 3.0f;
  yRight.majorIntervalLength = CPTDecimalFromFloat(10.0f);
  yRight.minorTicksPerInterval = 5;
  yRight.minorTickLength = 5.0f;
  yRight.majorTickLength = 7.0f;
  
  axisSet.axes = [NSArray arrayWithObjects:x, yRight, yLeft, nil];
  self.hostView.hostedGraph.axisSet = axisSet;
  
  //Next two lines are in charge of right aligning y axis
  axisSet.yAxis.axisConstraints = [CPTConstraints constraintWithUpperOffset:0];
  //axisSet.yAxis.tickDirection = CPTSignPositive; this is commented out because I havent found it to do anything, though may be necessary for it to work once complete.
  
  CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)hostView.hostedGraph.defaultPlotSpace;
  x.plotSpace = plotSpace;
  yLeft.plotSpace = plotSpace;
  yRight.plotSpace = plotSpace;
  </code></pre>
  
  <p>I have the feeling that what I'm missing isn't a whole lot, but I've just run out of ideas on what to look for and try at this point.</p>
  
  <p>Mini side question, are floating axes supported for iOS? axisSet.yAxis.isFloatingAxis gives me an error :(</p>
  
  <p>Thank you for any help you can provide!</p>