Skip to content

Commit

Permalink
try one more thing for plotting in the notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
kafitzgerald committed Jun 22, 2023
1 parent 23b7a52 commit 93128c0
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions docs/gallery-notebooks/Datashader/MPAS_Datashader_Trimesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"hv.extension(\"bokeh\",\"matplotlib\")\n",
"\n",
"opts.defaults(\n",
" opts.Image(responsive=True, aspect='equal'),\n",
" opts.RGB(responsive=True, aspect='equal'))\n"
" opts.Image(frame_width=600, data_aspect=1),\n",
" opts.RGB(frame_width=600, data_aspect=1))\n"
]
},
{
Expand Down Expand Up @@ -106,7 +106,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# This funtion splits a global mesh along longitude\n",
Expand All @@ -121,7 +123,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Compute the signed area of a triangle\n",
Expand All @@ -133,7 +137,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Reorder triangles as necessary so they all have counter clockwise winding order. CCW is what Datashader and MPL\n",
Expand All @@ -147,7 +153,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Create a Holoviews Triangle Mesh suitable for rendering with Datashader\n",
Expand Down Expand Up @@ -181,7 +189,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Triangulate MPAS primary mesh:\n",
Expand Down

0 comments on commit 93128c0

Please sign in to comment.