mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-01 12:20:37 +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",
|
||||
" '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()"
|
||||
|
Reference in New Issue
Block a user