Skip to content

Commit d19f19c

Browse files
Update germany_plot_v04.py
removed a loop
1 parent d133cc1 commit d19f19c

File tree

1 file changed

+32
-33
lines changed

1 file changed

+32
-33
lines changed

germany_plot_v04.py

+32-33
Original file line numberDiff line numberDiff line change
@@ -70,40 +70,39 @@
7070
citychecklist = []
7171
labelcheck = [0, 0, 0, 0]
7272
while n<len(city):
73-
if status[n]=='done':
74-
topiclabel = None
75-
if m == 1:
76-
ms = 35
77-
elif city[n]=="8xNationalChemotion" or city[n]=="8xNationalRDM":
78-
ms = 0
73+
topiclabel = None
74+
if m == 1:
75+
ms = 35
76+
elif city[n]=="8xNationalChemotion" or city[n]=="8xNationalRDM":
77+
ms = 0
78+
else:
79+
ms = 20
80+
81+
#plot locations dependend of status and topic, kind is not taken into account
82+
if topic[n] =='RDM' and status[n]=='done':
83+
markersymbol = 'o'
84+
if status[n] =='done':
85+
colordata = nfdi4chempetrol
86+
if labelcheck[0] == 0:
87+
topiclabel = 'RDM (past)'
88+
labelcheck[0] = 1
89+
else:
90+
colordata = nfdi4chemorange
91+
if labelcheck[1] == 0:
92+
topiclabel = 'RDM (planned)'
93+
labelcheck[1] = 1
94+
elif topic[n] =='Chemotion':
95+
markersymbol = 's'
96+
if status[n] =='done':
97+
colordata = nfdi4chempetrol
98+
if labelcheck[2] == 0:
99+
topiclabel = 'Chemotion ELN (past)'
100+
labelcheck[2] = 1
79101
else:
80-
ms = 20
81-
82-
#plot locations dependend of status and topic, kind is not taken into account
83-
if topic[n] =='RDM' and status[n]=='done':
84-
markersymbol = 'o'
85-
if status[n] =='done':
86-
colordata = nfdi4chempetrol
87-
if labelcheck[0] == 0:
88-
topiclabel = 'RDM (past)'
89-
labelcheck[0] = 1
90-
else:
91-
colordata = nfdi4chemorange
92-
if labelcheck[1] == 0:
93-
topiclabel = 'RDM (planned)'
94-
labelcheck[1] = 1
95-
elif topic[n] =='Chemotion':
96-
markersymbol = 's'
97-
if status[n] =='done':
98-
colordata = nfdi4chempetrol
99-
if labelcheck[2] == 0:
100-
topiclabel = 'Chemotion ELN (past)'
101-
labelcheck[2] = 1
102-
else:
103-
colordata = nfdi4chemorange
104-
if labelcheck[3] == 0:
105-
topiclabel = 'Chemotion ELN (planned)'
106-
labelcheck[3] = 1
102+
colordata = nfdi4chemorange
103+
if labelcheck[3] == 0:
104+
topiclabel = 'Chemotion ELN (planned)'
105+
labelcheck[3] = 1
107106

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

0 commit comments

Comments
 (0)