Skip to content

Commit c5cebf5

Browse files
Update germany_plot_v04.py
correction of label positon
1 parent f6dab38 commit c5cebf5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

germany_plot_v04.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
if not city[n] in citychecklist:
147147
x = locations.geometry.x
148148
y = locations.geometry.y
149-
if city[n]=="Aachen":
149+
if city[n]=="Aachen" or city[n]=="Saarbrücken" or city[n]=="Straubingen":
150150
plt.annotate(city[n], xy=(x,y), xytext=(0,-7.0), textcoords="offset points", ha="center", size="5")
151151
elif city[n]=="Bochum":
152152
plt.annotate(city[n], xy=(x,y), xytext=(-4.0,-2.0), textcoords="offset points", ha="right", size="5")
@@ -165,6 +165,12 @@
165165
plt.annotate("8x national", xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
166166
elif city[n]=="international":
167167
plt.annotate("2x international", xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
168+
elif city[n]=="9xChemotion:
169+
plt.annotate("9 national Chemotion", xy=(x,y), xytext=(0.0,-2.0), textcoords="offset points", size="5")
170+
elif city[n]=="4xLabIMotion":
171+
plt.annotate("4x national LabIMotion", xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
172+
elif city[n]=="1xinternational":
173+
plt.annotate("1x international", xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
168174
else:
169175
plt.annotate(city[n], xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
170176

0 commit comments

Comments
 (0)