Skip to content

Commit

Permalink
Update germany_plot_v04.py
Browse files Browse the repository at this point in the history
removed a loop
  • Loading branch information
BenjaminGolub authored Aug 26, 2024
1 parent d133cc1 commit d19f19c
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions germany_plot_v04.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,40 +70,39 @@
citychecklist = []
labelcheck = [0, 0, 0, 0]
while n<len(city):
if status[n]=='done':
topiclabel = None
if m == 1:
ms = 35
elif city[n]=="8xNationalChemotion" or city[n]=="8xNationalRDM":
ms = 0
topiclabel = None
if m == 1:
ms = 35
elif city[n]=="8xNationalChemotion" or city[n]=="8xNationalRDM":
ms = 0
else:
ms = 20

#plot locations dependend of status and topic, kind is not taken into account
if topic[n] =='RDM' and status[n]=='done':
markersymbol = 'o'
if status[n] =='done':
colordata = nfdi4chempetrol
if labelcheck[0] == 0:
topiclabel = 'RDM (past)'
labelcheck[0] = 1
else:
colordata = nfdi4chemorange
if labelcheck[1] == 0:
topiclabel = 'RDM (planned)'
labelcheck[1] = 1
elif topic[n] =='Chemotion':
markersymbol = 's'
if status[n] =='done':
colordata = nfdi4chempetrol
if labelcheck[2] == 0:
topiclabel = 'Chemotion ELN (past)'
labelcheck[2] = 1
else:
ms = 20

#plot locations dependend of status and topic, kind is not taken into account
if topic[n] =='RDM' and status[n]=='done':
markersymbol = 'o'
if status[n] =='done':
colordata = nfdi4chempetrol
if labelcheck[0] == 0:
topiclabel = 'RDM (past)'
labelcheck[0] = 1
else:
colordata = nfdi4chemorange
if labelcheck[1] == 0:
topiclabel = 'RDM (planned)'
labelcheck[1] = 1
elif topic[n] =='Chemotion':
markersymbol = 's'
if status[n] =='done':
colordata = nfdi4chempetrol
if labelcheck[2] == 0:
topiclabel = 'Chemotion ELN (past)'
labelcheck[2] = 1
else:
colordata = nfdi4chemorange
if labelcheck[3] == 0:
topiclabel = 'Chemotion ELN (planned)'
labelcheck[3] = 1
colordata = nfdi4chemorange
if labelcheck[3] == 0:
topiclabel = 'Chemotion ELN (planned)'
labelcheck[3] = 1

#avoid distortion of the plot by treating the coordinates right
# change markersize when multiple events are at the same location
Expand Down

0 comments on commit d19f19c

Please sign in to comment.