<commit_before># Plotting

> This exercise covers plotting in JavaScript using the [stdlib][stdlib] plot API.


## Exercises

### 1) Plot Instances

* Create a `plot` instance.
* Try setting various properties with what you consider expected and unexpected values.


### 2) Plot Types

For each exercise, generate both a `browser` view and a `window` view.

* Create a `plot` instance configured to plot a single line.
* Create a `plot` instance configured to generate a scatter plot.
* Create a `plot` instance configured to plot multiple lines. Experiment with different line styles, colors, and other properties.
* Create a `plot` instance configured to plot data as a line plot combined with a scatter plot.
* Create a scatter plot with axes rug plots.


### 3) Multiple Plots

* Generate multiple plots and display them as a single web page in your browser.


## Tips

* For [`plot`][plot] documentation, see the [docs][plot].
* To display multiple plots, see the [disposable HTTP server][disposable-http-server] module and [vdom-to-html][vdom-to-html].


## Testing

Assuming that each solution is placed in a separate file,
<commit_msg>Add links<commit_after># Plotting

> This exercise covers plotting in JavaScript using the [stdlib][stdlib] plot API.


## Exercises

### 1) Plot Instances

* Create a [`plot`][plot] instance.
* Try setting various properties with what you consider expected and unexpected values.


### 2) Plot Types

For each exercise, generate both a `browser` view and a `window` view.

* Create a [`plot`][plot] instance configured to plot a single line.
* Create a [`plot`][plot] instance configured to generate a scatter plot.
* Create a [`plot`][plot] instance configured to plot multiple lines. Experiment with different line styles, colors, and other properties.
* Create a [`plot`][plot] instance configured to plot data as a line plot combined with a scatter plot.
* Create a scatter [`plot`][plot] with axes rug plots.


### 3) Multiple Plots

* Generate multiple plots and display them as a single web page in your browser.


## Tips

* For [`plot`][plot] documentation, see the [docs][plot].
* To display multiple plots, see the [disposable HTTP server][disposable-http-server] module and [vdom-to-html][vdom-to-html].


## Testing

Assuming that each solution is placed in a separate file,

{'fraction_non_alphanumeric': 0.09176672384219554, 'fraction_numerical': 0.002572898799313894, 'mean_word_length': 4.476525821596244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5444812', 'n_tokens_mistral': 648, 'n_tokens_neox': 605, 'n_words': 317}