kopia lustrzana https://github.com/marceloprates/prettymaps
Updated examples notebook not to load fonts from external .ttf files anymore (enabling it to run smoothly on Google Colab)
rodzic
e11b7e6289
commit
de41a2fd48
|
@ -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()"
|
||||||
|
|
Ładowanie…
Reference in New Issue