plotly interface based on ardunio sample code

Dependents:   Plotly_HelloWorld

Library for plotting a simple x/y scatter chart on the plot.ly website.

See plotly_HelloWorld for sample usage.

Revision:
5:fc8eefeb301b
Parent:
4:33006c37c633
Child:
7:9409a72ab6c0
--- a/plotly.h	Fri Jul 11 10:10:16 2014 +0000
+++ b/plotly.h	Mon Jul 28 10:56:42 2014 +0000
@@ -67,6 +67,15 @@
         void plot(unsigned long x, float y);
 
         /**
+        Adds a point to the chart. The chart MUST be initalised before calling this.
+        Note, if the streaming network port is closed then this will attempt to open the port and re-establish the stream connection, this could block for a while.
+        
+        @param x The X value.
+        @param y The y value.
+        */
+        void plot(float x, float y);
+
+        /**
         Opens the streaming connection.
         
         Normally you'd do this after a sucessful call to init() and before starting plotting in order to avoid a connection delays when you first call plot()