Skip to content

Commit

Permalink
Update germany_plot_v04.py
Browse files Browse the repository at this point in the history
Splitted label loation for Bochum and Mainz to change position of Mainz. Also Changed positon of Darmstadt label
  • Loading branch information
BenjaminGolub authored Jul 30, 2024
1 parent ff9722c commit bf1d4d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion germany_plot_v04.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,16 @@
y = locations.geometry.y
if city[n]=="Aachen":
plt.annotate(city[n], xy=(x,y), xytext=(0,-7.0), textcoords="offset points", ha="center", size="5")
elif city[n]=="Bochum" or city[n]=="Mainz":
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=(-8.0,-2.0), textcoords="offset points", ha="right", 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":
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,-4.0), textcoords="offset points", ha="center", size="5")
else:
plt.annotate(city[n], xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")

Expand Down

0 comments on commit bf1d4d4

Please sign in to comment.