Skip to content

Commit

Permalink
A fix for plotting the spatial distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencroton committed Feb 14, 2025
1 parent b19cde5 commit 46371bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotting/allresults-local.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def read_hdf(filename = None, snap_num = None, param = None):
plt.figure() # New figure

w = np.where((Mvir > 0.0) & (StellarMass > 1.0e9))[0]
if(len(w) > dilute): w = sample(list(range(len(w))), dilute)
if(len(w) > dilute): w = sample(list(w), dilute)

xx = Posx[w]
yy = Posy[w]
Expand Down

0 comments on commit 46371bd

Please sign in to comment.