Skip to content

Commit

Permalink
Update germany_plot_v04.py
Browse files Browse the repository at this point in the history
changed location of labels "Mainz" and "Münster"
  • Loading branch information
BenjaminGolub authored Aug 26, 2024
1 parent 66410c5 commit 0a5829a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions germany_plot_v04.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0a5829a

Please sign in to comment.