mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-14 02:24:09 +02:00
Updated examples notebook not to load fonts from external .ttf files anymore (enabling it to run smoothly on Google Colab)
This commit is contained in:
@@ -1066,8 +1066,7 @@
|
|||||||
"fig.suptitle(\n",
|
"fig.suptitle(\n",
|
||||||
" 'Buildings of Porto Alegre',\n",
|
" 'Buildings of Porto Alegre',\n",
|
||||||
" size = 25,\n",
|
" size = 25,\n",
|
||||||
" color = '#fff',\n",
|
" color = '#fff'\n",
|
||||||
" fontproperties = FontProperties(fname = '../assets/PermanentMarker-Regular.ttf')\n",
|
|
||||||
")\n",
|
")\n",
|
||||||
"# Draw each building footprint on a separate axis\n",
|
"# Draw each building footprint on a separate axis\n",
|
||||||
"for ax,building in zip(np.concatenate(axes),buildings):\n",
|
"for ax,building in zip(np.concatenate(axes),buildings):\n",
|
||||||
@@ -1111,10 +1110,7 @@
|
|||||||
"# Add title\n",
|
"# Add title\n",
|
||||||
"plot.ax.set_title(\n",
|
"plot.ax.set_title(\n",
|
||||||
" 'Barcelona',\n",
|
" 'Barcelona',\n",
|
||||||
" fontproperties = FontProperties(\n",
|
" size = 50\n",
|
||||||
" fname = '../assets/PermanentMarker-Regular.ttf',\n",
|
|
||||||
" size = 50\n",
|
|
||||||
" )\n",
|
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.show()"
|
"plt.show()"
|
||||||
|
Reference in New Issue
Block a user