Skip to content

Instantly share code, notes, and snippets.

@jzstark
Created July 3, 2017 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jzstark/72b847832222259e04ac9d4aeda24dd8 to your computer and use it in GitHub Desktop.
Save jzstark/72b847832222259e04ac9d4aeda24dd8 to your computer and use it in GitHub Desktop.
(*example*)
(*Add logscale: Add xlogscale and ylogscale properties to a page;
The logdata still needs to be precomputed.*)
let x = Mat.logspace (-1.) 2. 10 in
let y = Mat.map Maths.exp x in
let z = Mat.log10 y in
let h = create "log4.pdf" in
let _ = scatter ~h ~color:(255,0,0)~marker:"#[0x2299]" ~marker_size:8. x z in
let _ = legend_on h ~position:SouthEast [|"sigmoid"|] in
output h;;
(*using a modified version of ouput. logplot to be presented soon*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment