title: How to animate only x Axis in core plot?
body: <p>I am animating x Axis value in core plot but with that my xAxis , yAxis is also animating and disappearing . My set up for graph is shown in here as I have some issue related to graph data I have asked question and here as u can see in code graph set up is correct : <a href="https://stackoverflow.com/questions/38184749/how-to-pass-time-as-xaxis-data-value-in-method-numberforplot-using-core-plot/38187534?noredirect=1#comment63833341_38187534">Graph set up code</a>. What is missing? MY code for animation is as below: </p>
  
  <pre><code> let plotSpace = graph.defaultPlotSpace as! CPTXYPlotSpace!
      let location = currentIndex
      let oldRange = CPTPlotRange(location: location , length: kMaxDataPoints - 2)
  
      let newRange = CPTPlotRange(location: location + 1, length: kMaxDataPoints - 2)
  
      CPTAnimation.animate(plotSpace, property: "xRange", fromPlotRange: oldRange, toPlotRange: newRange, duration: 1.0)
  
      currentIndex += 1
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/qiopD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qiopD.png" alt="image"></a></p>