dih-jupyter/2. Jupyter - interaktywne wykresy i prezentacje multimedialne.ipynb

2440 lines
90 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Przygotowanie innowacyjnych materiałów szkoleniowych i dokumentacji wewnętrznych w obszarze IT\n",
"# 2. Tworzenie materiałów szkoleniowych w Jupyter Notebook - wzory, prezentacje, wykresy\n",
"### *Paweł Skórzewski*"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 2.1. Umieszczanie wzorów matematycznych"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"W notatnikach Jupytera można umieszczać wzory matematyczne, korzystając z notacji LaTeX-a."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Wszystko pomiędzy znakami `$$` wyświetli się jako wzór matematyczny:"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
" $$ a^2 = b^2 + c^2 $$\n",
"\n",
"$$ a^2 = b^2 + c^2 $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Wyrażenia matematyczne można wstawiać też wewnątrz tekstu - dokładnie tak, jak w LaTeX-u:"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
" To jest tekst, w którym występują zmienne $x$, $y$ i $z$, przy czym $z = \\frac{x}{y}$.\n",
" \n",
"To jest tekst, w którym występują zmienne $x$, $y$ i $z$, przy czym $z = \\frac{x}{y}$. "
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 2.2. Wyświetlanie materiałów Jupyter Notebook w formie prezentacji multimedialnej"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Materiały przygotowane w formacie `.ipynb` można wyświetlać w formie prezentacji multimedialnej.\n",
"\n",
"Jest to możliwe dzięki narzędziu [**RISE**](https://rise.readthedocs.io).\n",
"\n",
"RISE (*Reveal.js Ipython Slideshow Extension*) jest rozszerzeniem do Jupytera umożliwiającym wyświetlanie notatników w trybie prezentacji w oparciu o framework [**Reveal.js**](https://revealjs.com/)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"***Uwaga:*** Rozszerzenie RISE działa tylko z klasycznym środowiskiem Jupyter Notebook. Nie zadziała, jeżeli notatnik otworzymy korzystajac z JupyterLab."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Instalacja rozszerzenia RISE\n",
"\n",
"Rozszerzenie RISE można zainstalować na dwa sposoby:\n",
" * korzystając z menedżera pakietów Conda\n",
" * korzystając z menedżera pakietów PIP"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Aby zainstalować rozszerzenie RISE za pomocą menedżera Conda, należy wpisać w konsoli:\n",
"\n",
" conda install -c conda-forge rise"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Aby zainstalować rozszerzenie RISE za pomocą menedżera PIP, należy wpisać w konsoli:\n",
"\n",
" pip install RISE"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"**Uwaga!** W niektórych przypadkach mogą być potrzebne uprawnienia administratora, wtdey polecenia należy poprzedzić komendą `sudo`:\n",
"\n",
" sudo pip install RISE"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Wyświetlanie prezentacji\n",
"\n",
"Po zainstalowaniu rozszerzenia RISE i uruchomieniu środowiska Jupyter Notebook (nie JupyterLab! - patrz uwaga powyżej) na pasku narzędzi pojawi się nowy przycisk *Enter/Exit RISE Slideshow*: <img src=\"rise-przycisk.png\" width=\"60%\"/>\n",
"\n",
"Naciśnięcie go uruchamia tryb prezentacji."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Prezentację można również uruchomić za pomocą skrótu klawiszowego **Alt+R**."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Poruszanie się po prezentacji\n",
"\n",
"Do następnego slajdu przechodzimy za pomocą spacji, a cofamy się naciskając Shift+spację."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"W trybie prezentacji po lewej stronie ekranu widać dwa przyciski: **X** zamyka prezentację, a po kliknięciu w **?** pokazuje się okienko pomocy z przydatnymi skrótami klawiszowymi. "
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Przygotowanie prezentacji\n",
"\n",
"Aby prezentacja poprawnie się wyświetlała, komórki notatnika powinny być odpowiednio oznaczone. Bez tego, cały notatnik wyświetli się na pojedynczym slajdzie, a jego zawartość będzie ucięta.\n",
"\n",
"W tym celu musimy wyświetlić pasek narzędzi prezentacji."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Narzędzia prezentacji\n",
"\n",
"Aby wyświetlić narzędzia prezentacji, należy z menu wybrać *View*→*Cell Toolbar*→*Slideshow*.\n",
"\n",
"Wówczas przy każdej komórce pokaże się pole wyboru *Slide Type* (typ slajdu).\n",
"\n",
"W polu *Slide Type* możemy wybrać, czy i w jaki sposób dana komórka pojawi się w prezentacji."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Typy slajdów\n",
"\n",
" * **Slide** - komórka pojawi się jako oddzielny slajd, rozpoczynający nową sekcję\n",
" * **Sub-Slide** - komórka pojawi się jako oddzielny slajd\n",
" * **Fragment** - komórka pojawi się jako kontynuacja poprzedniego slajdu (po animacji pauzy)\n",
" * **Skip** - komórka nie pojawi się w prezentacji\n",
" * **Notes** - komórka nie pojawi się w prezentacji, ale pojawi się w widoku prezentera (zobacz poniżej)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Jeżeli komórka nie ma wybranego typu, to wyświetli się ona w prezentacji tak, jakby miała przypisany typ *Fragment*.\n",
"\n",
"Jest to domyślne zachowanie dla każdej nowo utworzonej komórki."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Widok prezentera\n",
"\n",
"Naciśnięcie klawisza **T** w widoku prezentacji uruchamia tzw. **widok prezentera** (*speaker view*), dzięki któremu w oddzielnym oknie można podejrzeć:\n",
" * bieżący slajd\n",
" * następny slajd\n",
" * notatki (komórki oznaczone jako *Notes*)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"To jest komórka z notatkami, które nie wyświetlą się w prezentacji, ale pokażą się w widoku prezentera."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"To jest komórka, która nie pojawi się w prezentacji w ogóle."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Dostosowywanie wyglądu prezentacji\n",
"\n",
"Rozszerzenie RISE pozwala na dostosowanie niektórych elementów wyglądu prezentacji, takich jak czcionki, kolory czy efekty przejścia."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"W tym celu należy z menu wybrać *Edit*→*Edit Notebook Metadata* i zmodyfikować plik JSON, który się wyświetli.\n",
"\n",
"Po odświeżeniu notatnika dokonane zmiany zostaną zastosowane."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Przykład: zmiana motywu prezentacji\n",
"\n",
"Aby zmienić motyw prezentacji z domyślnego np. na taki z jasnoniebieskim tłem, należy w JSON-ie z metadanymi dopisać\n",
"```json\n",
" \"rise\": {\"theme\": \"sky\"}\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Listę dostępnych motywów można znaleźć na stronie narzędzia Reveal.js: https://revealjs.com/themes"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Więcej o personalizacji prezentacji, a także o samym rozszerzeniu RISE można przeczytać w [dokumentacji projektu](https://rise.readthedocs.io/)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 2.3. Tworzenie interaktywnych wykresów"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Wykresy w notatnikach Jupyter Notebook można tworzyć, korzystając z odpowiednich narzędzi języka Python, np. z biblioteki `matplotlib`.\n",
"\n",
"Opis sposobu korzystania z biblioteki `matplotlib` wykracza poza ramy tego kursu.\n",
"\n",
"Informacje na ten temat można znaleźć w [dokumentacji biblioteki](https://matplotlib.org)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Umieszczanie wykresów `matplotlib` w komórkach notatnika\n",
"\n",
"Aby wykresy stworzone przy użyciu biblioteki `matplotlib` wyświetlały się bezpośrednio w komórkach notatnika, należy na jego początku dodać i wykonać kod:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"%config InlineBackend.figure_format = 'svg'"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Przykład prostego wykresu"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"source": [
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"def plot_sine(amplitude=1, frequency=1):\n",
" # Dane do wykresu\n",
" x = np.arange(0.0, 10.0, 0.01)\n",
" y = amplitude * np.sin(frequency * x)\n",
"\n",
" fig, ax = plt.subplots()\n",
" ax.plot(x, y)\n",
"\n",
" ax.set_ylim([-5, 5])\n",
" ax.set(xlabel=r\"$x$\", ylabel=r\"$y$\",\n",
" title=\"Sinusoida\")\n",
" ax.grid()"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
"<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n",
"<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 384.620313 277.314375\" width=\"384.620313pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
" <defs>\r\n",
" <style type=\"text/css\">\r\n",
"*{stroke-linecap:butt;stroke-linejoin:round;}\r\n",
" </style>\r\n",
" </defs>\r\n",
" <g id=\"figure_1\">\r\n",
" <g id=\"patch_1\">\r\n",
" <path d=\"M 0 277.314375 \r\n",
"L 384.620313 277.314375 \r\n",
"L 384.620313 0 \r\n",
"L 0 0 \r\n",
"z\r\n",
"\" style=\"fill:none;\"/>\r\n",
" </g>\r\n",
" <g id=\"axes_1\">\r\n",
" <g id=\"patch_2\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 377.420313 239.758125 \r\n",
"L 377.420313 22.318125 \r\n",
"L 42.620313 22.318125 \r\n",
"z\r\n",
"\" style=\"fill:#ffffff;\"/>\r\n",
" </g>\r\n",
" <g id=\"matplotlib.axis_1\">\r\n",
" <g id=\"xtick_1\">\r\n",
" <g id=\"line2d_1\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 57.838494 239.758125 \r\n",
"L 57.838494 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_2\">\r\n",
" <defs>\r\n",
" <path d=\"M 0 0 \r\n",
"L 0 3.5 \r\n",
"\" id=\"m40b3462bc2\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
" </defs>\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"57.838494\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_1\">\r\n",
" <!-- 0 -->\r\n",
" <defs>\r\n",
" <path d=\"M 31.78125 66.40625 \r\n",
"Q 24.171875 66.40625 20.328125 58.90625 \r\n",
"Q 16.5 51.421875 16.5 36.375 \r\n",
"Q 16.5 21.390625 20.328125 13.890625 \r\n",
"Q 24.171875 6.390625 31.78125 6.390625 \r\n",
"Q 39.453125 6.390625 43.28125 13.890625 \r\n",
"Q 47.125 21.390625 47.125 36.375 \r\n",
"Q 47.125 51.421875 43.28125 58.90625 \r\n",
"Q 39.453125 66.40625 31.78125 66.40625 \r\n",
"z\r\n",
"M 31.78125 74.21875 \r\n",
"Q 44.046875 74.21875 50.515625 64.515625 \r\n",
"Q 56.984375 54.828125 56.984375 36.375 \r\n",
"Q 56.984375 17.96875 50.515625 8.265625 \r\n",
"Q 44.046875 -1.421875 31.78125 -1.421875 \r\n",
"Q 19.53125 -1.421875 13.0625 8.265625 \r\n",
"Q 6.59375 17.96875 6.59375 36.375 \r\n",
"Q 6.59375 54.828125 13.0625 64.515625 \r\n",
"Q 19.53125 74.21875 31.78125 74.21875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-48\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(54.657244 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_2\">\r\n",
" <g id=\"line2d_3\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 118.772155 239.758125 \r\n",
"L 118.772155 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_4\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"118.772155\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_2\">\r\n",
" <!-- 2 -->\r\n",
" <defs>\r\n",
" <path d=\"M 19.1875 8.296875 \r\n",
"L 53.609375 8.296875 \r\n",
"L 53.609375 0 \r\n",
"L 7.328125 0 \r\n",
"L 7.328125 8.296875 \r\n",
"Q 12.9375 14.109375 22.625 23.890625 \r\n",
"Q 32.328125 33.6875 34.8125 36.53125 \r\n",
"Q 39.546875 41.84375 41.421875 45.53125 \r\n",
"Q 43.3125 49.21875 43.3125 52.78125 \r\n",
"Q 43.3125 58.59375 39.234375 62.25 \r\n",
"Q 35.15625 65.921875 28.609375 65.921875 \r\n",
"Q 23.96875 65.921875 18.8125 64.3125 \r\n",
"Q 13.671875 62.703125 7.8125 59.421875 \r\n",
"L 7.8125 69.390625 \r\n",
"Q 13.765625 71.78125 18.9375 73 \r\n",
"Q 24.125 74.21875 28.421875 74.21875 \r\n",
"Q 39.75 74.21875 46.484375 68.546875 \r\n",
"Q 53.21875 62.890625 53.21875 53.421875 \r\n",
"Q 53.21875 48.921875 51.53125 44.890625 \r\n",
"Q 49.859375 40.875 45.40625 35.40625 \r\n",
"Q 44.1875 33.984375 37.640625 27.21875 \r\n",
"Q 31.109375 20.453125 19.1875 8.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-50\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(115.590905 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_3\">\r\n",
" <g id=\"line2d_5\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 179.705816 239.758125 \r\n",
"L 179.705816 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_6\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"179.705816\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_3\">\r\n",
" <!-- 4 -->\r\n",
" <defs>\r\n",
" <path d=\"M 37.796875 64.3125 \r\n",
"L 12.890625 25.390625 \r\n",
"L 37.796875 25.390625 \r\n",
"z\r\n",
"M 35.203125 72.90625 \r\n",
"L 47.609375 72.90625 \r\n",
"L 47.609375 25.390625 \r\n",
"L 58.015625 25.390625 \r\n",
"L 58.015625 17.1875 \r\n",
"L 47.609375 17.1875 \r\n",
"L 47.609375 0 \r\n",
"L 37.796875 0 \r\n",
"L 37.796875 17.1875 \r\n",
"L 4.890625 17.1875 \r\n",
"L 4.890625 26.703125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-52\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(176.524566 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_4\">\r\n",
" <g id=\"line2d_7\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 240.639477 239.758125 \r\n",
"L 240.639477 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_8\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"240.639477\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_4\">\r\n",
" <!-- 6 -->\r\n",
" <defs>\r\n",
" <path d=\"M 33.015625 40.375 \r\n",
"Q 26.375 40.375 22.484375 35.828125 \r\n",
"Q 18.609375 31.296875 18.609375 23.390625 \r\n",
"Q 18.609375 15.53125 22.484375 10.953125 \r\n",
"Q 26.375 6.390625 33.015625 6.390625 \r\n",
"Q 39.65625 6.390625 43.53125 10.953125 \r\n",
"Q 47.40625 15.53125 47.40625 23.390625 \r\n",
"Q 47.40625 31.296875 43.53125 35.828125 \r\n",
"Q 39.65625 40.375 33.015625 40.375 \r\n",
"z\r\n",
"M 52.59375 71.296875 \r\n",
"L 52.59375 62.3125 \r\n",
"Q 48.875 64.0625 45.09375 64.984375 \r\n",
"Q 41.3125 65.921875 37.59375 65.921875 \r\n",
"Q 27.828125 65.921875 22.671875 59.328125 \r\n",
"Q 17.53125 52.734375 16.796875 39.40625 \r\n",
"Q 19.671875 43.65625 24.015625 45.921875 \r\n",
"Q 28.375 48.1875 33.59375 48.1875 \r\n",
"Q 44.578125 48.1875 50.953125 41.515625 \r\n",
"Q 57.328125 34.859375 57.328125 23.390625 \r\n",
"Q 57.328125 12.15625 50.6875 5.359375 \r\n",
"Q 44.046875 -1.421875 33.015625 -1.421875 \r\n",
"Q 20.359375 -1.421875 13.671875 8.265625 \r\n",
"Q 6.984375 17.96875 6.984375 36.375 \r\n",
"Q 6.984375 53.65625 15.1875 63.9375 \r\n",
"Q 23.390625 74.21875 37.203125 74.21875 \r\n",
"Q 40.921875 74.21875 44.703125 73.484375 \r\n",
"Q 48.484375 72.75 52.59375 71.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-54\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(237.458227 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-54\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_5\">\r\n",
" <g id=\"line2d_9\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 301.573138 239.758125 \r\n",
"L 301.573138 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_10\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"301.573138\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_5\">\r\n",
" <!-- 8 -->\r\n",
" <defs>\r\n",
" <path d=\"M 31.78125 34.625 \r\n",
"Q 24.75 34.625 20.71875 30.859375 \r\n",
"Q 16.703125 27.09375 16.703125 20.515625 \r\n",
"Q 16.703125 13.921875 20.71875 10.15625 \r\n",
"Q 24.75 6.390625 31.78125 6.390625 \r\n",
"Q 38.8125 6.390625 42.859375 10.171875 \r\n",
"Q 46.921875 13.96875 46.921875 20.515625 \r\n",
"Q 46.921875 27.09375 42.890625 30.859375 \r\n",
"Q 38.875 34.625 31.78125 34.625 \r\n",
"z\r\n",
"M 21.921875 38.8125 \r\n",
"Q 15.578125 40.375 12.03125 44.71875 \r\n",
"Q 8.5 49.078125 8.5 55.328125 \r\n",
"Q 8.5 64.0625 14.71875 69.140625 \r\n",
"Q 20.953125 74.21875 31.78125 74.21875 \r\n",
"Q 42.671875 74.21875 48.875 69.140625 \r\n",
"Q 55.078125 64.0625 55.078125 55.328125 \r\n",
"Q 55.078125 49.078125 51.53125 44.71875 \r\n",
"Q 48 40.375 41.703125 38.8125 \r\n",
"Q 48.828125 37.15625 52.796875 32.3125 \r\n",
"Q 56.78125 27.484375 56.78125 20.515625 \r\n",
"Q 56.78125 9.90625 50.3125 4.234375 \r\n",
"Q 43.84375 -1.421875 31.78125 -1.421875 \r\n",
"Q 19.734375 -1.421875 13.25 4.234375 \r\n",
"Q 6.78125 9.90625 6.78125 20.515625 \r\n",
"Q 6.78125 27.484375 10.78125 32.3125 \r\n",
"Q 14.796875 37.15625 21.921875 38.8125 \r\n",
"z\r\n",
"M 18.3125 54.390625 \r\n",
"Q 18.3125 48.734375 21.84375 45.5625 \r\n",
"Q 25.390625 42.390625 31.78125 42.390625 \r\n",
"Q 38.140625 42.390625 41.71875 45.5625 \r\n",
"Q 45.3125 48.734375 45.3125 54.390625 \r\n",
"Q 45.3125 60.0625 41.71875 63.234375 \r\n",
"Q 38.140625 66.40625 31.78125 66.40625 \r\n",
"Q 25.390625 66.40625 21.84375 63.234375 \r\n",
"Q 18.3125 60.0625 18.3125 54.390625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-56\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(298.391888 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-56\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_6\">\r\n",
" <g id=\"line2d_11\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 362.506799 239.758125 \r\n",
"L 362.506799 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_12\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"362.506799\" xlink:href=\"#m40b3462bc2\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_6\">\r\n",
" <!-- 10 -->\r\n",
" <defs>\r\n",
" <path d=\"M 12.40625 8.296875 \r\n",
"L 28.515625 8.296875 \r\n",
"L 28.515625 63.921875 \r\n",
"L 10.984375 60.40625 \r\n",
"L 10.984375 69.390625 \r\n",
"L 28.421875 72.90625 \r\n",
"L 38.28125 72.90625 \r\n",
"L 38.28125 8.296875 \r\n",
"L 54.390625 8.296875 \r\n",
"L 54.390625 0 \r\n",
"L 12.40625 0 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-49\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(356.144299 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-49\"/>\r\n",
" <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_7\">\r\n",
" <!-- $x$ -->\r\n",
" <defs>\r\n",
" <path d=\"M 60.015625 54.6875 \r\n",
"L 34.90625 27.875 \r\n",
"L 50.296875 0 \r\n",
"L 39.984375 0 \r\n",
"L 28.421875 21.6875 \r\n",
"L 8.296875 0 \r\n",
"L -2.59375 0 \r\n",
"L 24.3125 28.8125 \r\n",
"L 10.015625 54.6875 \r\n",
"L 20.3125 54.6875 \r\n",
"L 30.8125 34.90625 \r\n",
"L 49.125 54.6875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-Oblique-120\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(207.020313 268.034687)scale(0.1 -0.1)\">\r\n",
" <use transform=\"translate(0 0.3125)\" xlink:href=\"#DejaVuSans-Oblique-120\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"matplotlib.axis_2\">\r\n",
" <g id=\"ytick_1\">\r\n",
" <g id=\"line2d_13\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 42.620313 218.014125 \r\n",
"L 377.420313 218.014125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_14\">\r\n",
" <defs>\r\n",
" <path d=\"M 0 0 \r\n",
"L -3.5 0 \r\n",
"\" id=\"m97881d295d\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
" </defs>\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#m97881d295d\" y=\"218.014125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_8\">\r\n",
" <!-- 4 -->\r\n",
" <defs>\r\n",
" <path d=\"M 10.59375 35.5 \r\n",
"L 73.1875 35.5 \r\n",
"L 73.1875 27.203125 \r\n",
"L 10.59375 27.203125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-8722\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(20.878125 221.813344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-8722\"/>\r\n",
" <use x=\"83.789062\" xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_2\">\r\n",
" <g id=\"line2d_15\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 42.620313 174.526125 \r\n",
"L 377.420313 174.526125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_16\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#m97881d295d\" y=\"174.526125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_9\">\r\n",
" <!-- 2 -->\r\n",
" <g transform=\"translate(20.878125 178.325344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-8722\"/>\r\n",
" <use x=\"83.789062\" xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_3\">\r\n",
" <g id=\"line2d_17\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 42.620313 131.038125 \r\n",
"L 377.420313 131.038125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_18\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#m97881d295d\" y=\"131.038125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_10\">\r\n",
" <!-- 0 -->\r\n",
" <g transform=\"translate(29.257813 134.837344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_4\">\r\n",
" <g id=\"line2d_19\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 42.620313 87.550125 \r\n",
"L 377.420313 87.550125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_20\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#m97881d295d\" y=\"87.550125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_11\">\r\n",
" <!-- 2 -->\r\n",
" <g transform=\"translate(29.257813 91.349344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_5\">\r\n",
" <g id=\"line2d_21\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 42.620313 44.062125 \r\n",
"L 377.420313 44.062125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_22\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#m97881d295d\" y=\"44.062125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_12\">\r\n",
" <!-- 4 -->\r\n",
" <g transform=\"translate(29.257813 47.861344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_13\">\r\n",
" <!-- $y$ -->\r\n",
" <defs>\r\n",
" <path d=\"M 24.8125 -5.078125 \r\n",
"Q 18.5625 -15.578125 14.625 -18.1875 \r\n",
"Q 10.6875 -20.796875 4.59375 -20.796875 \r\n",
"L -2.484375 -20.796875 \r\n",
"L -0.984375 -13.28125 \r\n",
"L 4.203125 -13.28125 \r\n",
"Q 7.953125 -13.28125 10.59375 -11.234375 \r\n",
"Q 13.234375 -9.1875 16.5 -3.21875 \r\n",
"L 19.28125 2 \r\n",
"L 7.171875 54.6875 \r\n",
"L 16.703125 54.6875 \r\n",
"L 25.78125 12.796875 \r\n",
"L 50.875 54.6875 \r\n",
"L 60.296875 54.6875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-Oblique-121\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(14.778125 134.038125)rotate(-90)scale(0.1 -0.1)\">\r\n",
" <use transform=\"translate(0 0.3125)\" xlink:href=\"#DejaVuSans-Oblique-121\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"line2d_23\">\r\n",
" <path clip-path=\"url(#p2e6fba7ef1)\" d=\"M 57.838494 131.038125 \r\n",
"L 67.892548 123.992133 \r\n",
"L 73.376578 120.423199 \r\n",
"L 77.946602 117.706512 \r\n",
"L 81.90729 115.592203 \r\n",
"L 85.56331 113.871156 \r\n",
"L 89.21933 112.397016 \r\n",
"L 92.570681 111.280798 \r\n",
"L 95.922032 110.403403 \r\n",
"L 98.968715 109.821996 \r\n",
"L 102.015398 109.452574 \r\n",
"L 105.062082 109.298827 \r\n",
"L 108.108765 109.362292 \r\n",
"L 111.155448 109.642335 \r\n",
"L 114.202131 110.136157 \r\n",
"L 117.248814 110.838825 \r\n",
"L 120.600165 111.844536 \r\n",
"L 123.951516 113.082256 \r\n",
"L 127.607536 114.679449 \r\n",
"L 131.568224 116.674447 \r\n",
"L 135.83358 119.09294 \r\n",
"L 140.403605 121.94222 \r\n",
"L 145.887634 125.625026 \r\n",
"L 154.723015 131.873049 \r\n",
"L 163.863064 138.256811 \r\n",
"L 169.347094 141.81222 \r\n",
"L 173.917118 144.513683 \r\n",
"L 177.877806 146.612169 \r\n",
"L 181.533826 148.316685 \r\n",
"L 185.189846 149.772688 \r\n",
"L 188.541197 150.871093 \r\n",
"L 191.892548 151.72976 \r\n",
"L 194.939231 152.29354 \r\n",
"L 197.985914 152.644942 \r\n",
"L 201.032598 152.780456 \r\n",
"L 204.079281 152.698728 \r\n",
"L 207.125964 152.400575 \r\n",
"L 210.172647 151.888974 \r\n",
"L 213.523998 151.085847 \r\n",
"L 216.875349 150.040386 \r\n",
"L 220.226701 148.76523 \r\n",
"L 223.88272 147.130366 \r\n",
"L 227.843408 145.098897 \r\n",
"L 232.108765 142.646861 \r\n",
"L 236.983457 139.569388 \r\n",
"L 242.772155 135.638594 \r\n",
"L 264.098937 120.865999 \r\n",
"L 268.668961 118.108327 \r\n",
"L 272.934317 115.795334 \r\n",
"L 276.895005 113.913752 \r\n",
"L 280.551025 112.432767 \r\n",
"L 283.902376 111.309822 \r\n",
"L 287.253728 110.425348 \r\n",
"L 290.300411 109.837273 \r\n",
"L 293.347094 109.461029 \r\n",
"L 296.393777 109.300377 \r\n",
"L 299.44046 109.356922 \r\n",
"L 302.487143 109.630098 \r\n",
"L 305.533826 110.117175 \r\n",
"L 308.580509 110.813288 \r\n",
"L 311.93186 111.812086 \r\n",
"L 315.283212 113.043285 \r\n",
"L 318.939231 114.633904 \r\n",
"L 322.899919 116.622522 \r\n",
"L 327.165276 119.035127 \r\n",
"L 331.7353 121.879356 \r\n",
"L 337.21933 125.557973 \r\n",
"L 345.750042 131.586495 \r\n",
"L 355.19476 138.191441 \r\n",
"L 360.678789 141.752004 \r\n",
"L 362.202131 142.684284 \r\n",
"L 362.202131 142.684284 \r\n",
"\" style=\"fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_3\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 42.620313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_4\">\r\n",
" <path d=\"M 377.420313 239.758125 \r\n",
"L 377.420313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_5\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 377.420313 239.758125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_6\">\r\n",
" <path d=\"M 42.620313 22.318125 \r\n",
"L 377.420313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"text_14\">\r\n",
" <!-- Sinusoida -->\r\n",
" <defs>\r\n",
" <path d=\"M 53.515625 70.515625 \r\n",
"L 53.515625 60.890625 \r\n",
"Q 47.90625 63.578125 42.921875 64.890625 \r\n",
"Q 37.9375 66.21875 33.296875 66.21875 \r\n",
"Q 25.25 66.21875 20.875 63.09375 \r\n",
"Q 16.5 59.96875 16.5 54.203125 \r\n",
"Q 16.5 49.359375 19.40625 46.890625 \r\n",
"Q 22.3125 44.4375 30.421875 42.921875 \r\n",
"L 36.375 41.703125 \r\n",
"Q 47.40625 39.59375 52.65625 34.296875 \r\n",
"Q 57.90625 29 57.90625 20.125 \r\n",
"Q 57.90625 9.515625 50.796875 4.046875 \r\n",
"Q 43.703125 -1.421875 29.984375 -1.421875 \r\n",
"Q 24.8125 -1.421875 18.96875 -0.25 \r\n",
"Q 13.140625 0.921875 6.890625 3.21875 \r\n",
"L 6.890625 13.375 \r\n",
"Q 12.890625 10.015625 18.65625 8.296875 \r\n",
"Q 24.421875 6.59375 29.984375 6.59375 \r\n",
"Q 38.421875 6.59375 43.015625 9.90625 \r\n",
"Q 47.609375 13.234375 47.609375 19.390625 \r\n",
"Q 47.609375 24.75 44.3125 27.78125 \r\n",
"Q 41.015625 30.8125 33.5 32.328125 \r\n",
"L 27.484375 33.5 \r\n",
"Q 16.453125 35.6875 11.515625 40.375 \r\n",
"Q 6.59375 45.0625 6.59375 53.421875 \r\n",
"Q 6.59375 63.09375 13.40625 68.65625 \r\n",
"Q 20.21875 74.21875 32.171875 74.21875 \r\n",
"Q 37.3125 74.21875 42.625 73.28125 \r\n",
"Q 47.953125 72.359375 53.515625 70.515625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-83\"/>\r\n",
" <path d=\"M 9.421875 54.6875 \r\n",
"L 18.40625 54.6875 \r\n",
"L 18.40625 0 \r\n",
"L 9.421875 0 \r\n",
"z\r\n",
"M 9.421875 75.984375 \r\n",
"L 18.40625 75.984375 \r\n",
"L 18.40625 64.59375 \r\n",
"L 9.421875 64.59375 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-105\"/>\r\n",
" <path d=\"M 54.890625 33.015625 \r\n",
"L 54.890625 0 \r\n",
"L 45.90625 0 \r\n",
"L 45.90625 32.71875 \r\n",
"Q 45.90625 40.484375 42.875 44.328125 \r\n",
"Q 39.84375 48.1875 33.796875 48.1875 \r\n",
"Q 26.515625 48.1875 22.3125 43.546875 \r\n",
"Q 18.109375 38.921875 18.109375 30.90625 \r\n",
"L 18.109375 0 \r\n",
"L 9.078125 0 \r\n",
"L 9.078125 54.6875 \r\n",
"L 18.109375 54.6875 \r\n",
"L 18.109375 46.1875 \r\n",
"Q 21.34375 51.125 25.703125 53.5625 \r\n",
"Q 30.078125 56 35.796875 56 \r\n",
"Q 45.21875 56 50.046875 50.171875 \r\n",
"Q 54.890625 44.34375 54.890625 33.015625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-110\"/>\r\n",
" <path d=\"M 8.5 21.578125 \r\n",
"L 8.5 54.6875 \r\n",
"L 17.484375 54.6875 \r\n",
"L 17.484375 21.921875 \r\n",
"Q 17.484375 14.15625 20.5 10.265625 \r\n",
"Q 23.53125 6.390625 29.59375 6.390625 \r\n",
"Q 36.859375 6.390625 41.078125 11.03125 \r\n",
"Q 45.3125 15.671875 45.3125 23.6875 \r\n",
"L 45.3125 54.6875 \r\n",
"L 54.296875 54.6875 \r\n",
"L 54.296875 0 \r\n",
"L 45.3125 0 \r\n",
"L 45.3125 8.40625 \r\n",
"Q 42.046875 3.421875 37.71875 1 \r\n",
"Q 33.40625 -1.421875 27.6875 -1.421875 \r\n",
"Q 18.265625 -1.421875 13.375 4.4375 \r\n",
"Q 8.5 10.296875 8.5 21.578125 \r\n",
"z\r\n",
"M 31.109375 56 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-117\"/>\r\n",
" <path d=\"M 44.28125 53.078125 \r\n",
"L 44.28125 44.578125 \r\n",
"Q 40.484375 46.53125 36.375 47.5 \r\n",
"Q 32.28125 48.484375 27.875 48.484375 \r\n",
"Q 21.1875 48.484375 17.84375 46.4375 \r\n",
"Q 14.5 44.390625 14.5 40.28125 \r\n",
"Q 14.5 37.15625 16.890625 35.375 \r\n",
"Q 19.28125 33.59375 26.515625 31.984375 \r\n",
"L 29.59375 31.296875 \r\n",
"Q 39.15625 29.25 43.1875 25.515625 \r\n",
"Q 47.21875 21.78125 47.21875 15.09375 \r\n",
"Q 47.21875 7.46875 41.1875 3.015625 \r\n",
"Q 35.15625 -1.421875 24.609375 -1.421875 \r\n",
"Q 20.21875 -1.421875 15.453125 -0.5625 \r\n",
"Q 10.6875 0.296875 5.421875 2 \r\n",
"L 5.421875 11.28125 \r\n",
"Q 10.40625 8.6875 15.234375 7.390625 \r\n",
"Q 20.0625 6.109375 24.8125 6.109375 \r\n",
"Q 31.15625 6.109375 34.5625 8.28125 \r\n",
"Q 37.984375 10.453125 37.984375 14.40625 \r\n",
"Q 37.984375 18.0625 35.515625 20.015625 \r\n",
"Q 33.0625 21.96875 24.703125 23.78125 \r\n",
"L 21.578125 24.515625 \r\n",
"Q 13.234375 26.265625 9.515625 29.90625 \r\n",
"Q 5.8125 33.546875 5.8125 39.890625 \r\n",
"Q 5.8125 47.609375 11.28125 51.796875 \r\n",
"Q 16.75 56 26.8125 56 \r\n",
"Q 31.78125 56 36.171875 55.265625 \r\n",
"Q 40.578125 54.546875 44.28125 53.078125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-115\"/>\r\n",
" <path d=\"M 30.609375 48.390625 \r\n",
"Q 23.390625 48.390625 19.1875 42.75 \r\n",
"Q 14.984375 37.109375 14.984375 27.296875 \r\n",
"Q 14.984375 17.484375 19.15625 11.84375 \r\n",
"Q 23.34375 6.203125 30.609375 6.203125 \r\n",
"Q 37.796875 6.203125 41.984375 11.859375 \r\n",
"Q 46.1875 17.53125 46.1875 27.296875 \r\n",
"Q 46.1875 37.015625 41.984375 42.703125 \r\n",
"Q 37.796875 48.390625 30.609375 48.390625 \r\n",
"z\r\n",
"M 30.609375 56 \r\n",
"Q 42.328125 56 49.015625 48.375 \r\n",
"Q 55.71875 40.765625 55.71875 27.296875 \r\n",
"Q 55.71875 13.875 49.015625 6.21875 \r\n",
"Q 42.328125 -1.421875 30.609375 -1.421875 \r\n",
"Q 18.84375 -1.421875 12.171875 6.21875 \r\n",
"Q 5.515625 13.875 5.515625 27.296875 \r\n",
"Q 5.515625 40.765625 12.171875 48.375 \r\n",
"Q 18.84375 56 30.609375 56 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-111\"/>\r\n",
" <path d=\"M 45.40625 46.390625 \r\n",
"L 45.40625 75.984375 \r\n",
"L 54.390625 75.984375 \r\n",
"L 54.390625 0 \r\n",
"L 45.40625 0 \r\n",
"L 45.40625 8.203125 \r\n",
"Q 42.578125 3.328125 38.25 0.953125 \r\n",
"Q 33.9375 -1.421875 27.875 -1.421875 \r\n",
"Q 17.96875 -1.421875 11.734375 6.484375 \r\n",
"Q 5.515625 14.40625 5.515625 27.296875 \r\n",
"Q 5.515625 40.1875 11.734375 48.09375 \r\n",
"Q 17.96875 56 27.875 56 \r\n",
"Q 33.9375 56 38.25 53.625 \r\n",
"Q 42.578125 51.265625 45.40625 46.390625 \r\n",
"z\r\n",
"M 14.796875 27.296875 \r\n",
"Q 14.796875 17.390625 18.875 11.75 \r\n",
"Q 22.953125 6.109375 30.078125 6.109375 \r\n",
"Q 37.203125 6.109375 41.296875 11.75 \r\n",
"Q 45.40625 17.390625 45.40625 27.296875 \r\n",
"Q 45.40625 37.203125 41.296875 42.84375 \r\n",
"Q 37.203125 48.484375 30.078125 48.484375 \r\n",
"Q 22.953125 48.484375 18.875 42.84375 \r\n",
"Q 14.796875 37.203125 14.796875 27.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-100\"/>\r\n",
" <path d=\"M 34.28125 27.484375 \r\n",
"Q 23.390625 27.484375 19.1875 25 \r\n",
"Q 14.984375 22.515625 14.984375 16.5 \r\n",
"Q 14.984375 11.71875 18.140625 8.90625 \r\n",
"Q 21.296875 6.109375 26.703125 6.109375 \r\n",
"Q 34.1875 6.109375 38.703125 11.40625 \r\n",
"Q 43.21875 16.703125 43.21875 25.484375 \r\n",
"L 43.21875 27.484375 \r\n",
"z\r\n",
"M 52.203125 31.203125 \r\n",
"L 52.203125 0 \r\n",
"L 43.21875 0 \r\n",
"L 43.21875 8.296875 \r\n",
"Q 40.140625 3.328125 35.546875 0.953125 \r\n",
"Q 30.953125 -1.421875 24.3125 -1.421875 \r\n",
"Q 15.921875 -1.421875 10.953125 3.296875 \r\n",
"Q 6 8.015625 6 15.921875 \r\n",
"Q 6 25.140625 12.171875 29.828125 \r\n",
"Q 18.359375 34.515625 30.609375 34.515625 \r\n",
"L 43.21875 34.515625 \r\n",
"L 43.21875 35.40625 \r\n",
"Q 43.21875 41.609375 39.140625 45 \r\n",
"Q 35.0625 48.390625 27.6875 48.390625 \r\n",
"Q 23 48.390625 18.546875 47.265625 \r\n",
"Q 14.109375 46.140625 10.015625 43.890625 \r\n",
"L 10.015625 52.203125 \r\n",
"Q 14.9375 54.109375 19.578125 55.046875 \r\n",
"Q 24.21875 56 28.609375 56 \r\n",
"Q 40.484375 56 46.34375 49.84375 \r\n",
"Q 52.203125 43.703125 52.203125 31.203125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-97\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(180.989688 16.318125)scale(0.12 -0.12)\">\r\n",
" <use xlink:href=\"#DejaVuSans-83\"/>\r\n",
" <use x=\"63.476562\" xlink:href=\"#DejaVuSans-105\"/>\r\n",
" <use x=\"91.259766\" xlink:href=\"#DejaVuSans-110\"/>\r\n",
" <use x=\"154.638672\" xlink:href=\"#DejaVuSans-117\"/>\r\n",
" <use x=\"218.017578\" xlink:href=\"#DejaVuSans-115\"/>\r\n",
" <use x=\"270.117188\" xlink:href=\"#DejaVuSans-111\"/>\r\n",
" <use x=\"331.298828\" xlink:href=\"#DejaVuSans-105\"/>\r\n",
" <use x=\"359.082031\" xlink:href=\"#DejaVuSans-100\"/>\r\n",
" <use x=\"422.558594\" xlink:href=\"#DejaVuSans-97\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <defs>\r\n",
" <clipPath id=\"p2e6fba7ef1\">\r\n",
" <rect height=\"217.44\" width=\"334.8\" x=\"42.620313\" y=\"22.318125\"/>\r\n",
" </clipPath>\r\n",
" </defs>\r\n",
"</svg>\r\n"
],
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"plot_sine() # Wykres z domyślnymi wartościami parametrów"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n",
"<!-- Created with matplotlib (https://matplotlib.org/) -->\r\n",
"<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 384.620313 277.314375\" width=\"384.620313pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n",
" <defs>\r\n",
" <style type=\"text/css\">\r\n",
"*{stroke-linecap:butt;stroke-linejoin:round;}\r\n",
" </style>\r\n",
" </defs>\r\n",
" <g id=\"figure_1\">\r\n",
" <g id=\"patch_1\">\r\n",
" <path d=\"M 0 277.314375 \r\n",
"L 384.620313 277.314375 \r\n",
"L 384.620313 0 \r\n",
"L 0 0 \r\n",
"z\r\n",
"\" style=\"fill:none;\"/>\r\n",
" </g>\r\n",
" <g id=\"axes_1\">\r\n",
" <g id=\"patch_2\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 377.420313 239.758125 \r\n",
"L 377.420313 22.318125 \r\n",
"L 42.620313 22.318125 \r\n",
"z\r\n",
"\" style=\"fill:#ffffff;\"/>\r\n",
" </g>\r\n",
" <g id=\"matplotlib.axis_1\">\r\n",
" <g id=\"xtick_1\">\r\n",
" <g id=\"line2d_1\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 57.838494 239.758125 \r\n",
"L 57.838494 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_2\">\r\n",
" <defs>\r\n",
" <path d=\"M 0 0 \r\n",
"L 0 3.5 \r\n",
"\" id=\"mab39fb6394\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
" </defs>\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"57.838494\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_1\">\r\n",
" <!-- 0 -->\r\n",
" <defs>\r\n",
" <path d=\"M 31.78125 66.40625 \r\n",
"Q 24.171875 66.40625 20.328125 58.90625 \r\n",
"Q 16.5 51.421875 16.5 36.375 \r\n",
"Q 16.5 21.390625 20.328125 13.890625 \r\n",
"Q 24.171875 6.390625 31.78125 6.390625 \r\n",
"Q 39.453125 6.390625 43.28125 13.890625 \r\n",
"Q 47.125 21.390625 47.125 36.375 \r\n",
"Q 47.125 51.421875 43.28125 58.90625 \r\n",
"Q 39.453125 66.40625 31.78125 66.40625 \r\n",
"z\r\n",
"M 31.78125 74.21875 \r\n",
"Q 44.046875 74.21875 50.515625 64.515625 \r\n",
"Q 56.984375 54.828125 56.984375 36.375 \r\n",
"Q 56.984375 17.96875 50.515625 8.265625 \r\n",
"Q 44.046875 -1.421875 31.78125 -1.421875 \r\n",
"Q 19.53125 -1.421875 13.0625 8.265625 \r\n",
"Q 6.59375 17.96875 6.59375 36.375 \r\n",
"Q 6.59375 54.828125 13.0625 64.515625 \r\n",
"Q 19.53125 74.21875 31.78125 74.21875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-48\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(54.657244 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_2\">\r\n",
" <g id=\"line2d_3\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 118.772155 239.758125 \r\n",
"L 118.772155 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_4\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"118.772155\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_2\">\r\n",
" <!-- 2 -->\r\n",
" <defs>\r\n",
" <path d=\"M 19.1875 8.296875 \r\n",
"L 53.609375 8.296875 \r\n",
"L 53.609375 0 \r\n",
"L 7.328125 0 \r\n",
"L 7.328125 8.296875 \r\n",
"Q 12.9375 14.109375 22.625 23.890625 \r\n",
"Q 32.328125 33.6875 34.8125 36.53125 \r\n",
"Q 39.546875 41.84375 41.421875 45.53125 \r\n",
"Q 43.3125 49.21875 43.3125 52.78125 \r\n",
"Q 43.3125 58.59375 39.234375 62.25 \r\n",
"Q 35.15625 65.921875 28.609375 65.921875 \r\n",
"Q 23.96875 65.921875 18.8125 64.3125 \r\n",
"Q 13.671875 62.703125 7.8125 59.421875 \r\n",
"L 7.8125 69.390625 \r\n",
"Q 13.765625 71.78125 18.9375 73 \r\n",
"Q 24.125 74.21875 28.421875 74.21875 \r\n",
"Q 39.75 74.21875 46.484375 68.546875 \r\n",
"Q 53.21875 62.890625 53.21875 53.421875 \r\n",
"Q 53.21875 48.921875 51.53125 44.890625 \r\n",
"Q 49.859375 40.875 45.40625 35.40625 \r\n",
"Q 44.1875 33.984375 37.640625 27.21875 \r\n",
"Q 31.109375 20.453125 19.1875 8.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-50\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(115.590905 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_3\">\r\n",
" <g id=\"line2d_5\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 179.705816 239.758125 \r\n",
"L 179.705816 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_6\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"179.705816\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_3\">\r\n",
" <!-- 4 -->\r\n",
" <defs>\r\n",
" <path d=\"M 37.796875 64.3125 \r\n",
"L 12.890625 25.390625 \r\n",
"L 37.796875 25.390625 \r\n",
"z\r\n",
"M 35.203125 72.90625 \r\n",
"L 47.609375 72.90625 \r\n",
"L 47.609375 25.390625 \r\n",
"L 58.015625 25.390625 \r\n",
"L 58.015625 17.1875 \r\n",
"L 47.609375 17.1875 \r\n",
"L 47.609375 0 \r\n",
"L 37.796875 0 \r\n",
"L 37.796875 17.1875 \r\n",
"L 4.890625 17.1875 \r\n",
"L 4.890625 26.703125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-52\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(176.524566 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_4\">\r\n",
" <g id=\"line2d_7\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 240.639477 239.758125 \r\n",
"L 240.639477 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_8\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"240.639477\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_4\">\r\n",
" <!-- 6 -->\r\n",
" <defs>\r\n",
" <path d=\"M 33.015625 40.375 \r\n",
"Q 26.375 40.375 22.484375 35.828125 \r\n",
"Q 18.609375 31.296875 18.609375 23.390625 \r\n",
"Q 18.609375 15.53125 22.484375 10.953125 \r\n",
"Q 26.375 6.390625 33.015625 6.390625 \r\n",
"Q 39.65625 6.390625 43.53125 10.953125 \r\n",
"Q 47.40625 15.53125 47.40625 23.390625 \r\n",
"Q 47.40625 31.296875 43.53125 35.828125 \r\n",
"Q 39.65625 40.375 33.015625 40.375 \r\n",
"z\r\n",
"M 52.59375 71.296875 \r\n",
"L 52.59375 62.3125 \r\n",
"Q 48.875 64.0625 45.09375 64.984375 \r\n",
"Q 41.3125 65.921875 37.59375 65.921875 \r\n",
"Q 27.828125 65.921875 22.671875 59.328125 \r\n",
"Q 17.53125 52.734375 16.796875 39.40625 \r\n",
"Q 19.671875 43.65625 24.015625 45.921875 \r\n",
"Q 28.375 48.1875 33.59375 48.1875 \r\n",
"Q 44.578125 48.1875 50.953125 41.515625 \r\n",
"Q 57.328125 34.859375 57.328125 23.390625 \r\n",
"Q 57.328125 12.15625 50.6875 5.359375 \r\n",
"Q 44.046875 -1.421875 33.015625 -1.421875 \r\n",
"Q 20.359375 -1.421875 13.671875 8.265625 \r\n",
"Q 6.984375 17.96875 6.984375 36.375 \r\n",
"Q 6.984375 53.65625 15.1875 63.9375 \r\n",
"Q 23.390625 74.21875 37.203125 74.21875 \r\n",
"Q 40.921875 74.21875 44.703125 73.484375 \r\n",
"Q 48.484375 72.75 52.59375 71.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-54\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(237.458227 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-54\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_5\">\r\n",
" <g id=\"line2d_9\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 301.573138 239.758125 \r\n",
"L 301.573138 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_10\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"301.573138\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_5\">\r\n",
" <!-- 8 -->\r\n",
" <defs>\r\n",
" <path d=\"M 31.78125 34.625 \r\n",
"Q 24.75 34.625 20.71875 30.859375 \r\n",
"Q 16.703125 27.09375 16.703125 20.515625 \r\n",
"Q 16.703125 13.921875 20.71875 10.15625 \r\n",
"Q 24.75 6.390625 31.78125 6.390625 \r\n",
"Q 38.8125 6.390625 42.859375 10.171875 \r\n",
"Q 46.921875 13.96875 46.921875 20.515625 \r\n",
"Q 46.921875 27.09375 42.890625 30.859375 \r\n",
"Q 38.875 34.625 31.78125 34.625 \r\n",
"z\r\n",
"M 21.921875 38.8125 \r\n",
"Q 15.578125 40.375 12.03125 44.71875 \r\n",
"Q 8.5 49.078125 8.5 55.328125 \r\n",
"Q 8.5 64.0625 14.71875 69.140625 \r\n",
"Q 20.953125 74.21875 31.78125 74.21875 \r\n",
"Q 42.671875 74.21875 48.875 69.140625 \r\n",
"Q 55.078125 64.0625 55.078125 55.328125 \r\n",
"Q 55.078125 49.078125 51.53125 44.71875 \r\n",
"Q 48 40.375 41.703125 38.8125 \r\n",
"Q 48.828125 37.15625 52.796875 32.3125 \r\n",
"Q 56.78125 27.484375 56.78125 20.515625 \r\n",
"Q 56.78125 9.90625 50.3125 4.234375 \r\n",
"Q 43.84375 -1.421875 31.78125 -1.421875 \r\n",
"Q 19.734375 -1.421875 13.25 4.234375 \r\n",
"Q 6.78125 9.90625 6.78125 20.515625 \r\n",
"Q 6.78125 27.484375 10.78125 32.3125 \r\n",
"Q 14.796875 37.15625 21.921875 38.8125 \r\n",
"z\r\n",
"M 18.3125 54.390625 \r\n",
"Q 18.3125 48.734375 21.84375 45.5625 \r\n",
"Q 25.390625 42.390625 31.78125 42.390625 \r\n",
"Q 38.140625 42.390625 41.71875 45.5625 \r\n",
"Q 45.3125 48.734375 45.3125 54.390625 \r\n",
"Q 45.3125 60.0625 41.71875 63.234375 \r\n",
"Q 38.140625 66.40625 31.78125 66.40625 \r\n",
"Q 25.390625 66.40625 21.84375 63.234375 \r\n",
"Q 18.3125 60.0625 18.3125 54.390625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-56\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(298.391888 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-56\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"xtick_6\">\r\n",
" <g id=\"line2d_11\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 362.506799 239.758125 \r\n",
"L 362.506799 22.318125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_12\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"362.506799\" xlink:href=\"#mab39fb6394\" y=\"239.758125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_6\">\r\n",
" <!-- 10 -->\r\n",
" <defs>\r\n",
" <path d=\"M 12.40625 8.296875 \r\n",
"L 28.515625 8.296875 \r\n",
"L 28.515625 63.921875 \r\n",
"L 10.984375 60.40625 \r\n",
"L 10.984375 69.390625 \r\n",
"L 28.421875 72.90625 \r\n",
"L 38.28125 72.90625 \r\n",
"L 38.28125 8.296875 \r\n",
"L 54.390625 8.296875 \r\n",
"L 54.390625 0 \r\n",
"L 12.40625 0 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-49\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(356.144299 254.356562)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-49\"/>\r\n",
" <use x=\"63.623047\" xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_7\">\r\n",
" <!-- $x$ -->\r\n",
" <defs>\r\n",
" <path d=\"M 60.015625 54.6875 \r\n",
"L 34.90625 27.875 \r\n",
"L 50.296875 0 \r\n",
"L 39.984375 0 \r\n",
"L 28.421875 21.6875 \r\n",
"L 8.296875 0 \r\n",
"L -2.59375 0 \r\n",
"L 24.3125 28.8125 \r\n",
"L 10.015625 54.6875 \r\n",
"L 20.3125 54.6875 \r\n",
"L 30.8125 34.90625 \r\n",
"L 49.125 54.6875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-Oblique-120\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(207.020313 268.034687)scale(0.1 -0.1)\">\r\n",
" <use transform=\"translate(0 0.3125)\" xlink:href=\"#DejaVuSans-Oblique-120\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"matplotlib.axis_2\">\r\n",
" <g id=\"ytick_1\">\r\n",
" <g id=\"line2d_13\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 42.620313 218.014125 \r\n",
"L 377.420313 218.014125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_14\">\r\n",
" <defs>\r\n",
" <path d=\"M 0 0 \r\n",
"L -3.5 0 \r\n",
"\" id=\"mb8743ac9ae\" style=\"stroke:#000000;stroke-width:0.8;\"/>\r\n",
" </defs>\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#mb8743ac9ae\" y=\"218.014125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_8\">\r\n",
" <!-- 4 -->\r\n",
" <defs>\r\n",
" <path d=\"M 10.59375 35.5 \r\n",
"L 73.1875 35.5 \r\n",
"L 73.1875 27.203125 \r\n",
"L 10.59375 27.203125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-8722\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(20.878125 221.813344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-8722\"/>\r\n",
" <use x=\"83.789062\" xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_2\">\r\n",
" <g id=\"line2d_15\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 42.620313 174.526125 \r\n",
"L 377.420313 174.526125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_16\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#mb8743ac9ae\" y=\"174.526125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_9\">\r\n",
" <!-- 2 -->\r\n",
" <g transform=\"translate(20.878125 178.325344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-8722\"/>\r\n",
" <use x=\"83.789062\" xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_3\">\r\n",
" <g id=\"line2d_17\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 42.620313 131.038125 \r\n",
"L 377.420313 131.038125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_18\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#mb8743ac9ae\" y=\"131.038125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_10\">\r\n",
" <!-- 0 -->\r\n",
" <g transform=\"translate(29.257813 134.837344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-48\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_4\">\r\n",
" <g id=\"line2d_19\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 42.620313 87.550125 \r\n",
"L 377.420313 87.550125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_20\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#mb8743ac9ae\" y=\"87.550125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_11\">\r\n",
" <!-- 2 -->\r\n",
" <g transform=\"translate(29.257813 91.349344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-50\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"ytick_5\">\r\n",
" <g id=\"line2d_21\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 42.620313 44.062125 \r\n",
"L 377.420313 44.062125 \r\n",
"\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"line2d_22\">\r\n",
" <g>\r\n",
" <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"42.620313\" xlink:href=\"#mb8743ac9ae\" y=\"44.062125\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_12\">\r\n",
" <!-- 4 -->\r\n",
" <g transform=\"translate(29.257813 47.861344)scale(0.1 -0.1)\">\r\n",
" <use xlink:href=\"#DejaVuSans-52\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"text_13\">\r\n",
" <!-- $y$ -->\r\n",
" <defs>\r\n",
" <path d=\"M 24.8125 -5.078125 \r\n",
"Q 18.5625 -15.578125 14.625 -18.1875 \r\n",
"Q 10.6875 -20.796875 4.59375 -20.796875 \r\n",
"L -2.484375 -20.796875 \r\n",
"L -0.984375 -13.28125 \r\n",
"L 4.203125 -13.28125 \r\n",
"Q 7.953125 -13.28125 10.59375 -11.234375 \r\n",
"Q 13.234375 -9.1875 16.5 -3.21875 \r\n",
"L 19.28125 2 \r\n",
"L 7.171875 54.6875 \r\n",
"L 16.703125 54.6875 \r\n",
"L 25.78125 12.796875 \r\n",
"L 50.875 54.6875 \r\n",
"L 60.296875 54.6875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-Oblique-121\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(14.778125 134.038125)rotate(-90)scale(0.1 -0.1)\">\r\n",
" <use transform=\"translate(0 0.3125)\" xlink:href=\"#DejaVuSans-Oblique-121\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <g id=\"line2d_23\">\r\n",
" <path clip-path=\"url(#pb123564158)\" d=\"M 57.838494 131.038125 \r\n",
"L 61.799182 114.504491 \r\n",
"L 63.93186 106.482953 \r\n",
"L 65.75987 100.45391 \r\n",
"L 67.283212 96.177277 \r\n",
"L 68.501885 93.315624 \r\n",
"L 69.720558 90.996523 \r\n",
"L 70.634563 89.63362 \r\n",
"L 71.548568 88.605868 \r\n",
"L 72.462573 87.921584 \r\n",
"L 73.376578 87.586309 \r\n",
"L 73.985914 87.558144 \r\n",
"L 74.595251 87.686459 \r\n",
"L 75.509256 88.171169 \r\n",
"L 76.423261 89.002868 \r\n",
"L 77.337266 90.174823 \r\n",
"L 78.251271 91.677547 \r\n",
"L 79.469944 94.174311 \r\n",
"L 80.688617 97.201278 \r\n",
"L 82.211959 101.663582 \r\n",
"L 84.039969 107.879247 \r\n",
"L 86.172647 116.061142 \r\n",
"L 89.21933 128.795459 \r\n",
"L 93.789354 147.909335 \r\n",
"L 95.922032 155.894184 \r\n",
"L 97.750042 161.88118 \r\n",
"L 99.273384 166.116318 \r\n",
"L 100.492057 168.941212 \r\n",
"L 101.71073 171.220957 \r\n",
"L 102.624735 172.552978 \r\n",
"L 103.53874 173.548955 \r\n",
"L 104.452745 174.200827 \r\n",
"L 105.36675 174.503317 \r\n",
"L 105.976086 174.509549 \r\n",
"L 106.585423 174.359332 \r\n",
"L 107.499428 173.841997 \r\n",
"L 108.413433 172.978185 \r\n",
"L 109.327438 171.774888 \r\n",
"L 110.241443 170.241846 \r\n",
"L 111.460116 167.706674 \r\n",
"L 112.678789 164.644107 \r\n",
"L 114.202131 160.142028 \r\n",
"L 116.030141 153.886726 \r\n",
"L 118.162819 145.671331 \r\n",
"L 121.209502 132.915584 \r\n",
"L 125.779526 113.830532 \r\n",
"L 127.912204 105.882937 \r\n",
"L 129.740214 99.938411 \r\n",
"L 131.263556 95.745067 \r\n",
"L 132.482229 92.957131 \r\n",
"L 133.700902 90.716903 \r\n",
"L 134.614907 89.415859 \r\n",
"L 135.528912 88.451728 \r\n",
"L 136.442917 87.832313 \r\n",
"L 137.356922 87.56263 \r\n",
"L 137.966258 87.578331 \r\n",
"L 138.575595 87.75044 \r\n",
"L 139.4896 88.300362 \r\n",
"L 140.403605 89.196226 \r\n",
"L 141.31761 90.43078 \r\n",
"L 142.231615 91.994032 \r\n",
"L 143.450288 94.567434 \r\n",
"L 144.668961 97.665383 \r\n",
"L 146.192303 102.206919 \r\n",
"L 148.020313 108.501417 \r\n",
"L 150.152991 116.749731 \r\n",
"L 153.504342 130.830342 \r\n",
"L 157.46503 147.37939 \r\n",
"L 159.597708 155.421526 \r\n",
"L 161.425718 161.474275 \r\n",
"L 162.949059 165.774355 \r\n",
"L 164.167733 168.656809 \r\n",
"L 165.386406 170.998203 \r\n",
"L 166.300411 172.378614 \r\n",
"L 167.214416 173.424392 \r\n",
"L 168.128421 174.127074 \r\n",
"L 169.042426 174.48097 \r\n",
"L 169.651762 174.5216 \r\n",
"L 170.261099 174.405737 \r\n",
"L 171.175104 173.939582 \r\n",
"L 172.089109 173.126159 \r\n",
"L 173.003113 171.972054 \r\n",
"L 173.917118 170.486607 \r\n",
"L 175.135792 168.011749 \r\n",
"L 176.354465 165.00511 \r\n",
"L 177.877806 160.565551 \r\n",
"L 179.705816 154.372608 \r\n",
"L 181.838494 146.210009 \r\n",
"L 184.885177 133.488272 \r\n",
"L 189.455202 114.358618 \r\n",
"L 191.58788 106.352849 \r\n",
"L 193.41589 100.341904 \r\n",
"L 194.939231 96.083148 \r\n",
"L 196.157905 93.237338 \r\n",
"L 197.376578 90.935207 \r\n",
"L 198.290583 89.585625 \r\n",
"L 199.204588 88.57158 \r\n",
"L 200.118593 87.901283 \r\n",
"L 201.032598 87.580158 \r\n",
"L 201.641934 87.561461 \r\n",
"L 202.251271 87.699232 \r\n",
"L 203.165276 88.198031 \r\n",
"L 204.079281 89.0436 \r\n",
"L 204.993285 90.229095 \r\n",
"L 205.90729 91.74492 \r\n",
"L 207.125964 94.258287 \r\n",
"L 208.344637 97.300648 \r\n",
"L 209.867978 101.780162 \r\n",
"L 211.695988 108.012992 \r\n",
"L 213.828666 116.209419 \r\n",
"L 216.875349 128.953098 \r\n",
"L 221.445374 148.054696 \r\n",
"L 223.578052 156.023532 \r\n",
"L 225.406062 161.992246 \r\n",
"L 226.929403 166.209378 \r\n",
"L 228.148077 169.018343 \r\n",
"L 229.36675 171.281048 \r\n",
"L 230.280755 172.599707 \r\n",
"L 231.19476 173.581946 \r\n",
"L 232.108765 174.219811 \r\n",
"L 233.02277 174.508141 \r\n",
"L 233.632106 174.504905 \r\n",
"L 234.241443 174.345236 \r\n",
"L 235.155448 173.813829 \r\n",
"L 236.069453 172.936173 \r\n",
"L 236.983457 171.719372 \r\n",
"L 237.897462 170.173275 \r\n",
"L 239.116136 167.621577 \r\n",
"L 240.334809 164.543709 \r\n",
"L 241.85815 160.024558 \r\n",
"L 243.68616 153.752281 \r\n",
"L 245.818838 145.522604 \r\n",
"L 248.865521 132.757884 \r\n",
"L 253.130878 114.889603 \r\n",
"L 255.263556 106.827052 \r\n",
"L 257.091566 100.750734 \r\n",
"L 258.614907 96.427306 \r\n",
"L 259.83358 93.524117 \r\n",
"L 261.052254 91.160483 \r\n",
"L 261.966258 89.762596 \r\n",
"L 262.880263 88.698816 \r\n",
"L 263.794268 87.977752 \r\n",
"L 264.708273 87.605242 \r\n",
"L 265.31761 87.552149 \r\n",
"L 265.926946 87.655558 \r\n",
"L 266.840951 88.103147 \r\n",
"L 267.754956 88.898274 \r\n",
"L 268.668961 90.034504 \r\n",
"L 269.582966 91.502639 \r\n",
"L 270.801639 93.955534 \r\n",
"L 272.020313 96.941778 \r\n",
"L 273.543654 101.358491 \r\n",
"L 275.371664 107.52857 \r\n",
"L 277.504342 115.671686 \r\n",
"L 280.551025 128.380553 \r\n",
"L 285.12105 147.525549 \r\n",
"L 287.253728 155.552056 \r\n",
"L 289.081738 161.586811 \r\n",
"L 290.605079 165.869089 \r\n",
"L 291.823752 168.735748 \r\n",
"L 293.042426 171.060213 \r\n",
"L 293.95643 172.427327 \r\n",
"L 294.870435 173.459415 \r\n",
"L 295.78444 174.148123 \r\n",
"L 296.698445 174.487875 \r\n",
"L 297.307782 174.519037 \r\n",
"L 297.917118 174.393715 \r\n",
"L 298.831123 173.913464 \r\n",
"L 299.745128 173.086157 \r\n",
"L 300.659133 171.918491 \r\n",
"L 301.573138 170.419917 \r\n",
"L 302.791811 167.928413 \r\n",
"L 304.010484 164.906327 \r\n",
"L 305.533826 160.449481 \r\n",
"L 307.361836 154.239265 \r\n",
"L 309.494514 146.061992 \r\n",
"L 312.541197 133.330672 \r\n",
"L 317.111222 114.212964 \r\n",
"L 319.2439 106.223069 \r\n",
"L 321.07191 100.230304 \r\n",
"L 322.595251 95.989479 \r\n",
"L 323.813924 93.159551 \r\n",
"L 325.032598 90.87442 \r\n",
"L 325.946602 89.538175 \r\n",
"L 326.860607 88.537852 \r\n",
"L 327.774612 87.88155 \r\n",
"L 328.688617 87.57458 \r\n",
"L 329.297954 87.565351 \r\n",
"L 329.90729 87.712577 \r\n",
"L 330.821295 88.225456 \r\n",
"L 331.7353 89.084884 \r\n",
"L 332.649305 90.283904 \r\n",
"L 333.56331 91.812811 \r\n",
"L 334.781983 94.342747 \r\n",
"L 336.000656 97.400463 \r\n",
"L 337.523998 101.897127 \r\n",
"L 339.352008 108.14704 \r\n",
"L 341.484686 116.357892 \r\n",
"L 344.531369 129.110765 \r\n",
"L 349.101394 148.199834 \r\n",
"L 351.234072 156.152552 \r\n",
"L 353.062082 162.102904 \r\n",
"L 354.585423 166.301976 \r\n",
"L 355.804096 169.094973 \r\n",
"L 357.02277 171.340608 \r\n",
"L 357.936774 172.64589 \r\n",
"L 358.850779 173.614376 \r\n",
"L 359.764784 174.238227 \r\n",
"L 360.678789 174.512394 \r\n",
"L 361.288126 174.499689 \r\n",
"L 361.897462 174.33057 \r\n",
"L 362.202131 174.187523 \r\n",
"L 362.202131 174.187523 \r\n",
"\" style=\"fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_3\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 42.620313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_4\">\r\n",
" <path d=\"M 377.420313 239.758125 \r\n",
"L 377.420313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_5\">\r\n",
" <path d=\"M 42.620313 239.758125 \r\n",
"L 377.420313 239.758125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"patch_6\">\r\n",
" <path d=\"M 42.620313 22.318125 \r\n",
"L 377.420313 22.318125 \r\n",
"\" style=\"fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;\"/>\r\n",
" </g>\r\n",
" <g id=\"text_14\">\r\n",
" <!-- Sinusoida -->\r\n",
" <defs>\r\n",
" <path d=\"M 53.515625 70.515625 \r\n",
"L 53.515625 60.890625 \r\n",
"Q 47.90625 63.578125 42.921875 64.890625 \r\n",
"Q 37.9375 66.21875 33.296875 66.21875 \r\n",
"Q 25.25 66.21875 20.875 63.09375 \r\n",
"Q 16.5 59.96875 16.5 54.203125 \r\n",
"Q 16.5 49.359375 19.40625 46.890625 \r\n",
"Q 22.3125 44.4375 30.421875 42.921875 \r\n",
"L 36.375 41.703125 \r\n",
"Q 47.40625 39.59375 52.65625 34.296875 \r\n",
"Q 57.90625 29 57.90625 20.125 \r\n",
"Q 57.90625 9.515625 50.796875 4.046875 \r\n",
"Q 43.703125 -1.421875 29.984375 -1.421875 \r\n",
"Q 24.8125 -1.421875 18.96875 -0.25 \r\n",
"Q 13.140625 0.921875 6.890625 3.21875 \r\n",
"L 6.890625 13.375 \r\n",
"Q 12.890625 10.015625 18.65625 8.296875 \r\n",
"Q 24.421875 6.59375 29.984375 6.59375 \r\n",
"Q 38.421875 6.59375 43.015625 9.90625 \r\n",
"Q 47.609375 13.234375 47.609375 19.390625 \r\n",
"Q 47.609375 24.75 44.3125 27.78125 \r\n",
"Q 41.015625 30.8125 33.5 32.328125 \r\n",
"L 27.484375 33.5 \r\n",
"Q 16.453125 35.6875 11.515625 40.375 \r\n",
"Q 6.59375 45.0625 6.59375 53.421875 \r\n",
"Q 6.59375 63.09375 13.40625 68.65625 \r\n",
"Q 20.21875 74.21875 32.171875 74.21875 \r\n",
"Q 37.3125 74.21875 42.625 73.28125 \r\n",
"Q 47.953125 72.359375 53.515625 70.515625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-83\"/>\r\n",
" <path d=\"M 9.421875 54.6875 \r\n",
"L 18.40625 54.6875 \r\n",
"L 18.40625 0 \r\n",
"L 9.421875 0 \r\n",
"z\r\n",
"M 9.421875 75.984375 \r\n",
"L 18.40625 75.984375 \r\n",
"L 18.40625 64.59375 \r\n",
"L 9.421875 64.59375 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-105\"/>\r\n",
" <path d=\"M 54.890625 33.015625 \r\n",
"L 54.890625 0 \r\n",
"L 45.90625 0 \r\n",
"L 45.90625 32.71875 \r\n",
"Q 45.90625 40.484375 42.875 44.328125 \r\n",
"Q 39.84375 48.1875 33.796875 48.1875 \r\n",
"Q 26.515625 48.1875 22.3125 43.546875 \r\n",
"Q 18.109375 38.921875 18.109375 30.90625 \r\n",
"L 18.109375 0 \r\n",
"L 9.078125 0 \r\n",
"L 9.078125 54.6875 \r\n",
"L 18.109375 54.6875 \r\n",
"L 18.109375 46.1875 \r\n",
"Q 21.34375 51.125 25.703125 53.5625 \r\n",
"Q 30.078125 56 35.796875 56 \r\n",
"Q 45.21875 56 50.046875 50.171875 \r\n",
"Q 54.890625 44.34375 54.890625 33.015625 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-110\"/>\r\n",
" <path d=\"M 8.5 21.578125 \r\n",
"L 8.5 54.6875 \r\n",
"L 17.484375 54.6875 \r\n",
"L 17.484375 21.921875 \r\n",
"Q 17.484375 14.15625 20.5 10.265625 \r\n",
"Q 23.53125 6.390625 29.59375 6.390625 \r\n",
"Q 36.859375 6.390625 41.078125 11.03125 \r\n",
"Q 45.3125 15.671875 45.3125 23.6875 \r\n",
"L 45.3125 54.6875 \r\n",
"L 54.296875 54.6875 \r\n",
"L 54.296875 0 \r\n",
"L 45.3125 0 \r\n",
"L 45.3125 8.40625 \r\n",
"Q 42.046875 3.421875 37.71875 1 \r\n",
"Q 33.40625 -1.421875 27.6875 -1.421875 \r\n",
"Q 18.265625 -1.421875 13.375 4.4375 \r\n",
"Q 8.5 10.296875 8.5 21.578125 \r\n",
"z\r\n",
"M 31.109375 56 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-117\"/>\r\n",
" <path d=\"M 44.28125 53.078125 \r\n",
"L 44.28125 44.578125 \r\n",
"Q 40.484375 46.53125 36.375 47.5 \r\n",
"Q 32.28125 48.484375 27.875 48.484375 \r\n",
"Q 21.1875 48.484375 17.84375 46.4375 \r\n",
"Q 14.5 44.390625 14.5 40.28125 \r\n",
"Q 14.5 37.15625 16.890625 35.375 \r\n",
"Q 19.28125 33.59375 26.515625 31.984375 \r\n",
"L 29.59375 31.296875 \r\n",
"Q 39.15625 29.25 43.1875 25.515625 \r\n",
"Q 47.21875 21.78125 47.21875 15.09375 \r\n",
"Q 47.21875 7.46875 41.1875 3.015625 \r\n",
"Q 35.15625 -1.421875 24.609375 -1.421875 \r\n",
"Q 20.21875 -1.421875 15.453125 -0.5625 \r\n",
"Q 10.6875 0.296875 5.421875 2 \r\n",
"L 5.421875 11.28125 \r\n",
"Q 10.40625 8.6875 15.234375 7.390625 \r\n",
"Q 20.0625 6.109375 24.8125 6.109375 \r\n",
"Q 31.15625 6.109375 34.5625 8.28125 \r\n",
"Q 37.984375 10.453125 37.984375 14.40625 \r\n",
"Q 37.984375 18.0625 35.515625 20.015625 \r\n",
"Q 33.0625 21.96875 24.703125 23.78125 \r\n",
"L 21.578125 24.515625 \r\n",
"Q 13.234375 26.265625 9.515625 29.90625 \r\n",
"Q 5.8125 33.546875 5.8125 39.890625 \r\n",
"Q 5.8125 47.609375 11.28125 51.796875 \r\n",
"Q 16.75 56 26.8125 56 \r\n",
"Q 31.78125 56 36.171875 55.265625 \r\n",
"Q 40.578125 54.546875 44.28125 53.078125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-115\"/>\r\n",
" <path d=\"M 30.609375 48.390625 \r\n",
"Q 23.390625 48.390625 19.1875 42.75 \r\n",
"Q 14.984375 37.109375 14.984375 27.296875 \r\n",
"Q 14.984375 17.484375 19.15625 11.84375 \r\n",
"Q 23.34375 6.203125 30.609375 6.203125 \r\n",
"Q 37.796875 6.203125 41.984375 11.859375 \r\n",
"Q 46.1875 17.53125 46.1875 27.296875 \r\n",
"Q 46.1875 37.015625 41.984375 42.703125 \r\n",
"Q 37.796875 48.390625 30.609375 48.390625 \r\n",
"z\r\n",
"M 30.609375 56 \r\n",
"Q 42.328125 56 49.015625 48.375 \r\n",
"Q 55.71875 40.765625 55.71875 27.296875 \r\n",
"Q 55.71875 13.875 49.015625 6.21875 \r\n",
"Q 42.328125 -1.421875 30.609375 -1.421875 \r\n",
"Q 18.84375 -1.421875 12.171875 6.21875 \r\n",
"Q 5.515625 13.875 5.515625 27.296875 \r\n",
"Q 5.515625 40.765625 12.171875 48.375 \r\n",
"Q 18.84375 56 30.609375 56 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-111\"/>\r\n",
" <path d=\"M 45.40625 46.390625 \r\n",
"L 45.40625 75.984375 \r\n",
"L 54.390625 75.984375 \r\n",
"L 54.390625 0 \r\n",
"L 45.40625 0 \r\n",
"L 45.40625 8.203125 \r\n",
"Q 42.578125 3.328125 38.25 0.953125 \r\n",
"Q 33.9375 -1.421875 27.875 -1.421875 \r\n",
"Q 17.96875 -1.421875 11.734375 6.484375 \r\n",
"Q 5.515625 14.40625 5.515625 27.296875 \r\n",
"Q 5.515625 40.1875 11.734375 48.09375 \r\n",
"Q 17.96875 56 27.875 56 \r\n",
"Q 33.9375 56 38.25 53.625 \r\n",
"Q 42.578125 51.265625 45.40625 46.390625 \r\n",
"z\r\n",
"M 14.796875 27.296875 \r\n",
"Q 14.796875 17.390625 18.875 11.75 \r\n",
"Q 22.953125 6.109375 30.078125 6.109375 \r\n",
"Q 37.203125 6.109375 41.296875 11.75 \r\n",
"Q 45.40625 17.390625 45.40625 27.296875 \r\n",
"Q 45.40625 37.203125 41.296875 42.84375 \r\n",
"Q 37.203125 48.484375 30.078125 48.484375 \r\n",
"Q 22.953125 48.484375 18.875 42.84375 \r\n",
"Q 14.796875 37.203125 14.796875 27.296875 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-100\"/>\r\n",
" <path d=\"M 34.28125 27.484375 \r\n",
"Q 23.390625 27.484375 19.1875 25 \r\n",
"Q 14.984375 22.515625 14.984375 16.5 \r\n",
"Q 14.984375 11.71875 18.140625 8.90625 \r\n",
"Q 21.296875 6.109375 26.703125 6.109375 \r\n",
"Q 34.1875 6.109375 38.703125 11.40625 \r\n",
"Q 43.21875 16.703125 43.21875 25.484375 \r\n",
"L 43.21875 27.484375 \r\n",
"z\r\n",
"M 52.203125 31.203125 \r\n",
"L 52.203125 0 \r\n",
"L 43.21875 0 \r\n",
"L 43.21875 8.296875 \r\n",
"Q 40.140625 3.328125 35.546875 0.953125 \r\n",
"Q 30.953125 -1.421875 24.3125 -1.421875 \r\n",
"Q 15.921875 -1.421875 10.953125 3.296875 \r\n",
"Q 6 8.015625 6 15.921875 \r\n",
"Q 6 25.140625 12.171875 29.828125 \r\n",
"Q 18.359375 34.515625 30.609375 34.515625 \r\n",
"L 43.21875 34.515625 \r\n",
"L 43.21875 35.40625 \r\n",
"Q 43.21875 41.609375 39.140625 45 \r\n",
"Q 35.0625 48.390625 27.6875 48.390625 \r\n",
"Q 23 48.390625 18.546875 47.265625 \r\n",
"Q 14.109375 46.140625 10.015625 43.890625 \r\n",
"L 10.015625 52.203125 \r\n",
"Q 14.9375 54.109375 19.578125 55.046875 \r\n",
"Q 24.21875 56 28.609375 56 \r\n",
"Q 40.484375 56 46.34375 49.84375 \r\n",
"Q 52.203125 43.703125 52.203125 31.203125 \r\n",
"z\r\n",
"\" id=\"DejaVuSans-97\"/>\r\n",
" </defs>\r\n",
" <g transform=\"translate(180.989688 16.318125)scale(0.12 -0.12)\">\r\n",
" <use xlink:href=\"#DejaVuSans-83\"/>\r\n",
" <use x=\"63.476562\" xlink:href=\"#DejaVuSans-105\"/>\r\n",
" <use x=\"91.259766\" xlink:href=\"#DejaVuSans-110\"/>\r\n",
" <use x=\"154.638672\" xlink:href=\"#DejaVuSans-117\"/>\r\n",
" <use x=\"218.017578\" xlink:href=\"#DejaVuSans-115\"/>\r\n",
" <use x=\"270.117188\" xlink:href=\"#DejaVuSans-111\"/>\r\n",
" <use x=\"331.298828\" xlink:href=\"#DejaVuSans-105\"/>\r\n",
" <use x=\"359.082031\" xlink:href=\"#DejaVuSans-100\"/>\r\n",
" <use x=\"422.558594\" xlink:href=\"#DejaVuSans-97\"/>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" </g>\r\n",
" <defs>\r\n",
" <clipPath id=\"pb123564158\">\r\n",
" <rect height=\"217.44\" width=\"334.8\" x=\"42.620313\" y=\"22.318125\"/>\r\n",
" </clipPath>\r\n",
" </defs>\r\n",
"</svg>\r\n"
],
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"plot_sine(amplitude=2, frequency=3) # Wykres z określonymi parametrami"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Interaktywne wykresy\n",
"\n",
"Wykresy w Jupyterze mogą posiadać elementy interaktywności, np. wartości parametrów regulowane suwakiem."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"W tym celu należy skorzystać z widżetów z biblioteki `ipywidgets`."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Aby używać interaktywnych widżetów w środowiskach Jupyter Notebook (klasycznym) i JupyterLab, trzeba je najpierw zainstalować."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Instalacja `ipywidgets` w klasycznym środowisku Jupyter Notebook\n",
"\n",
" conda install -c conda-forge ipywidgets"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"#### Instalacja `ipywidgets` w środowisku JupyterLab\n",
"\n",
" conda install -c conda-forge nodejs\n",
" jupyter labextension install @jupyter-widgets/jupyterlab-manager"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"**Uwaga!** W niektórych przypadkach mogą być potrzebne uprawnienia administratora - wtedy powyższe polecenia należy poprzedzić komendą `sudo`."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Teraz możemy przystąpić do tworzenia widżetów:"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"source": [
"import ipywidgets\n",
"\n",
"# Stworzenie widżetów\n",
"slider_amplitude = ipywidgets.FloatSlider(\n",
" min=0.0, max=5.0, step=0.1, value=1.0, description=\"amplituda\", width=300)\n",
"slider_frequency = ipywidgets.FloatSlider(\n",
" min=0.5, max=10.0, step=0.1, value=1.0, description=\"częstotliwość\", width=300)\n",
"\n",
"# Funkcja obsługi widżetów\n",
"def slider_handler(amplitude, frequency):\n",
" plot_sine(amplitude, frequency)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Wykres może zmieniać się od razu po przesunięciu suwaka:"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e7c538acb75c465486eae608cfa4f0a4",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(FloatSlider(value=1.0, description='amplituda', max=5.0), FloatSlider(value=1.0, descrip…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<function __main__.slider_handler(amplitude, frequency)>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ipywidgets.interact(\n",
" slider_handler, amplitude=slider_amplitude, frequency=slider_frequency)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"...albo dopiero po zatwierdzeniu zmiany przyciskiem:"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "03e5ed27e0ec4664aeb5f4454990f1c5",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(FloatSlider(value=1.0, description='amplituda', max=5.0), FloatSlider(value=1.0, descrip…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<function __main__.slider_handler(amplitude, frequency)>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ipywidgets.interact_manual(\n",
" slider_handler, amplitude=slider_amplitude, frequency=slider_frequency)"
]
}
],
"metadata": {
"celltoolbar": "Slideshow",
"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.3"
},
"rise": {
"theme": "white"
}
},
"nbformat": 4,
"nbformat_minor": 4
}