Skip to content

Commit 07dedbe

Browse files
committed
change var name
1 parent 54bd48d commit 07dedbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Exec/science/Detonation/analysis/profiles.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ def plot_nuc_frac(prefix, nums, skip, limitlabels, xmin, xmax):
174174

175175
nuc_list = [f[1] for f in ds.field_list if f[1].startswith("X")]
176176
nuc_list.sort(key=nuc_list_filter)
177-
N = len(nuc_list)
177+
N_SPECIES = len(nuc_list)
178178

179-
nrows = math.ceil(math.sqrt(N))
180-
ncols = math.ceil(math.sqrt(N))
179+
nrows = math.ceil(math.sqrt(N_SPECIES))
180+
ncols = math.ceil(math.sqrt(N_SPECIES))
181181

182182
# create axes
183183
axes = []
184-
for i in range(N):
184+
for i in range(N_SPECIES):
185185
ax = f.add_subplot(nrows, ncols, i + 1)
186186
ax.set_prop_cycle(cycler('color', hexclist))
187187
ax.set_ylabel(nuc_list[i])

0 commit comments

Comments
 (0)