# Exercises

In most of the exercises in this page, we don't specify which Python package you need to use for plotting (Matplotlib or seaborn) or for importing the data (when working with files, NumPy or pandas). It's up to you to make a choice of package. The choice can be based on the applicability (remember - for what type of data can you use NumPy?) or personal preferences (Matplotlib vs. seaborn).

Each exercise carries the difficulty level indication:
- [*] Easy
- [**] Moderate
- [***] Advanced

The highest difficulty level is meant for students who wish to challenge themselves and/or have previous experience in programming.

`````{exercise} [*] Plotting polynomial functions
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/04_Plotting_function.py>`

```{include} ../coding-exercises/chapter-13-visualization/04_Plotting_function_rendered.md
```

`````

`````{exercise} [**] Plotting different functions in nanobiology
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/05_Plotting_Nanobio.py>`

```{include} ../coding-exercises/chapter-13-visualization/05_Plotting_Nanobio_rendered.md
```

`````

`````{exercise} [**] Random walk (making plots pretty)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/06_Pretty_plots.py>`

```{include} ../coding-exercises/chapter-13-visualization/06_Pretty_plots_rendered.md
```

`````

`````{exercise} [**] Types of plots
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/07_Types_of_plots.py>`

```{include} ../coding-exercises/chapter-13-visualization/07_Types_of_plots_rendered.md
```

`````

`````{exercise} [**] Puromycin
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/04_Puromycin.zip>`

```{include} ../coding-exercises/chapter-13-visualization/04_Puromycin/exercise-puromycin.md
```

`````

`````{exercise} [**] Diffusing particles (multiple plots in one)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/08_Multiple_plots_in_one.py>`

```{include} ../coding-exercises/chapter-13-visualization/08_Multiple_plots_in_one_rendered.md
```

`````

`````{exercise} [**] Beavers II
:class: dropdown

```{figure} ../coding-exercises/chapter-13-visualization/American_Beaver.svg
---
height: 200px
name: beavers
---
```

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/05_Beavers_II.py>`

```{literalinclude} ../coding-exercises/chapter-13-visualization/05_Beavers_II.py
:language: python
```

`````

`````{exercise} [**] Air quality
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/07_Air_quality.zip>`

```{include} ../coding-exercises/chapter-13-visualization/07_Air_quality/exercise-air-quality.md
```

`````

`````{exercise} [**] Hair and eye color statistics
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/06_HairEyeColor.zip>`

```{include} ../coding-exercises/chapter-13-visualization/06_HairEyeColor/exercise-hair-eye-color.md
```

`````

`````{exercise} [**] Cell location
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/03_Cell_location.zip>`

```{include} ../coding-exercises/chapter-13-visualization/03_Cell_location/exercise-cell-location.md
```

`````

`````{exercise} [**] Radioactive decay
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/09_Radioactive_decay.py>`

```{include} ../coding-exercises/chapter-13-visualization/09_Radioactive_decay_rendered.md
```

`````

`````{exercise} [**] DIY plotting
:class: dropdown

```{include} ../coding-exercises/chapter-13-visualization/exercise-diy-plotting.md
```

`````

`````{exercise} [***] Projectile motion
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-13-visualization/10_Projectile_motion.py>`

```{include} ../coding-exercises/chapter-13-visualization/10_Projectile_motion_rendered.md
```

`````
