Skip to content

Commit

Permalink
[Examples] Normalize spelling of 'colors'
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Dec 2, 2024
1 parent 4f3e6cc commit 6b38604
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions samples/python/kinetics/jet_stirred_reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

f, ax = plt.subplots(1, 3)
plt.subplots_adjust(wspace=0.6)
colours = ["xkcd:grey",'xkcd:purple']
colors = ["xkcd:grey",'xkcd:purple']
file = 'example_data/ammonia-CO-H2-Alzueta-2023.yaml'
models = {'Original': 'baseline', 'LMR-R': 'linear-Burke'}

Expand Down Expand Up @@ -108,9 +108,9 @@ def getTemperatureDependence(gas, inputs):
tempDependence = getTemperatureDependence(gas,inputs)
ax[0].plot(tempDependence.index,
np.subtract(tempDependence['temperature'],tempDependence.index),
color=colours[k],label=m)
ax[1].plot(tempDependence.index, tempDependence['O2']*100, color=colours[k])
ax[2].plot(tempDependence.index, tempDependence['H2']*100, color=colours[k])
color=colors[k],label=m)
ax[1].plot(tempDependence.index, tempDependence['O2']*100, color=colors[k])
ax[2].plot(tempDependence.index, tempDependence['H2']*100, color=colors[k])
ax[0].plot(inputs['data']['T_range'], inputs['data']['deltaT'], 'o', fillstyle='none',
color='k', label="Sabia et al.")
ax[1].plot(inputs['data']['T_range'], inputs['data']['X_O2'], 'o', fillstyle='none',
Expand Down
4 changes: 2 additions & 2 deletions samples/python/kinetics/shock_tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

file = 'example_data/ammonia-CO-H2-Alzueta-2023.yaml'
models = {'Original': 'baseline', 'LMR-R': 'linear-Burke'}
colours = {'Original': "xkcd:grey", 'LMR-R': 'xkcd:purple'}
colors = {'Original': "xkcd:grey", 'LMR-R': 'xkcd:purple'}
results = {}

# %%
Expand Down Expand Up @@ -80,7 +80,7 @@
fig, ax = plt.subplots()

for m, timeHistory in results.items():
ax.plot(timeHistory.t*1e6, timeHistory('H2O').X*100, color=colours[m], label=m)
ax.plot(timeHistory.t*1e6, timeHistory('H2O').X*100, color=colors[m], label=m)

ax.plot(expData['t'], np.array(expData['X_H2O'])*100, 'o', fillstyle='none', color='k',
label='Shao et al.')
Expand Down
4 changes: 2 additions & 2 deletions samples/python/onedim/flame_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

file = 'example_data/ammonia-CO-H2-Alzueta-2023.yaml'
models = {'Original': 'baseline', 'LMR-R': 'linear-Burke'}
colours = {'Original': "xkcd:grey", 'LMR-R': 'xkcd:purple'}
colors = {'Original': "xkcd:grey", 'LMR-R': 'xkcd:purple'}
results = {}

Tin = 296 # unburned gas temperature [K]
Expand Down Expand Up @@ -76,7 +76,7 @@

fig, ax = plt.subplots()
for m, vel_list in results.items():
ax.plot(phi_list, vel_list, color=colours[m], label=m)
ax.plot(phi_list, vel_list, color=colors[m], label=m)
ax.plot(phi_data, expData['vel'], 'o', fillstyle='none', color='k', label='Ronney')
ax.legend(frameon=False, loc='upper right')
ax.set_ylabel(r'Burning velocity [cm $\rm s^{-1}$]')
Expand Down

0 comments on commit 6b38604

Please sign in to comment.