From 0a5829af76fc647e4bc38abfd29882790fa77730 Mon Sep 17 00:00:00 2001 From: BenjaminGolub <107389350+BenjaminGolub@users.noreply.github.com> Date: Mon, 26 Aug 2024 07:41:33 +0200 Subject: [PATCH] Update germany_plot_v04.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changed location of labels "Mainz" and "Münster" --- germany_plot_v04.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/germany_plot_v04.py b/germany_plot_v04.py index 6f94129..846fec3 100644 --- a/germany_plot_v04.py +++ b/germany_plot_v04.py @@ -143,15 +143,16 @@ if not city[n] in citychecklist: x = locations.geometry.x y = locations.geometry.y - if city[n]=="Aachen": + if city[n]=="Aachen" or city[n]=="Mainz": plt.annotate(city[n], xy=(x,y), xytext=(0,-7.0), textcoords="offset points", ha="center", size="5") elif city[n]=="Bochum": plt.annotate(city[n], xy=(x,y), xytext=(-4.0,-2.0), textcoords="offset points", ha="right", size="5") - elif city[n]=="Mainz": - plt.annotate(city[n], xy=(x,y), xytext=(-2.0,8.5), textcoords="offset points", ha="center", size="5") + #elif city[n]=="Mainz": + # plt.annotate(city[n], xy=(x,y), xytext=(-2.0,8.5), textcoords="offset points", ha="center", size="5") elif city[n]=="Potsdam": plt.annotate(city[n], xy=(x,y), xytext=(4.0,-4.0), textcoords="offset points", size="5") - elif city[n]=="Hannover" or city[n]=="Halle" or city[n]=="Münster": + #elif city[n]=="Hannover" or city[n]=="Halle" or city[n]=="Münster": + elif city[n]=="Hannover" or city[n]=="Halle": plt.annotate(city[n], xy=(x,y), xytext=(0,4.0), textcoords="offset points", ha="center", size="5") elif city[n]=="Darmstadt": plt.annotate(city[n], xy=(x,y), xytext=(0,-6.0), textcoords="offset points", ha="center", size="5")