Guillaume Hennequin avatar Guillaume Hennequin committed a9ee3ec

rename some functions (with underscores)

Comments (0)

Files changed (2)

 let close f = ignore (Unix.close_process_out f)
-let endSignal f = fprintf f "e\n%!"
+let end_signal f = fprintf f "e\n%!"
-let sendColumns m f =
+let send_columns m f =
     let cols = Array.length m in
     let rows = Array.fold_left max (-1) ( Array.length m) in
     for i=0 to rows-1 do
             else fprintf f "- ";
         done; fprintf f "\n%!";
-    endSignal f
+    end_signal f
     (* for some reason, gnuplot wants a double "e" at the end
      of the stream for matrix data given to [splot()] ... *)
-let sendMatrix m f =
-    sendColumns m f;
+let send_matrix m f =
+    send_columns m f;
     fprintf f "e\n%!"
 let plot data f =
     let cmds = (fun (_,opts) -> sprintf "'-' %s" opts) data in
     let cmd = "plot " ^ String.concat ", " cmds in
     send [cmd] f;
-    List.iter (fun (d,_) -> sendColumns (Array.of_list d) f) data
+    List.iter (fun (d,_) -> send_columns (Array.of_list d) f) data
 let splot data f =
         sprintf "set yrange [%f:%f] reverse" (-0.5) (float m -. 0.5);
         sprintf "splot '-' %s" opts
     ] f;
-    sendMatrix mat f
+    send_matrix mat f
 let margins ?t ?b ?l ?r f =
     let setm s x = match x with
    the columns are actually the lines of your vectors, i.e.
    [sendColumns [| col1; col2; ... |]] ;
    useful with [plot '-'] *)
-val sendColumns : float array array -> t -> unit
+val send_columns : float array array -> t -> unit
 (** send matrix data to gnuplot -- for use with [splot()] *)
-val sendMatrix : float array array -> t -> unit
+val send_matrix : float array array -> t -> unit
 (** plot data ; this is rather flexible, you can do stuff like
    {[ plot [[x1;y1], "t 'foo' w l ls 7";
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.