{
  "cells" : [
    {
      "cell_type" : "markdown",
      "id" : "F0DFD300-5D67-49F1-9D94-104CE79785C3",
      "metadata" : {

      },
      "source" : [
        "# Visualization\n",
        "\n",
        "Plotting with Matplotlib."
      ]
    },
    {
      "cell_type" : "code",
      "execution_count" : null,
      "id" : "DA327BAB-9A31-4F0F-B229-44600B2E656E",
      "metadata" : {

      },
      "outputs" : [

      ],
      "source" : [
        "import matplotlib\n",
        "matplotlib.use('AGG')\n",
        "import matplotlib.pyplot as plt\n",
        "import numpy as np"
      ]
    },
    {
      "cell_type" : "markdown",
      "id" : "EB76269A-E628-4FEB-9407-E2EBBA666035",
      "metadata" : {

      },
      "source" : [
        "## Line Plot"
      ]
    },
    {
      "cell_type" : "code",
      "execution_count" : null,
      "id" : "C688D069-BD8A-448A-8056-70C3E762CEF6",
      "metadata" : {

      },
      "outputs" : [

      ],
      "source" : [
        "x = np.linspace(0, 2 * np.pi, 100)\n",
        "y = np.sin(x)\n",
        "\n",
        "plt.figure(figsize=(8, 4))\n",
        "plt.plot(x, y, label='sin(x)')\n",
        "plt.xlabel('x')\n",
        "plt.ylabel('y')\n",
        "plt.title('Sine Wave')\n",
        "plt.legend()\n",
        "plt.grid(True)\n",
        "plt.show()"
      ]
    }
  ],
  "metadata" : {
    "kernelspec" : {
      "display_name" : "Python 3 (Pyodide)",
      "language" : "python",
      "name" : "python3"
    },
    "language_info" : {
      "name" : "python",
      "version" : "3.14.2"
    }
  },
  "nbformat" : 5,
  "nbformat_minor" : 10
}