mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
[plotter] disable usused std and average computation to prevent glib warning (fix #1936)
This commit is contained in:
@@ -282,11 +282,11 @@ class plot = fun ~size ~update_time ~width ~height ~packing () ->
|
|||||||
dr#set_foreground (`NAME a.color);
|
dr#set_foreground (`NAME a.color);
|
||||||
dr#lines !curve;
|
dr#lines !curve;
|
||||||
end;
|
end;
|
||||||
let fn = float !n in
|
(*let fn = float !n in
|
||||||
let avg = !sum /. fn in
|
let avg = !sum /. fn in
|
||||||
let stdev = sqrt ((!sum_squares -. fn *. avg *. avg) /. fn) in
|
let stdev = sqrt ((!sum_squares -. fn *. avg *. avg) /. fn) in
|
||||||
set_float_value a.average avg;
|
set_float_value a.average avg;
|
||||||
set_float_value a.stdev stdev;
|
set_float_value a.stdev stdev;*)
|
||||||
|
|
||||||
(* Title *)
|
(* Title *)
|
||||||
Pango.Layout.set_text layout title;
|
Pango.Layout.set_text layout title;
|
||||||
|
|||||||
Reference in New Issue
Block a user