Skip to content

Instantly share code, notes, and snippets.

@alwold
Created September 2, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwold/21f8dee29b4b38c17249 to your computer and use it in GitHub Desktop.
Save alwold/21f8dee29b4b38c17249 to your computer and use it in GitHub Desktop.
var plotSpace = graph.defaultPlotSpace as CPTXYPlotSpace
var xRange = plotSpace.xRange.mutableCopy() as CPTMutablePlotRange
var yRange = plotSpace.yRange.mutableCopy() as CPTMutablePlotRange
xRange.setLengthFloat(10)
yRange.setLengthFloat(10)
plotSpace.xRange = xRange
plotSpace.yRange = yRange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment