for loop - Android how to Add double values to AndroidPlot library? -


hi creating 1 activity android plot library, in adding simple string values using loop

  (int = 0; < 2; i++, scale *= 5) {          series[i] = new simplexyseries("s");          populateseries(series[i], scale);     } 

in series values add androidplot lib, working useing

   mysimplexyplot.addseries(series[1],             new lineandpointformatter(color.rgb(0, 50, 0), null,  null, null)); 

but want add double values in place of series values

    (int = 0; < numsamples; ++i) {         sample[i] = math.sin(2 * math.pi * / (samplerate / freqoftone));           toast.maketext(touchzoomexampleactivity.this, " = = > " +sample[i], toast.length_short);     //  log.i(" touch zoom ===> ", "" + + "== > "+ sample[i] );     } 

but bouble valus not possible add plot lib 1 have idea one.

try type of series

xyseries series = (xyseries) new simplexyseries(arrays.aslist(new number[] { 1, 2, 3 }),             simplexyseries.arrayformat.y_vals_only, "title"); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -