diff --git a/pyqm-week5/README.md b/pyqm-week5/README.md index 107b77f..f8a7eb3 100644 --- a/pyqm-week5/README.md +++ b/pyqm-week5/README.md @@ -1,19 +1,42 @@ -# Week 5 Contents +# Week 5: Matplotlib ## 5.1 - Line Plots - [[Notebook]](./notebooks/pyqm-5.1-line-plots.ipynb) - [[Video]](https://www.youtube.com/watch?v=D50f3tPYUiM) - Using plt.plot + - Plotting a line between two points + - Plotting line between multiple points + - Plotting a function + - Plotting two lines in the same figure - Plot Aesthetics + - Changing line colour + - Changing line width + - Changing line style + - Changing marker style - Axis Formatting + - Setting limits + - Changing ticks + - Adding grids - Labels + - Adding a title + - Labeling axes - Error Bars - Asymptotes and Annotations - Log Plots + - Making log-log plots + - Making semi-log plots - Figure Object + - Creating a figure + - Adding axes to figure + - Adjusted functions + - Saving an image ## 5.2 - Multiple and Alternative Plots - [[Notebook]](./notebooks/pyqm-5.2-multiple-and-alternative-plots.ipynb) - [[Video]](https://www.youtube.com/watch?v=842vyBG-apQ) - Subplots + - Making sub-plots using `plt.subplot()` + - Plots in Plots + - Making sub-plots using `fig.add_subplot()` + - Making sub-plots using `plt.subplots()` - Histograms - Scatter Plot - Bar Chart @@ -26,3 +49,23 @@ - Surface Plot - Interactive Backend - Animation + - Making an initialisation function + - Making an animation function + - Animating a plot + - Saving an animation + +## 5.4 [Cheatsheet](./notebooks/pyqm-5.4-cheatsheet.ipynb) + +## 5.5 [Tutorial](Week5_Exercises/PyQM_Tut.5.ipynb) +1. Noise in qubits +2. Particle in a Box +3. Normal Distribution +4. Monte Carlo $\pi$ Estimation +5. Ball Animation + +## 5.6 [Exercises](Week5_Exercises/PyQM_Ex.5.ipynb) +1. Settlers of Histogram +2. Normal Distribution +3. Particle in a Box +4. Plotting a Sphere +5. Snake Animation diff --git a/pyqm-week5/pyqm-5.0-overview.ipynb b/pyqm-week5/pyqm-5.0-overview.ipynb deleted file mode 100644 index 4dd161c..0000000 --- a/pyqm-week5/pyqm-5.0-overview.ipynb +++ /dev/null @@ -1,148 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "cell_id": "00000-0c627834-4356-498b-9c36-749c9e64d4a1", - "deepnote_cell_type": "code", - "tags": [] - }, - "source": [ - "#
Python For Quantum Mechanics
\n", - "#
Overview: Week 5
" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [5.1 Line Plots](./notebooks/pyqm-5.1-line-plots.ipynb)\n", - "\n", - "- Using plt.plot\n", - " - Plotting a line between two points\n", - " - Plotting line between multiple points\n", - " - Plotting a function\n", - " - Plotting two lines in the same figure\n", - "- Plot Aesthetics\n", - " - Changing line colour\n", - " - Changing line width\n", - " - Changing line style\n", - " - Changing marker style\n", - "- Axis Formatting\n", - " - Setting limits\n", - " - Changing ticks\n", - " - Adding grids\n", - "- Labels\n", - " - Adding a title\n", - " - Labeling axes\n", - "- Error Bars\n", - "- Asymptotes and Annotations\n", - "- Log Plots\n", - " - Making log-log plots\n", - " - Making semi-log plots\n", - "- Figure Object\n", - " - Creating a figure\n", - " - Adding axes to figure\n", - " - Adjusted functions\n", - " - Saving an image" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [5.2 Multiple and Alternative Plots](./notebooks/pyqm-5.2-multiple-and-alternative-plots.ipynb)\n", - "\n", - "- Subplots\n", - " - Making sub-plots using `plt.subplot()`\n", - " - Plots in Plots\n", - " - Making sub-plots using `fig.add_subplot()`\n", - " - Making sub-plots using `plt.subplots()`\n", - "- Histograms\n", - "- Scatter Plot\n", - "- Bar Chart\n", - "- Pie Chart" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [5.3 3D Plots and Animations](./notebooks/pyqm-5.3-3d-plots-and-animations.ipynb)\n", - "- 3D Line Plot\n", - "- Heatmap\n", - "- Surface Plot\n", - "- Interactive Backend\n", - "- Animation\n", - " - Making an initialisation function\n", - " - Making an animation function\n", - " - Animating a plot\n", - " - Saving an animation" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [5.4 Cheatsheet](./notebooks/pyqm-5.4-cheatsheet.ipynb) " - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [Tutorial 5](Week5_Exercises/PyQM_Tut.5.ipynb) \n", - "1. Noise in qubits\n", - "2. Particle in a Box\n", - "3. Normal Distribution\n", - "4. Monte Carlo $\\pi$ Estimation\n", - "5. Ball Animation" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## [Exercises 5](Week5_Exercises/PyQM_Ex.5.ipynb) \n", - "1. Settlers of Histogram\n", - "2. Normal Distribution\n", - "3. Particle in a Box\n", - "4. Plotting a Sphere\n", - "5. Snake Animation" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "deepnote": { - "is_reactive": false - }, - "deepnote_execution_queue": [], - "deepnote_notebook_id": "38861478-975f-4137-b527-c4aa3d4bf9cf", - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.8" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -}