modify tutorials for plotter compatibility
This commit is contained in:
committed by
Nicola Demo
parent
5336f36f08
commit
d556c592e0
9
tutorials/tutorial6/tutorial.ipynb
vendored
9
tutorials/tutorial6/tutorial.ipynb
vendored
@@ -500,6 +500,15 @@
|
||||
"fig, ax = plt.subplots()\n",
|
||||
"plot_scatter(ax, pts_heart, 'Heart Domain')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## What's next?\n",
|
||||
"\n",
|
||||
"We have made a very simple tutorial on how to build custom geometries and use domain operation to compose base geometries. Now you can play around with different geometries and build your own! "
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
||||
5
tutorials/tutorial6/tutorial.py
vendored
5
tutorials/tutorial6/tutorial.py
vendored
@@ -203,6 +203,7 @@ class Heart(Location):
|
||||
# In[14]:
|
||||
|
||||
|
||||
|
||||
class Heart(Location):
|
||||
"""Implementation of the Heart Domain."""
|
||||
|
||||
@@ -242,3 +243,7 @@ pts_heart = heart.sample(1500)
|
||||
fig, ax = plt.subplots()
|
||||
plot_scatter(ax, pts_heart, 'Heart Domain')
|
||||
|
||||
|
||||
# ## What's next?
|
||||
#
|
||||
# We have made a very simple tutorial on how to build custom geometries and use domain operation to compose base geometries. Now you can play around with different geometries and build your own!
|
||||
|
||||
Reference in New Issue
Block a user