Skip to content

Instantly share code, notes, and snippets.

@lidangzzz
Last active December 14, 2020 00:22
Show Gist options
  • Save lidangzzz/168cc7bda54881569bda699a6d52bcca to your computer and use it in GitHub Desktop.
Save lidangzzz/168cc7bda54881569bda699a6d52bcca to your computer and use it in GitHub Desktop.
demo_2.hhs
// generate 2D points as vectors of x and y
let x = range(-10,10,0.1);
let y = sin(x) + random(1,x.cols);
// plot x and y as scatter
plot2D(x,y);
// ploy x and y as line
plot2DLine(x,y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment