<jupyter_start><jupyter_text>scale = 3almost_black = '262626'plt.rc('lines', linewidth=1.5)plt.rc('axes', prop_cycle=cycler(color=Tableau_10.mpl_colors),       labelsize=9*scale, edgecolor=almost_black)plt.rc('xtick', labelsize=9*scale)plt.rc('ytick', labelsize=9*scale)plt.rc('legend', fontsize=8*scale)plt.rc('font', family='serif', serif="Times New Roman", size=9*scale)plt.rc('text', color=almost_black)plt.rc('mathtext', fontset='stix')plt.rc('xtick.major', size=10, width=1)plt.rc('xtick.minor', size=5, width=1)plt.rc('ytick.major', size=10, width=1)plt.rc('ytick.minor', size=5, width=1)plt.rc('figure', dpi=300, autolayout=True)<jupyter_code>phi_1_files = [Path('pressure-traces')/p for p in [Path('Tc_700K_P0_2.1848_T0_353K_pressure.txt'), Path('Tc_734K_P0_1.8013_T0_353K_pressure.txt'), Path('Tc_775K_P0_1.4365_T0_353K_pressure.txt')]]
phi_2_files = [Path('pressure-traces')/p for p in [Path('Tc_699K_P0_0.7082_T0_373K_pressure.txt'), Path('Tc_723K_P0_0.7694_T0_373K_pressure.txt'), Path('Tc_786K_P0_0.7856_T0_413K_pressure.txt')]]
scope = ['https://spreadsheets.google.com/feeds']
credentials = ServiceAccountCredentials.from_json_keyfile_name('methyl-valerate-78135e2c2c7c.json',
                                                               scope)
gc = gspread.authorize(credentials)
ws = gc.open_by_key('<KEY>').sheet1
recs = ws.get_all_records(empty2zero=True)
data = pd.DataFrame(recs)

phi_200_15_bar = data[(data['Equivalence Ratio'] == 2.00) &
                      (np.isclose(data['Compressed Pressure (bar)'], 15, rtol=1E-2))]
phi_100_30_bar = data[(data['Equivalence Ratio'] == 1.00) &
                      (np.isclose(data['Compressed Pressure (bar)'], 30, rtol=1E-2))]

phi_1_temps = phi_100_30_bar['Compressed Temperature (K)'].iloc[[1, 3, 5]]
phi_1_comp_times = phi_100_30_bar['Compression Time (ms)'].iloc[[1, 3, 5]]
phi_1_comp_times.iloc[-1] -= 1.0
phi_2_temps = phi_200_15_bar['Compressed Temperature (K)'].iloc[[3, 5, 11]]
phi_2_comp_times = phi_200_15_bar['Compression Time (ms)'].iloc[[3, 5, 11]]
fig, ax_phi_1 = plt.subplots()

for i, f in enumerate(phi_1_files):
    data = np.loadtxt(str(f))
    ax_phi_1.plot(data[:, 0]*1000 - phi_1_comp_times.iloc[i], data[:, 1], label='$T_C = {}$ K'.format(phi_1_temps.iloc[i]))
    
nrdata = np.loadtxt('pressure-traces/NR_Tc_700K_P0_2.1848_T0_353K_pressure.txt')
ax_phi_1.plot(nrdata[:, 0]*1000 + 0.25, nrdata[:, 1], label='Non-Reactive')

ax_phi_1.minorticks_on()

ax_phi_1.set_xlim(-20, 15)
ax_phi_1.set_ylim(0, 60)
ax_phi_1.set_ylabel('Pressure, bar')
ax_phi_1.set_xlabel('Time, ms')
ax_phi_1.legend(loc='upper center')
# ax_phi_1.text(0.04, 0.9, 'a)', transform=ax_phi_1.transAxes, fontweight='bold')<jupyter_output><empty_output><jupyter_text>for i, f in enumerate(phi_2_files):    data = np.loadtxt(str(f))    ax_phi_2.plot(data[:, 0]*1000 - phi_2_comp_times.iloc[i], data[:, 1], label='$T_C = {}$ K'.format(phi_2_temps.iloc[i]))nrdata = np.loadtxt('NR_Tc_699K_P0_0.7082_T0_373K_pressure.txt')ax_phi_2.plot(nrdata[:, 0]*1000, nrdata[:, 1], label='Non-Reactive')ax_phi_2.minorticks_on()ax_phi_2.set_xlim(-20, 40)ax_phi_2.set_ylim(0, 25)ax_phi_2.set_xlabel('Time, ms')ax_phi_2.legend(loc='upper center')ax_phi_2.text(0.04, 0.9, 'b)', transform=ax_phi_2.transAxes, fontweight='bold')<jupyter_code>fig.savefig('pressure-traces.pgf', bbox_inches='tight')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18435920309247694, 'fraction_numerical': 0.08563782337198929, 'mean_word_length': 6.458980044345898, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '575966', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1450, 'n_words': 167, 'path': 'methyl-valerate/figures/pressure-traces.ipynb', 'repo_name': 'bryanwweber/ncm-2017', 'size': '3402'}