From 76fe461363bac700cc0afe4046871c7a90a3cf68 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Tue, 11 Oct 2022 17:32:59 +1100 Subject: [PATCH] Add plot to documentation --- packages/website/docs/Api/Plot.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/website/docs/Api/Plot.md diff --git a/packages/website/docs/Api/Plot.md b/packages/website/docs/Api/Plot.md new file mode 100644 index 00000000..9a7d07f0 --- /dev/null +++ b/packages/website/docs/Api/Plot.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 8 +title: Plot +--- + +Plot objects can be created to make plots of different kinds. If you wish to plot +multiple distributions simultaneously, you can use `Plot.dist`. + +**Example** + +### dist + +``` +Plot.dist({show: list({name: string, value: distribution|number})}) +``` + +```js +Plot.dist({show: [{name: "normal", value: normal(0, 1)}, {name: "lognormal", value: 2 to 3}]}) +```