mirror of
https://github.com/yosata/fourierOptics.git
synced 2026-10-29 20:51:10 +00:00
Modified plotting scripts for thesis
This commit is contained in:
1 parent
914910e684
commit
1b3a1e0821
20 files changed
+76
-33
No files matched your search
+20
-10
@@ -25,7 +25,7 @@ def append_to_existing_data(A, filename):
|
||||
|
||||
|
||||
def plot_some_stuff():
|
||||
fig = plt.figure(figsize=(9,7))
|
||||
fig = plt.figure(figsize=(6.4,4.8))
|
||||
ax = fig.add_subplot(111)
|
||||
ax2 = ax.twiny()
|
||||
|
||||
@@ -52,11 +52,21 @@ def plot_some_stuff():
|
||||
ax2.set_xlabel('$\\sigma/\\lambda$', fontsize=18)
|
||||
ax.legend(fontsize=18)
|
||||
ax.grid(True, alpha=0.3)
|
||||
ax.tick_params(labelsize=18)
|
||||
ax2.tick_params(labelsize=18)
|
||||
ax.tick_params(axis='both', which='both', direction='in', labelsize=16, zorder=-1,)
|
||||
ax2.tick_params(axis='both', which='both', direction='in', labelsize=16, zorder=-1,)
|
||||
plt.tight_layout()
|
||||
plt.savefig('./figures/SR_relation_WFE_on_ADC_p1_obscured.png', bbox_inches='tight', transparent=True)
|
||||
plt.savefig('./figures/SR_relation_WFE_on_ADC_p1_obscured.pdf', bbox_inches='tight', transparent=True)
|
||||
# plt.savefig('./figures/SR_relation_WFE_on_ADC_p1_obscured.png', bbox_inches='tight', transparent=True)
|
||||
# plt.savefig('./figures/SR_relation_WFE_on_ADC_p1_obscured.pdf', bbox_inches='tight', transparent=True)
|
||||
figtitle = 'new_SR_relation_WFE_on_ADC_p1_obscured'
|
||||
if figtitle:
|
||||
plt.savefig('{}.pdf'.format(figtitle),
|
||||
bbox_inches='tight',
|
||||
transparent=False,
|
||||
facecolor=(1, 1, 0, 0.0))
|
||||
plt.savefig('{}.png'.format(figtitle),
|
||||
bbox_inches='tight',
|
||||
transparent=False,
|
||||
facecolor=(1, 1, 0, 0.0))
|
||||
plt.show()
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -65,11 +75,11 @@ if __name__ == '__main__':
|
||||
plt.rc('axes', labelsize='large')
|
||||
|
||||
l = 1.49e-3
|
||||
rmsList = load_variable('./data/SR_RMS_values_obscured.pkl')
|
||||
strehl_zern_complete = load_variable('./data/SR_strehl_zern_obscured.pkl')
|
||||
strehl_psd_complete = load_variable('./data/SR_strehl_psd_obscured.pkl')
|
||||
rms_zern_list_complete = load_variable('./data/SR_rms_zern_complete_obscured.pkl')
|
||||
rms_psd_list_complete = load_variable('./data/SR_rms_psd_complete_obscured.pkl')
|
||||
rmsList = load_variable('./data/Strehl relation analysis/SR_RMS_values_obscured.pkl')
|
||||
strehl_zern_complete = load_variable('./data/Strehl relation analysis/SR_strehl_zern_obscured.pkl')
|
||||
strehl_psd_complete = load_variable('./data/Strehl relation analysis/SR_strehl_psd_obscured.pkl')
|
||||
rms_zern_list_complete = load_variable('./data/Strehl relation analysis/SR_rms_zern_complete_obscured.pkl')
|
||||
rms_psd_list_complete = load_variable('./data/Strehl relation analysis/SR_rms_psd_complete_obscured.pkl')
|
||||
|
||||
mean_strehl_zern = np.mean(strehl_zern_complete, axis=0)
|
||||
err_strehl_zern = np.std(strehl_zern_complete, axis=0)
|
||||
|
||||
Reference in new issue
Block a user