From de41a2fd484cebba426479e3f86abf970f3999d6 Mon Sep 17 00:00:00 2001 From: marceloprates Date: Tue, 8 Nov 2022 15:09:27 -0300 Subject: [PATCH] Updated examples notebook not to load fonts from external .ttf files anymore (enabling it to run smoothly on Google Colab) --- notebooks/examples.ipynb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/notebooks/examples.ipynb b/notebooks/examples.ipynb index 605a4ff..73a908b 100644 --- a/notebooks/examples.ipynb +++ b/notebooks/examples.ipynb @@ -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()"