Skip to content

Commit

Permalink
Update germany_plot_v04.py
Browse files Browse the repository at this point in the history
moved a loop to another loop
  • Loading branch information
BenjaminGolub authored Aug 26, 2024
1 parent 97c8af8 commit 66410c5
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions germany_plot_v04.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,31 +140,31 @@
# locations.plot(ax=ax, marker=markersymbol, markersize=ms, color=colordata, label=topiclabel, linestyle='None') #style 01, style 02 borderstyle 01
locations.plot(ax=ax, marker=markersymbol, markersize=ms, color=colordata, label=topiclabel, linestyle='None', edgecolor="black", linewidth=0.2) #style 03
# add location name to point
if not city[n] in citychecklist:
x = locations.geometry.x
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":
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]=="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":
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")
elif city[n]=="8xNationalChemotion":
plt.annotate("+ 9 national Chemotion WS", xy=(x,y), xytext=(0.0,-2.0), textcoords="offset points", size="5")
elif city[n]=="8xNationalRDM":
plt.annotate("+ 8 national RDM WS", xy=(x,y), xytext=(0.0,-2.0), textcoords="offset points", size="5")
else:
plt.annotate(city[n], xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")
if not city[n] in citychecklist:
x = locations.geometry.x
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":
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]=="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":
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")
elif city[n]=="8xNationalChemotion":
plt.annotate("+ 9 national Chemotion WS", xy=(x,y), xytext=(0.0,-2.0), textcoords="offset points", size="5")
elif city[n]=="8xNationalRDM":
plt.annotate("+ 8 national RDM WS", xy=(x,y), xytext=(0.0,-2.0), textcoords="offset points", size="5")
else:
plt.annotate(city[n], xy=(x,y), xytext=(4.0,-2.0), textcoords="offset points", size="5")

#for x, y, label in zip(cities.geometry.x, cities.geometry.y, cities.name):
# ax.annotate(label, xy=(x, y), xytext=(3, 3), textcoords="offset points")
citychecklist.append(city[n])
citychecklist.append(city[n])
n += 1

if m==0:
Expand Down

0 comments on commit 66410c5

Please sign in to comment.