Updated examples notebook not to load fonts from external .ttf files anymore (enabling it to run smoothly on Google Colab)

pull/104/head
marceloprates 2022-11-08 15:09:27 -03:00
rodzic e11b7e6289
commit de41a2fd48
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -1066,8 +1066,7 @@
"fig.suptitle(\n",
" 'Buildings of Porto Alegre',\n",
" size = 25,\n",
" color = '#fff',\n",
" fontproperties = FontProperties(fname = '../assets/PermanentMarker-Regular.ttf')\n",
" color = '#fff'\n",
")\n",
"# Draw each building footprint on a separate axis\n",
"for ax,building in zip(np.concatenate(axes),buildings):\n",
@ -1111,10 +1110,7 @@
"# Add title\n",
"plot.ax.set_title(\n",
" 'Barcelona',\n",
" fontproperties = FontProperties(\n",
" fname = '../assets/PermanentMarker-Regular.ttf',\n",
" size = 50\n",
" )\n",
" size = 50\n",
")\n",
"\n",
"plt.show()"