Skip to content

Commit 68b68a0

Browse files
Updating homepage animation tutorial to create animation with transparent background
1 parent 35b59a4 commit 68b68a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/examples/documentation_homepage_animation.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
" central_latitude=90, central_longitude=-30, satellite_height=15000000\n",
101101
" ),\n",
102102
")\n",
103-
"ax1.set_facecolor(\"#1EB7D0\")\n",
104103
"ax1.add_feature(cartopy.feature.LAND, zorder=1)\n",
104+
"ax1.add_feature(cartopy.feature.OCEAN, zorder=1)\n",
105105
"ax1.coastlines()\n",
106106
"scat1 = ax1.scatter(\n",
107107
" lon[b],\n",
@@ -121,8 +121,8 @@
121121
" central_latitude=-90, central_longitude=-30, satellite_height=15000000\n",
122122
" ),\n",
123123
")\n",
124-
"ax2.set_facecolor(\"#1EB7D0\")\n",
125124
"ax2.add_feature(cartopy.feature.LAND, zorder=1)\n",
125+
"ax2.add_feature(cartopy.feature.OCEAN, zorder=1)\n",
126126
"ax2.coastlines()\n",
127127
"scat2 = ax2.scatter(\n",
128128
" lon[b],\n",
@@ -152,7 +152,7 @@
152152
"fig.canvas.draw()\n",
153153
"plt.tight_layout()\n",
154154
"# writergif = PillowWriter(fps=6)\n",
155-
"# anim.save('homepageshort.gif',writer=writergif)"
155+
"# anim.save('homepageshort.gif', writer=writergif, savefig_kwargs={\"transparent\": True})"
156156
]
157157
},
158158
{

0 commit comments

Comments
 (0)