Skip to content

Commit

Permalink
Update germany_plot_v04.py
Browse files Browse the repository at this point in the history
more changes to correct the plot
  • Loading branch information
BenjaminGolub authored Aug 19, 2024
1 parent 7a20972 commit d133cc1
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions germany_plot_v04.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,40 @@
citychecklist = []
labelcheck = [0, 0, 0, 0]
while n<len(city):
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
if status[n]=='done':
topiclabel = None
if m == 1:
ms = 35
elif city[n]=="8xNationalChemotion" or city[n]=="8xNationalRDM":
ms = 0
else:
colordata = nfdi4chemorange
if labelcheck[3] == 0:
topiclabel = 'Chemotion ELN (planned)'
labelcheck[3] = 1
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

#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 d133cc1

Please sign in to comment.