Skip to content

Commit 62e7cce

Browse files
committed
Made graph.size private, fixed bug in SetColors for 6 vars, better timescale for quickstart
1 parent e6b742d commit 62e7cce

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void setup()
3232
{
3333
p.Begin(); // start plotter
3434
35-
p.AddTimeGraph( "Some title of a graph", 500, "label for x", x ); // add any graphs you want
35+
p.AddTimeGraph( "Some title of a graph", 1500, "label for x", x ); // add any graphs you want
3636
}
3737
3838
void loop()

plotter/Plotter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ bool Plotter::SetColor( int index, String colorA, String colorB, String colorC,
141141
String colorD, String colorE, String colorF )
142142
{
143143
String colors[] = { colorA, colorB, colorC, colorD, colorE, colorF };
144-
return SetColorHelper( index, 5, colors );
144+
return SetColorHelper( index, 6, colors );
145145
}
146146

147147
bool Plotter::SetColorHelper( int index, int sz, String * colors )
@@ -200,8 +200,8 @@ void Plotter::Plot()
200200

201201
Plotter::Graph::Graph( String title, VariableWrapper * wrappers, int size, bool xvy, int pointsDisplayed ) :
202202
next( NULL ),
203-
size( size ),
204203
xvy( xvy ),
204+
size( size ),
205205
pointsDisplayed( pointsDisplayed ),
206206
title( title ),
207207
wrappers( wrappers )

plotter/Plotter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ class Plotter
226226

227227
// Data
228228
Graph * next;
229-
int size;
230229

231230
private:
232231
bool xvy;
232+
int size;
233233
int pointsDisplayed;
234234
String title;
235235
VariableWrapper * wrappers;

plotter/examples/quick_start/quick_start.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void setup()
1919
{
2020
p.Begin();
2121

22-
p.AddTimeGraph( "Some title of a graph", 500, "label for x", x );
22+
p.AddTimeGraph( "Some title of a graph", 1500, "label for x", x );
2323
}
2424

2525
void loop() {

0 commit comments

Comments
 (0)