Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug in analysis script
  • Loading branch information
Austin Blevins committed Jul 3, 2023
1 parent 0e17987 commit b2ffcbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/analyze_single_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def aggregate(x,y,depth,n,rego,melt,meltdist,filter=False,apollo=False):
a1.pie(sigmelt,labels=sigcraternames,startangle=90,autopct='%1.1f%%',shadow=False,colors = iter(plt.cm.Set3(np.linspace(0,1,len(sigmelt)))))
a1.axis('equal')
a2.imshow(img)
if apollo:
a2.scatter(apollo_x, surfcoords, color='red', label='Apollo 14-17 Landing Sites')
#a2.scatter(x, gridsize-y, color='blue', label='Selected Pixel')
a2.xaxis.set_ticklabels([])
a2.yaxis.set_ticklabels([])
Expand All @@ -161,8 +163,6 @@ def aggregate(x,y,depth,n,rego,melt,meltdist,filter=False,apollo=False):
else:
rect = patches.Rectangle((x,gridsize-y),n,n,linewidth=1,edgecolor='b',facecolor='b',label='Selected Region')
a2.add_patch(rect)
if apollo:
a2.scatter(apollo_x, surfcoords, color='red', label='Apollo 14-17 Landing Sites')
a2.tick_params(left = False)
a2.tick_params(bottom = False)
a2.legend()
Expand Down Expand Up @@ -363,15 +363,15 @@ def aggregate_ages(x,y,depth,n,rego,age,log=False,apollo=False):
a1.set_xlabel('Age (Ga)')
a1.set_ylabel('Melt Depth (m)')
a2.imshow(img)
if apollo:
a2.scatter(apollo_x, surfcoords, color='red', label='Apollo 14-17 Landing Sites')
if n == 0:
a2.scatter(x, gridsize-y, color='blue', label='Selected Region')
else:
rect = patches.Rectangle((x,gridsize-y),n,n,linewidth=1,edgecolor='b',facecolor='b',label='Selected Region')
a2.add_patch(rect)
a2.xaxis.set_ticklabels([])
a2.yaxis.set_ticklabels([])
if apollo:
a2.scatter(apollo_x, surfcoords, color='red', label='Apollo 14-17 Landing Sites')
a2.tick_params(left = False)
a2.tick_params(bottom = False)
a1.legend()
Expand Down

0 comments on commit b2ffcbe

Please sign in to comment.