Note that there are some explanatory texts on larger screens.

plurals
  1. POCoreplot plot space range - iOS
    primarykey
    data
    text
    <p>I'm trying to come up with a scatter plot whose range depends on the value received. The given variable self.xAxisMinimum takes in the first value of the data received. However when I run my program it reads such that, when self.xAxisMinimum = 4688 the plotspace.range starts from 5000. Given below is the plotspace settings. </p> <pre><code>CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)self.graph.defaultPlotSpace; plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(self.xAxisMinimum - 100) length:CPTDecimalFromFloat(60*60)]; plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(yAxisMin) length:CPTDecimalFromFloat(yAxisMax - yAxisMin)]; </code></pre> <p>Is it anything related to the the major interval length? I have major interval length of 180seconds. Give below is the code for the Xaxis-set's parameters.</p> <pre><code>axisSet.xAxis.title = @"Time(per sec)"; axisSet.xAxis.titleTextStyle = textStyle; axisSet.xAxis.axisLineStyle = lineStyle; axisSet.xAxis.titleOffset = 30.0f; axisSet.xAxis.majorTickLineStyle = lineStyle; axisSet.xAxis.minorTickLineStyle = lineStyle; axisSet.xAxis.majorGridLineStyle = lineStyle; axisSet.xAxis.minorGridLineStyle=gridStyle; axisSet.xAxis.labelOffset = 6.0f; axisSet.xAxis.majorIntervalLength = CPTDecimalFromFloat(180.0f); axisSet.xAxis.minorTicksPerInterval = 5; axisSet.xAxis.minorTickLength = 0.50f; axisSet.xAxis.majorTickLength = 0.50f; axisSet.xAxis.labelTextStyle = textStyle; axisSet.xAxis.labelFormatter = formatter; </code></pre> <p>So for this set up I should have had a x axis starting from (4688-100) instead of 5000. Anyone have any idea why? thanks much in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload