What libraries have you used to do the plot???

49 views
Skip to first unread message

Alessio Giannelli

unread,
Jun 12, 2014, 8:34:19 AM6/12/14
to talos-...@googlegroups.com
Hi I was just wondering what libraries have you used to create the plot. I was wondering because I have to do an android app that has to plot in real time.

Thanks for the answer

Johannes Rudolph

unread,
Jun 12, 2014, 9:19:39 AM6/12/14
to talos-...@googlegroups.com
Hi Allessio, 

I haven't written the code, but AFAIK talos implements it's own drawing on top of android.graphics, which means it's simple CPU based 2D rendering - the code is here: https://gitorious.org/talos-rowing/tshalif-talos-rowing/source/dc955a9ac1f2878c5e0f9be51d0668dabeafff6f:android/src/org/nargila/robostroke/android/graph

Depending on the volume of data (and the hardware of course) this can be pretty slow. For optimal performance (and energy saving) you'll likely be better off using OpenGL to draw your graphs. On the downside, this is a lot more complex but we'll worth it when you're serious about drawing non-trivial amounts of data-points. I'm one of the developers behind http://www.rowinginmotion.com and we use OpenGL for drawing boat acceleration graphs. 

Regards,
Johannes


On Thu, Jun 12, 2014 at 2:34 PM, Alessio Giannelli <alessio.g...@gmail.com> wrote:
Hi I was just wondering what libraries have you used to create the plot. I was wondering because I have to do an android app that has to plot in real time.

Thanks for the answer

--
You received this message because you are subscribed to the Google Groups "talos-rowing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to talos-rowing...@googlegroups.com.
To post to this group, send email to talos-...@googlegroups.com.
Visit this group at http://groups.google.com/group/talos-rowing.
For more options, visit https://groups.google.com/d/optout.

tshalif

unread,
Jun 15, 2014, 12:23:50 PM6/15/14
to talos-...@googlegroups.com
As noted by Johannes, Talos Rowing provides its own plotting classes using direct 2d APIs. For the amount of data (i.e. sensor input granularity of 50 milliseconds) it is currently handling there was never a performance issue. Even with a 10 millisecond granularity I don't think you will find the graph drawing to be a performance bottle-neck - though I only very briefly tested this on a dual core Android device as was common about 2 years ago.
Reply all
Reply to author
Forward
0 new messages