Skip to content

Commit

Permalink
Merge branch 'plot'
Browse files Browse the repository at this point in the history
  • Loading branch information
julienguy committed Jan 17, 2020
2 parents d818ef0 + da91c52 commit 5926626
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bin/plot_metrology
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@ selection=(spots['DEVICE_TYPE']=="FIF")
plt.plot(spots["X_FP"][selection],spots["Y_FP"][selection],".",label="FIF")
selection=(spots['DEVICE_TYPE']=="GIF")
plt.plot(spots["X_FP"][selection],spots["Y_FP"][selection],".",label="GIF")


first=True
for petal in np.unique(spots['PETAL_LOC']) :
selection=(spots['DEVICE_TYPE']=="GFA")&(spots['PETAL_LOC']==petal)
if np.sum(selection)>0 :
x=np.array(spots["X_FP"][selection])
y=np.array(spots["Y_FP"][selection])
x=np.append(x,[x[0]])
y=np.append(y,[y[0]])
if first :
label = "GFA CCD"
first = False
else :
label = None
plt.plot(x,y,"-",label=label,color="k")
plt.legend()
plt.show()

Expand Down

0 comments on commit 5926626

Please sign in to comment.