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",
|
||||
" '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()"
|
||||
|
|
Ładowanie…
Reference in New Issue