Skip to content

Commit c19d87a

Browse files
committed
Update example_notebook.ipynb
1 parent 1268f07 commit c19d87a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebooks/example_notebook.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"from defdap.quat import Quat\n",
5555
"\n",
5656
"# try tk, qt, osx (if using mac) or notebook for interactive plots. If none work, use inline\n",
57-
"%matplotlib inline"
57+
"%matplotlib widget"
5858
]
5959
},
6060
{
@@ -601,7 +601,7 @@
601601
},
602602
"outputs": [],
603603
"source": [
604-
"if ebsd_map.sel_grain == None: \n",
604+
"if ebsd_map.sel_grain is None: \n",
605605
" ebsd_map.sel_grain = ebsd_map[57]\n",
606606
" \n",
607607
"ebsd_map.sel_grain.build_mis_ori_list()\n",
@@ -1434,7 +1434,7 @@
14341434
"cell_type": "markdown",
14351435
"metadata": {},
14361436
"source": [
1437-
"Calculate the z component of rigid body rotation, $$ \\omega_3 = \\frac{F_{12}-F_{21}}{2}, $$ for the HRDIC map. (HINT: the components of deformation gradient (F) are stores in a dic map as f11, f12, etc.)"
1437+
"Calculate the z component of rigid body rotation, $$ \\omega_3 = \\frac{F_{12}-F_{21}}{2}, $$ for the HRDIC map. (HINT: the deformation gradient (F) can be accessed as numpy array with `dic_map.data.f`)"
14381438
]
14391439
},
14401440
{

0 commit comments

Comments
 (0)