Skip to content

Commit 039fd1a

Browse files
committed
40 / 30 : add more comments
more interactive Clean ipynb
1 parent 253ebd7 commit 039fd1a

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

40_linear_algebra_1/30_3D_line_plane.ipynb

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
"fig = py.figure(figsize=(10, 10))\n",
102102
"ax = fig.add_subplot(111, projection='3d')\n",
103103
"\n",
104+
"# change this line to change view angle\n",
105+
"# 보는 각도를 바꾸려면 아래 행을 조절하시오\n",
106+
"ax.view_init(elev=30, azim=45, roll=15)\n",
107+
"\n",
104108
"ax.plot(x[0], x[1], x[2], label='line')\n",
105109
"ax.plot((0, x_0[0, 0]), (0, x_0[1, 0]), (0, x_0[2, 0]), label='$\\\\mathbf{x_0}$')\n",
106110
"ax.plot((x_0[0, 0], x_0[0, 0]+d[0, 0]), \n",
@@ -112,6 +116,14 @@
112116
"\n"
113117
]
114118
},
119+
{
120+
"cell_type": "markdown",
121+
"metadata": {},
122+
"source": [
123+
"* Please feel free to try different `x_0` and `d` vectors.<br>다른 `x_0`, `d` 벡터로도 그려보자.\n",
124+
"\n"
125+
]
126+
},
115127
{
116128
"cell_type": "markdown",
117129
"metadata": {},
@@ -175,9 +187,7 @@
175187
{
176188
"cell_type": "code",
177189
"execution_count": null,
178-
"metadata": {
179-
"scrolled": false
180-
},
190+
"metadata": {},
181191
"outputs": [],
182192
"source": [
183193
"# Normal Direction\n",
@@ -261,6 +271,14 @@
261271
"\n"
262272
]
263273
},
274+
{
275+
"cell_type": "markdown",
276+
"metadata": {},
277+
"source": [
278+
"* Please try different `norm` & `x0` vectors and observe the changes.<br>다른 `norm` & `x0` 벡터도 시도해 보면서 어떻게 달라지는지 관찰해 보기 바람.\n",
279+
"\n"
280+
]
281+
},
264282
{
265283
"cell_type": "markdown",
266284
"metadata": {},
@@ -291,7 +309,7 @@
291309
],
292310
"metadata": {
293311
"kernelspec": {
294-
"display_name": "Python 3",
312+
"display_name": "Python 3 (ipykernel)",
295313
"language": "python",
296314
"name": "python3"
297315
},
@@ -305,9 +323,9 @@
305323
"name": "python",
306324
"nbconvert_exporter": "python",
307325
"pygments_lexer": "ipython3",
308-
"version": "3.7.3"
326+
"version": "3.10.0"
309327
}
310328
},
311329
"nbformat": 4,
312-
"nbformat_minor": 0
330+
"nbformat_minor": 4
313331
}

0 commit comments

Comments
 (0)