Skip to content

Commit 0a5829a

Browse files
Update germany_plot_v04.py
changed location of labels "Mainz" and "Münster"
1 parent 66410c5 commit 0a5829a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

germany_plot_v04.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,16 @@
143143
if not city[n] in citychecklist:
144144
x = locations.geometry.x
145145
y = locations.geometry.y
146-
if city[n]=="Aachen":
146+
if city[n]=="Aachen" or city[n]=="Mainz":
147147
plt.annotate(city[n], xy=(x,y), xytext=(0,-7.0), textcoords="offset points", ha="center", size="5")
148148
elif city[n]=="Bochum":
149149
plt.annotate(city[n], xy=(x,y), xytext=(-4.0,-2.0), textcoords="offset points", ha="right", size="5")
150-
elif city[n]=="Mainz":
151-
plt.annotate(city[n], xy=(x,y), xytext=(-2.0,8.5), textcoords="offset points", ha="center", size="5")
150+
#elif city[n]=="Mainz":
151+
# plt.annotate(city[n], xy=(x,y), xytext=(-2.0,8.5), textcoords="offset points", ha="center", size="5")
152152
elif city[n]=="Potsdam":
153153
plt.annotate(city[n], xy=(x,y), xytext=(4.0,-4.0), textcoords="offset points", size="5")
154-
elif city[n]=="Hannover" or city[n]=="Halle" or city[n]=="Münster":
154+
#elif city[n]=="Hannover" or city[n]=="Halle" or city[n]=="Münster":
155+
elif city[n]=="Hannover" or city[n]=="Halle":
155156
plt.annotate(city[n], xy=(x,y), xytext=(0,4.0), textcoords="offset points", ha="center", size="5")
156157
elif city[n]=="Darmstadt":
157158
plt.annotate(city[n], xy=(x,y), xytext=(0,-6.0), textcoords="offset points", ha="center", size="5")

0 commit comments

Comments
 (0)