475 lines
1.3 MiB
Plaintext
475 lines
1.3 MiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Zweidimensionale Flächen darstellen\n",
|
||
|
"\n",
|
||
|
"#### Erstellt von B. Miesch, 11.02.2021 für die Vorlesung Höhere Mathematik 2 der ZHAW SoE, mit Anpassungen von R. Knaack\n",
|
||
|
"\n",
|
||
|
"In diesem Tutorial wollen wir uns damit beschäftigen, wie wir Flächen darstellen können. Eine zweidimensionale Fläche ist zum Beispiel durch den Graphen einer Funktion $f\\colon \\mathbb{R}^2 \\to \\mathbb{R}$ gegeben. Wir definieren uns also zuerst eine Funktion $f(x,y) = x^2 + y^2$.\n",
|
||
|
"\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def f(x,y):\n",
|
||
|
" return x**2 + y**2"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Nun berechnen wir die Koordinaten für eine Menge von Stützpunkten. Dazu legen wir mit dem Befehl `numpy.meshgrid()` ein Gitter in die x-y-Ebene und berechnen anschliessend für jeden Punkt den Funktionswert $z=f(x,y)$."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"(50, 50)\n",
|
||
|
"(50, 50)\n",
|
||
|
"(50, 50)\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"import numpy as np\n",
|
||
|
"\n",
|
||
|
"[x,y] = np.meshgrid(np.linspace(-5,5), np.linspace(-5,5));\n",
|
||
|
"z = f(x,y)\n",
|
||
|
"\n",
|
||
|
"print(np.shape(x))\n",
|
||
|
"print(np.shape(y))\n",
|
||
|
"print(np.shape(z))\n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Wir sehen, dass x, y und z hier jeweils 50x50 Matrizen sind. Für jedes $x\\in[-5,5]$ und $y\\in[-5,5]$ steht der entsprechende Funktionswert $z=f(x,y)$ in dieser Matrix z, die zugehörige $x$-Koordinate in der Matrix x resp. die zugehörige $y$-Koordinate in der Matrix y. Nun stehen uns in Python verschiedene Möglichkeiten zu Verfügung, um diese Fläche $z$ (resp. die Matrix z) zu visualisieren. Wir schauen uns hier mal eine kleine Auswahl an."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"### Höhenlinien\n",
|
||
|
"\n",
|
||
|
"Die uns bekannte Bibliothek `matplotlib` stellt die Funktion `contour` zur Verfügung, welche die Höhenlinien der Fläche einzuzeichnet. "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjUAAAHHCAYAAABHp6kXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAADgU0lEQVR4nOzddXiT9/rH8XeaurtAW2qUQpHi7i5DNmCwjTHm7nK2nbnvNzs7E+YbYxuyAcPd3aFQqBt19zb2/P5I28FZt9WfPOn3dV29gDQkd0NIPrm/ppIkSUIQBEEQBEHhLOQuQBAEQRAEoTWIUCMIgiAIglkQoUYQBEEQBLMgQo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eZTZ2ZFKcsun2ZF/FmKNdUAOFhaMy+sF4sj+hPs7C5zhcLVNDodWSXlZJWWkV9eQUF5JfnlFeTV/ppf+2thZRWGNniJUatUjQq3ErRKGGqIs60Nno4OeDraG391sK//vZejA95ODnR2dcbR1qZN7l9onlJNNasSzvPD5VOkl5cAxufTlMBu3N59AP28OpvN62pieTqfxK8iriwVgHCnQB7seiOhjqY5ZF83HHUs7330Ug12ak9G+b6Cr31fEWoaUvegfHt2Ahb2FViq7Bjq/TQhzpPlLq1BkiSxO/cEXyetpVRbAcBk32EsCb7ObIaaTuVl8G3MCbamxaKvfSoGOLqwOKI/88N642xtmkHT3NVodWSWlJFRXEpmSSkZxXVfJWQUl5JXVkFjXzhUgKu9HS52tvXdDiebq7sif1zuaGONnZXlNV2UP7oqdb9Xo/6b1Q//y2CQ0Oob7v7UX6bVUaHR/E0nqbr
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"\n",
|
||
|
"plt.contour(x, y, z)\n",
|
||
|
"\n",
|
||
|
"plt.title('Höhenlinien')\n",
|
||
|
"plt.xlabel('x')\n",
|
||
|
"plt.ylabel('y')\n",
|
||
|
"\n",
|
||
|
"plt.show()\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Wir können auch eine andere Einfärbung wählen und dazu eine Legende generieren."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAisAAAHHCAYAAAB+wBhMAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bG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RY97yWvw1TehuTxEtOzbCsshvfR5z6wsghNyYnfdO9FBZcewRgqHf/Jj4Y78DIHLFu4hc/V5isZgSKzZiRoqVtvt+jHjstwCELrqC0nd/GK1ICVRW7wGyz/8W0glweXCfeQVGw8Ki2HK8CMsi3d9BuqcNYeYBcAVLCNS14Aool+nJYJqCdM4ik7PIFn7mLbI5QTYnBclEcCwJMVGLgsvQ8Lg0vG4dj1vH49JH7mv4PAYuQ4mZk8FMJ0h27SUXHZAHNB1f1Sz8VbNtv9kxu/eRe+F3kEmC24v7rKswZs0rii1CCGIP/5rh3/0CgNDqK9Evu4HSsjIlVmzCjBQrWz5yDWGPm8iV7yZy1Y1FcXMLITB3vEJ+45NydxGpwH3eteiRiim35XgRQpAd6iHVtQ8rlwHA8AXw17bgDpepcMFxIoQgmxeksyapjEU6a8n7WYtc/tino66B2yW9Ga6DvBljng0dw9DQNQ7xhOi6DO1o2rFDO2IkVGSJgz00YBZ+WmMenfyIl+dgz04ub2Edx8riMjT8Hh2f18Dn0eV9j4HXranv0zjIJYZJdrZiJmMAaIYbf00j3opaNM2+lSwiGSP7/G8R/R0AGIvPxrXs/KJtHmNPPTzqcTeXn0nL335GiRWbMGPFSsP7PzYam5xqRC5Dbt3DWG3bAdAbF+M+/XI0G7tv84k
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from matplotlib import cm\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure(0)\n",
|
||
|
"cont = plt.contour(x, y, z, cmap=cm.coolwarm)\n",
|
||
|
"fig.colorbar(cont, shrink=0.5, aspect=5)\n",
|
||
|
"\n",
|
||
|
"plt.title('Höhenlinien')\n",
|
||
|
"plt.xlabel('x')\n",
|
||
|
"plt.ylabel('y')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Auch die Niveaus können selber ausgewähl werden."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjQAAAHHCAYAAACoZcIpAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAADhiUlEQVR4nOydd3hUZdqH7zM9vXdSCKEkdJAiRVABRUXEgm1ddV27rm3Vz9VVdy2ou5a17NrWLmsHrAgC0juGTggpJKT3ZCaZes73x0kCKJ2QeU9y7uuaSzNMkicz57zv732qpCiKgo6Ojo6Ojo6OhjH42wAdHR0dHR0dnZNFFzQ6Ojo6Ojo6mkcXNDo6Ojo6OjqaRxc0Ojo6Ojo6OppHFzQ6Ojo6Ojo6mkcXNDo6Ojo6OjqaRxc0Ojo6Ojo6OppHFzQ6Ojo6Ojo6mkcXNDo6Ojo6OjqaRxc0Ojp+YsCAAUycOBGAO+64A0mSfvOatLQ0Lrjggk62TOXxxx//jU1paWlcd911J/TzJk6c2P736ujo6HQ0uqDR0ekA3nvvPSRJYsOGDYf894kTJzJgwICDnnvmmWd4+OGHAbj22mv58MMPT7mdOjo6Ol0Vk78N0NHprhzoeRkxYgQjRozwozXHRk5ODgbDiZ2DFixY0MHW6Ojo6OxHFzQ6OjrHjNVqPeHvtVgsHWiJjo6OzsHoIScdHT/g9Xp54okn6NWrF1arlbS0NP7yl7/gcrkO+foVK1YwcuRIbDYb6enpfPDBB795TX19PXfffTfJyclYrVYyMjJ49tlnkWW5/TWFhYVIksQ///lP3nzzzfbfP2LECNavX39Uu3+dQ9MWalu5ciX33nsvMTExBAUFMWPGDKqqqg763kPl0LhcLh577DEyMjKwWq0kJyfzwAMP/OZ9kCSJO+64g7lz5zJgwACsViv9+/dn/vz5R7VZR0ene6B7aHR0OpCGhgaqq6t/87zH4zno6z/+8Y+8//77XHrppdx3332sXbuWWbNmsXPnTubMmXPQa/fs2cOll17KDTfcwLXXXss777zDddddx/Dhw+nfvz8Azc3NTJgwgZKSEm6++WZSUlJYtWoVDz30EGVlZbz00ksH/czZs2fT1NTEzTffjCRJPPfcc1x88cXk5+djNpuP++++8847iYiI4LHHHqOwsJCXXnqJO+64g08//fSw3yPLMhdeeCErVqzgpptuIjMzk61bt/Liiy+ye/du5s6de9DrV6xYwVdffcVtt91GSEgIL7/8MpdccglFRUVERUUdt806OjpdDEVHR+ekeffddxXgiI/+/fsriqIo2dnZCqD88Y9/POhn/PnPf1YAZfHixe3PpaamKoCybNmy9ucqKysVq9Wq3Hfffe3PPfHEE0pQUJCye/fug37m//3f/ylGo1EpKipSFEVRCgoKFECJiopSamtr2183b948BVC++eab9ucee+wx5ddLRGpqqnLttdf+5u+eNGmSIsty+/P33HOPYjQalfr6+vbnJkyYoEyYMKH96w8//FAxGAzK8uXLD/odr7/+ugIoK1eubH8OUCwWi7Jnz5725zZv3qwAyiuvvKLo6Ojo6CEnHZ0O5LXXXmPhwoW/eQwaNKj9Nd9//z0A995770Hfe9999wHw3XffHfR8VlYW48ePb/86JiaGvn37kp+f3/7c559/zvjx44mIiKC6urr9MWnSJHw+H8uWLTvoZ15++eVERES0f9328w/8mcfDTTfddFCJ9/jx4/H5fOzdu/ew3/P555+TmZlJv379DrL5rLPOAmDJkiUHvX7SpEn06tWr/etBgwYRGhp6wjbr6Oh0LfSQk45OBzJy5EhOO+203zzfJjQA9u7di8FgICMj46DXxMfHEx4e/hsRkJKScsifV1dX1/51bm4uW7ZsISYm5pB2VVZWHvFntombA3/m8XAiPy83N5edO3eesM1tv+dEbdbR0ela6IJGR8dPHKqR3qEwGo2HfF5RlPb/l2WZyZMn88ADDxzytX369Dn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iSmnGQmwdO3FSSRkWaGyTqaowkdxhZfiCh/lNT7q7Ye/9SQJwoMlIkINRB7wiAgxEBFqICzIQFCAhMko1ufokxUcLQpNzQq1jTJ1jTK1BzzqmtSHLB/+Z4QGScRFGkmONZIcZyQl3kR8lAGjQay/tSvj9qqHoFU7ZBQFgm1w/igjWalde8FUFFi9G7YXQ4ujkbsuCqOhoYHQ0FB/m6ZzDHRLQfPDugamnBZKV14fnW6FhZtkNuxWd46wIJh+upFeiV17QfI3PlmhrNpHUbmPogofRRVeSip9uDyHfn1IoER8lJH4SANxUUbiI43ERanipatu4LKsUG9XKK/xUVHro7xGprxWFXkNhxF5ZhMkxhhJiTOSHGciJc5Ij1ijcIKuq7GvSmbuKh9VDerX/VMlzh9lJKgLe2sUBTblw8ptuqDRGt1S0NTXNxAW1nUv0D0lqlemoVn9ekQfA5OHG7Cau+4i5C+cboWCUi95+7zs2eeloMyLy/3b15lNtHocTCTHGUmMVoVLkB5eOYgWl0JlrY/Sah/FFT6KK1WvlvMw72lagolePUz0SjLRK8moh6tOAV6fws9bZFZuk5EVCLTC+SON9E/r2iHrTTmNDO+nCxot0S0FTVe9QFvcCj9u8PHLHvUjjQiG6WOM9IzXF/mOoqlZZneRKl7ySrzsq/Ah/+oOslkgNV4VLsmtHoX4SAOGLupxOdXIikJVnawKnNaQ3d5yH45f5etIqF6cXklGevUw0SfFTESIfu13FKU1CnNXeamoU7/OTFG9NSEBXfO67ur7RVdEFzRdhIJymTkrVK+MBIzKNHD2EAMW3StzUnh9Cnn7vOwo8LCz0EtRxW+zdSNDDa1eAiMZPUwkRht18XKKURSFilpZFZb7vOwp8VJV99vEnMRoA/3SzGSlmemTYtLvh5PE61NYvk1m2Zb93pppo7tmbk1X3i+6Krqg0Tg+WWFJtsyKbTIKEBkCF40xkhrX9Ra
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = plt.figure(1)\n",
|
||
|
"cont = plt.contour(x, y, z, [1,4,9,16,25,36,49,64,81,100,121,144,169],cmap=cm.coolwarm)\n",
|
||
|
"fig.colorbar(cont, shrink=0.5, aspect=5)\n",
|
||
|
"\n",
|
||
|
"plt.title('Höhenlinien')\n",
|
||
|
"plt.xlabel('x')\n",
|
||
|
"plt.ylabel('y')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"### Oberfläche im 3D\n",
|
||
|
"\n",
|
||
|
"Nun wollen wir die Fläche im dreidimensionalen Raum darstellen. Dazu verwenden wir das Paket `mpl_toolkits.mplot3d`, welches uns eine interaktive Ansicht bietet. Dazu müssen wir hier in jupyter noch mit dem Befehlt `%matplotlib notebook` die Einstellungen anpassen."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "07c5aa45d92240aaae64c3010b15bdef",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9d5hk6V3fDX8q59g55zQ5x10hhIxASEhoAYPlBxPsy2BZLwjLNoZXRGHrwQIMZpEFliVQsCKCFasAWrFxcuiezjl3V3V1V87x+aO6TtXpntnpmame6d2+P9e1106fOnWfU6eq+3zrF74/RS6XyyEQCAQCgUAg2Dcon/QJC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BCAAoFgV8jlcqTTadLpNJCPxq2vrzM4OEhlZSUHDhxArVZL+95PAN5t/UgkIksZ53I57HY7drtdEoSlEcWtgjAWi6FQKLDb7ZIoFIJQIBDsB4QAFAgEZacQ9ctkMpKYmpiYYHFxkQMHDtDQ0CDb/2EE4FZyuRzhcFgShH6/H0AmCM1ms0wQTk9Pk0ql6OzslEUICz6EhZSxQCAQvNkQAlAgEJSNrd5+SqWSaDTKwMAAAEePHsVkMt31eY8qAO+2ZigUkglChUIhpYvtdjsul4t0Ok1vb++2CCGwrX5QCEKBQPBmQQhAgUBQFrZ6+ykUClZXVxkeHqaxsZGenp57iqfdEIBbyWazhEIhKV0cCAQA0Gq1tLS0YLfbMRqN90wZgxCEAoHgzYMQgAKB4JHZ6u2XyWQYHR1lbW2Nw4cPU11d/brPfxwC8G7nPDo6SjQaRaVSEQwGUavVsgihwWCQCcJSMQh5kSsEoUA
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9d5hk6V3fDX8q59g55zQ5x10hhIxASEhoAYPlBxPsy2BZLwjLNoZXRGHrwQIMZpEFliVQsCKCFasAWrFxcuiezjl3V3V1V87x+aO6TtXpntnpmame6d2+P9e1106fOnWfU6eq+3zrF74/RS6XyyEQCAQCgUAg2Dcon/QJCAQCgUAgEAgeL0IACgQCgUAgEOwzhAAUCAQCgUAg2GcIASgQCAQCgUCwzxACUCAQCAQCgWCfIQSgQCAQCAQCwT5DCECBQCAQCASC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FIJQIBDsB4QAFAgEZacQ9ctkMpKYmpiYYHFxkQMHDtDQ0CDb/2EE4FZyuRzhcFgShH6/H0AmCM1ms0wQTk9Pk0ql6OzslEUICz6EhZSxQCAQvNkQAlAgEJSNrd5+SqWSaDTKwMAAAEePHsVkMt31eY8qAO+2ZigUkglChUIhpYvtdjsul4t0Ok1vb++2CCGwrX5QCEKBQPBmQQhAgUBQFrZ6+ykUClZXVxkeHqaxsZGenp57iqfdEIBbyWazhEIhKV0cCAQA0Gq1tLS0YLfbMRqN90wZgxCEAoHgzYMQgAKB4JHZ6u2XyWQYHR1lbW2Nw4cPU11d/brPfxwC8G7nPDo6SjQ
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"%matplotlib widget\n",
|
||
|
"from mpl_toolkits.mplot3d import Axes3D\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure(2)\n",
|
||
|
"ax = fig.add_subplot(111, projection='3d')\n",
|
||
|
"ax.plot_surface(x,y,z)\n",
|
||
|
"\n",
|
||
|
"plt.title('Fläche')\n",
|
||
|
"ax.set_xlabel('x')\n",
|
||
|
"ax.set_ylabel('y')\n",
|
||
|
"ax.set_zlabel('z')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Mit der Option `projection` wählen wir den dreidimensionalen Plot aus. Auch hier können wir wieder mit der Einfärbung spielen."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "45a17e8e23854dadadcb34e87dc2810a",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9eZwc913nj7/q6PucGWlG933Lh2zJtmZkg2PsONkkxFjLJiwQknjZzWL7S2xYIEBIMGSTBb4E+Eb2sqyxCT+0AScbSPCSbHASJ7Elx4c0kmZ0azS6R9LM9Ezfdf7+6P5UV1VXVR/TPdPSvJ+PRz9muqq6qqa7p+vVr/fF6bqugyAIgiAIgpg38HN9AgRBEARBEMTsQgKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIAiCIAhinkECkCAIgiAIYp5BApAgCIIgCGKeQQKQIIiWsWrVKnz0ox+1LPuTP/kTcByHs2fP4vvf/z44jsNXv/rVhvd99uxZcByHP/mTP2nR2RIEQcxfSAASBFEXL774IjiOc7z91m/9luvj3ve+9+Fv//ZvsXDhQmzevBl/+7d/i7vvvnsWz5wgCIKwI871CRAE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GAuyBkoWIShARBEDcuJAAJ4iaFhXxZqJfneaRSKQwODiIajWLTpk1QVRWpVAqTk5OYnJyEJEmIx+OGIIzH446CkN14ngfP8yQICYIgbjBIABLETYimaVAUxRLyHRkZwZkzZ7B+/XqsWLECiqJA13VDrOm6jkKhYIjByclJKIpSJQh5nje2N7uDQCVkTIKQIAiisyEBSBA3EUyQMdeP4zgUi0UcOnQIhUIBt99+OxKJhJETaBaATvvK5/MWQaiqKhKJhCEIY7GYoyBk+zWHjNlPtpwgCIKYO0gAEsRNgq7rUBQFiqIAKLlx169fx+HDh7FgwQJs2bIFoiga29YSgE77z2azlpCxrutIJpNIJpOGIDQ7inZBmM/nwXEcksmkIQpJEBIEQcw+JAAJ4iaAuX6qqhpi6sSJEzh//jy2bNmCpUuXWrZvRgDa0XUdmUzGEISpVAoALIIwGo1aBOHp06chyzLWrVtncQhZH0IWMiYIgiDaCwlAgriBsff243keuVwOg4ODAIDbb78dkUjE8XEzFYBO+0yn0xZByHGcES5OJpO4cuUKFEXBpk2bqhxCAFX5gyQICYIg2gMJQIK4QbH39uM4DpcvX8bQ0BCWLVuGjRs3uoqndghAO5qmIZ1OG+HiqakpAIDf78fKlSuRTCYRDoddQ8YACUKCIIh2QQKQIG5A7L39VFXF0aNHcfXqVdx6663o7e31fPxsCECncz569ChyuRwEQcD09DREUbQ4hKFQyCIIzWIQKIlcEoQEQRAzhwQgQdxAOPX2S6fTGBwchN/vx+23345gMFjXfpwE4A+6d+AnJt5q2/mfOXMGxWIRmzdvhqqqmJ6eNhzC6elp+P1+QxB2dXV
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bG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3EUyQMdeP4zgUi0UcOnQIhUIBt99+OxKJhJETaBaATvvK5/MWQaiqKhKJhCEIY7GYoyBk+zWHjNlPtpwgCIKYO0gAEsRNgq7rUBQFiqIAKLlx169fx+HDh7FgwQJs2bIFoiga29YSgE77z2azlpCxrutIJpNIJpOGIDQ7inZBmM/nwXEcksmkIQpJEBIEQcw+JAAJ4iaAuX6qqhpi6sSJEzh//jy2bNmCpUuXWrZvRgDa0XUdmUzGEISpVAoALIIwGo1aBOHp06chyzLWrVtncQhZH0IWMiYIgiDaCwlAgriBsff243keuVwOg4ODAIDbb78dkUjE8XEzFYBO+0yn0xZByHGcES5OJpO4cuUKFEXBpk2bqhxCAFX5gyQICYIg2gMJQIK4QbH39uM4DpcvX8bQ0BCWLVuGjRs3uoqndghAO5qmIZ1OG+HiqakpAIDf78fKlSuRTCYRDoddQ8YACUKCIIh2QQKQIG5A7L39VFXF0aNHcfXqVdx6663o7e31fPxsCECncz569ChyuRwEQcD09DREUbQ4hKFQyCIIzWIQKIlcEoQEQRAzhwQgQdxAOPX2S6fTGBwchN/vx+23345gMFjXfpwE4A+6d+AnJt5q2/mfOXM
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = plt.figure(3)\n",
|
||
|
"ax = fig.add_subplot(111, projection='3d')\n",
|
||
|
"surf = ax.plot_surface(x,y,z, cmap=cm.coolwarm, linewidth=0, antialiased=False)\n",
|
||
|
"\n",
|
||
|
"fig.colorbar(surf, shrink=0.5, aspect=5)\n",
|
||
|
"\n",
|
||
|
"plt.title('Fläche')\n",
|
||
|
"ax.set_xlabel('x')\n",
|
||
|
"ax.set_ylabel('y')\n",
|
||
|
"ax.set_zlabel('z')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Um den Durchblick zu behalten, können wir alternativ auch nur ein Gitter plotten."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "ca4a3c7bf1524e5dac64de7e537006f8",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3hkdb3/X2daJjOZJDPpve2mbO+7yRZgaSJFBQuKDfGiP7HBtVz1ekXFehHUK4piQVFRuiCdpe1uNlvTe++9Z3o5vz/OzEmyjexushvI9/U8+0CmfM+ZM+W8z6e8P5IsyzICgUAgEAgEgiWD5kLvgEAgEAgEAoHg/CIEoEAgEAgEAsESQwhAgUAgEAgEgiWGEIACgUAgEAgESwwhAAUCgUAgEAiWGEIACgQCgUAgECwxhAAUCAQCgUAgWGIIASgQCAQCgUCwxBACUCAQCAQCgWCJIQSgQCAQCAQCwRJDCECBQCAQCASCJYYQgAKBQCAQCARLDCEABQKBQCAQCJYYQgAKBAKBQCAQLDGEABQIBAKBQCBYYggBKBAIBAKBQLDEEAJQIBAIBAKBYIkhBKBAIBAIBALBEkMIQIFAIBAIBIIlhhCAAoFAIBAIBEsMIQAFAoFAIBAIlhhCAAoEAoFAIBAsMYQAFAgEAoFAIFhiCAEoEAgEAoFAsMQQAlAgEAgEAoFgiSEEo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pdLMihOHh4bME4UwxCIrIFYJQIBC8HRECUCAQnDUn8/abnJykvLwcg8HA2rVrMRqNc1rneAF4wwNHaRi
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3hkdb3/X2daJjOZJDPpve2mbO+7yRZgaSJFBQuKDfGiP7HBtVz1ekXFehHUK4piQVFRuiCdpe1uNlvTe++9Z3o5vz/OzEmyjexushvI9/U8+0CmfM+ZM+W8z6e8P5IsyzICgUAgEAgEgiWD5kLvgEAgEAgEAoHg/CIEoEAgEAgEAsESQwhAgUAgEAgEgiWGEIACgUAgEAgESwwhAAUCgUAgEAiWGEIACgQCgUAgECwxhAAUCAQCgUAgWGIIASgQCAQCgUCwxBACUCAQCAQCgWCJIQSgQCAQCAQCwRJDCECBQCAQCASCJYYQgAKBQCAQCARLDCEABQKBQCAQCJYYQgAKBAKBQCAQLDGEABQIBAKBQCBYYggBKBAIBAKBQLDEEAJQIBAIBAKBYIkhBKBAIBAIBALBEkMIQIFAIBAIBIIlhhCAAoFAIBAIBEsMIQAFAoFAIBAIlhhCAAoEAoFAIBAsMYQAFAgEAoFAIFhiCAEoEAgEAoFAsMQQAlAgEAgEAoFgiSEEoEAgEAgEAsESQwhAgUAgEAgEgiWGEIACgUAgEAgESwwhAAUCgUAgEAiWGEIACgQCgUAgECwxhAAUCAQCgUAgWGIIASgQCAQCgUCwxBACUCAQCAQCgWCJIQSgQCAQCAQCwRJDCECBQLDkuPPOO5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5/Pp4rA0M9RIBAAQJIkVRDqdDq0Wq0QhAKBQDAPCAEoEAjOO7Is4/V61bQvwMjICOHh4ej1evUxoX9CEAoEAsH8IgSgQCA4rwQCATweD4FAAI1Gg8/no6qqisHBQWRZxmKxYLVasVqtREVFodVqgVMLwlCqWAhCgUAgmDtCAAoEgvNCKOUbSvVqNBrGxsYoLy8nIiKC/Px8/H4/Y2NjjI6OMjo6isfjITIyUhWEkZGRJxWEoX8ajQaNRiMEoUAgELwFQgAKBIIFJxAI4PP5ZqV8W1tbaWlpYfny5aSnp+Pz+ZBlWRVrsizjcrlUMTg6OorP5ztBEGo0GvXxM6ODMJ0yFoJQIBAIZiMEoEAgWDBCgiwU9ZMkCbfbTUVFBS6Xi7Vr1xIVFaXWBM4UgCdby+l0zhKEfr+fqKgoVRBaLJaTCsLQujNTxqH/hm4XCASCpYQQgAKBYEGQZRmfz4fP5wOUaNzQ0BCVlZXExsayYsUKdDqd+ti3EoAnW99ut89KGcuyTHR0NNHR0aognBlRPF4QOp1OJEkiOjpaFYVCEAoEgqWAEIACgWDeCUX9/H6/KqYaGhro7OxkxYoVpKSkzHr82QjA45FlmampKVUQjo2NAcwShBEREbMEYXNzM16vl2XLls2KEIZ8CEMpY4FAIHinIQSgQCCYN4739tNoNDgcDsrLywFYu3YtZrP5pM87VwF4sjUnJydnCUJJktR0cXR0NH19ffh8PvLz80+IEAIn1A8KQSgQCN4pCAEoEAjmheO9/SRJore3l+rqalJTU8nLyzuleFoIAXg8gUCAyclJNV08Pj4OgMFgICMjg+joaEwm0ylTxiAEoUAgeOcgBKBAIDhnjvf28/v91NbWMjAwwOrVq4mPjz/t808mANuGHfgDMqNOL5vSoxdkn2tra3E4HGi1WiYmJtDpdLMihOHh4bME4UwxCIrIFYJQIBC8HRECUCAQnDUn8/a
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = plt.figure(4)\n",
|
||
|
"ax = fig.add_subplot(111, projection='3d')\n",
|
||
|
"ax.plot_wireframe(x,y,z)\n",
|
||
|
"\n",
|
||
|
"plt.title('Gitter')\n",
|
||
|
"ax.set_xlabel('x')\n",
|
||
|
"ax.set_ylabel('y')\n",
|
||
|
"ax.set_zlabel('z')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Dabei lässt sich natürlich der Abstand zwischen den Linien einstellen."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 9,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "d6105cc818ce48258f4a9a028486f900",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3xkZb3/39PSy6T3vilbs3032V16ERCkWEBURLiKoqhcvV70Wq6iohe7gP4QQUW6ghSRssL2bE3vvfdM6vSZ8/tjcs7OpE6SyW4gz/v12peSmXnOM2fK+cy3fL4qSZIkBAKBQCAQCASrBvX53oBAIBAIBAKB4NwiBKBAIBAIBALBKkMIQIFAIBAIBIJVhhCAAoFAIBAIBKsMIQAFAoFAIBAIVhlCAAoEAoFAIBCsMoQAFAgEAoFAIFhlCAEoEAg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ASC9xtCAAoEAp8x1dtPrVZjNBopLS0FID8/n+Dg4Bkft1QBONOaY2NjHoJQpVIp6WK9Xk9PTw92u528vLxpEUJgWv2gEIQCgeD9ghCAAoHAJ0z19lOpVHR3d1NZWUlycjK5ubmziqflEIBTcTqdjI2NKenikZERAPz8/EhLS0Ov1xMUFDRryhiEIBQIBO8fhAAUCARLZqq3n8PhoLq6mr6+PjZu3EhsbOycj59JALYMGnE4JQwmG9tT9cuy5+rqaoxGIxqNhtHRUbRarUeEMDAw0EMQuotBcIlcIQgFAsF7ESEABQLBopnJ229sbIzS0lL8/PzIz88nICDAq3WmCsCbHj1NXd8E4QFa3r5nFwE
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3xkZb3/39PSy6T3vilbs3032V16ERCkWEBURLiKoqhcvV70Wq6iohe7gP4QQUW6ghSRssL2bE3vvfdM6vSZ8/tjcs7OpE6SyW4gz/v12peSmXnOM2fK+cy3fL4qSZIkBAKBQCAQCASrBvX53oBAIBAIBAKB4NwiBKBAIBAIBALBKkMIQIFAIBAIBIJVhhCAAoFAIBAIBKsMIQAFAoFAIBAIVhlCAAoEAoFAIBCsMoQAFAgEAoFAIFhlCAEoEAgEAoFAsMoQAlAgEAgEAoFglSEEoEAgEAgEAsEqQwhAgUAgEAgEglWGEIACgUAgEAgEqwwhAAUCgUAgEAhWGUIACgQCgUAgEKwyhAAUCAQCgUAgWGUIASgQCAQCgUCwyhACUCAQCAQ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flEIBTcTqdjI2NKenikZERAPz8/EhLS0Ov1xMUFDRryhiEIBQIBO8fhAAUCARLZqq3n8PhoLq6mr6+PjZu3EhsbOycj59JALYMGnE4JQwmG9tT9cuy5+rqaoxGIxqNhtHRUbRarUeEMDAw0EMQuotBcIlcIQgFAsF7ESEABQLBopnJ229sbIzS0lL8/Pz
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = plt.figure(5)\n",
|
||
|
"ax = fig.add_subplot(111, projection='3d')\n",
|
||
|
"ax.plot_wireframe(x,y,z, rstride=5, cstride=5)\n",
|
||
|
"\n",
|
||
|
"plt.title('Gitter')\n",
|
||
|
"ax.set_xlabel('x')\n",
|
||
|
"ax.set_ylabel('y')\n",
|
||
|
"ax.set_zlabel('z')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Zum Schluss zeichnen wir auch noch die Höhenlinien im dreidimensionalen Raum ein."
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "75b4a0eb282d47698ef5b4edadce1443",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwb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K8sy0SjUXp7e3G73XR2dqIoCtFolEgkQiQSIZvN4vV6DUHo9XrXFIT6lyzLyLIsBKFAIBDcZggBKBDcgaiqSj6fL0n5jo6OcuPGDY4fP057ezv5fB5N0wyxpmka6XTaEIORSIR8Pr9KEMqybFy/ODoIr6eMhSAUCASC2kYIQIHgDkIXZHrUT5IkMpkMly9fJp1Oc+7cOXw+n1ETWCwA11orlUqVCEJFUfD5fIYg9Hg8awpCfd3ilLH+Xb9cIBAIBHuHEIACwR2Cpmnk83ny+TxQiMYtLi7S19dHfX09p0+fxmw2G9fdTACutX4ikShJGWuaht/vx+/3G4KwOKK4UhCmUikkScLv9xuiUAhCgUAg2H2EABQI7gD0qJ+iKIaYGhoa4ubNm5w+fZrW1taS629HAK5E0zTi8bghCKPRKECJIHS73SWCcGRkhFwux7Fjx0oihLoPoZ4yFggEAkF1EQJQILiNWentJ8syyWSS3t5eAM6dO4fL5Vrz93YqANdaMxaLlQhCSZKMdLHf72d2dpZ8Pk9nZ+eqCCGwqn5QCEKBQCCoDkIACgS3KSu9/SRJYmZmhv7+ftra2jh58uS64qkaAnAlqqoSi8WMdPHS0hIAVquVQ4cO4ff7cTqd66aMQQhCgUAgqBZCAAoEtyErvf0UReHq1avMz89z11130djYuOHv74YAXGvPV69eJZlMYjKZWF5exmw2l0QIHQ5
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAD/iklEQVR4nOy9eXhkZ33n+zmn9n3R3lKrW72qF7vb3d7UB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o6OcuPGDY4fP057ezv5fB5N0wyxpmka6XTaEIORSIR8Pr9KEMqybFy/ODoIr6eMhSAUCASC2kYIQIHgDkIXZHrUT5IkMpkMly9fJp1Oc+7cOXw+n1ETWCwA11orlUqVCEJFUfD5fIYg9Hg8awpCfd3ilLH+Xb9cIBAIBHuHEIACwR2Cpmnk83ny+TxQiMYtLi7S19dHfX09p0+fxmw2G9fdTACutX4ikShJGWuaht/vx+/3G4KwOKK4UhCmUikkScLv9xuiUAhCgUAg2H2EABQI7gD0qJ+iKIaYGhoa4ubNm5w+fZrW1taS629HAK5E0zTi8bghCKPRKECJIHS73SWCcGRkhFwux7Fjx0oihLoPoZ4yFggEAkF1EQJQILiNWentJ8syyWSS3t5eAM6dO4fL5Vrz93YqANdaMxaLlQhCSZKMdLHf72d2dpZ8Pk9nZ+eqCCGwqn5QCEKBQCCoDkIACgS3KSu9/SRJYmZmhv7+ftra2jh58uS64qkaAnAlqqoSi8WMdPHS0hIAVquVQ4cO4ff7cTqd66aMQQhCgUAgqBZCAAoEtyErvf0UReHq1avMz89z11130djYuOH
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fig = plt.figure(6)\n",
|
||
|
"ax = fig.add_subplot(111, projection='3d')\n",
|
||
|
"surf = ax.contour(x,y,z, cmap=cm.coolwarm)\n",
|
||
|
"\n",
|
||
|
"fig.colorbar(surf, shrink=0.5, aspect=5)\n",
|
||
|
"\n",
|
||
|
"plt.title('Fläche')\n",
|
||
|
"ax.set_xlabel('x')\n",
|
||
|
"ax.set_ylabel('y')\n",
|
||
|
"ax.set_zlabel('z')\n",
|
||
|
"\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "ZHAWNotes-WN8_mYO5",
|
||
|
"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.10.6"
|
||
|
},
|
||
|
"vscode": {
|
||
|
"interpreter": {
|
||
|
"hash": "4b854e2a0cc18ad1ab786804e3d0a8ece37c6e4fad3c27ded5c09031620de5f5"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 4
|
||
|
}
|