--- trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/02 08:49:18 120 +++ trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/02 20:26:43 126 @@ -19,7 +19,7 @@ <{ GD::Image image; -image.CreateTrueColor( GD::Size(600,350)); +image.CreateTrueColor( GD::Size(600,360)); //Black color scheme //GD::TrueColor decoration(45,95,0); @@ -34,12 +34,13 @@ image.String(gdFontSmall, 250,5, "Temperature graph", text.Int()); +image.String(gdFontSmall, 200,18, "Latest 20 samples, in degrees Celcius", text.Int()); for (int i=0; i<11; ++i) { std::stringstream marker; marker << (100- (i*10)); - int y = (i*30) + 25; + int y = (i*30) + 40; image.Line( 30, y, 590, y, decoration.Int()); image.String(gdFontSmall, 5, y-7, marker.str().c_str(), text.Int()); @@ -61,11 +62,11 @@ tntdb::Result res = conn.select(query.str()); GD::Point previous; -for (int i=0; i