Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.71 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.71 KB

Data post-processing with Matlab

Data post-processing with Python

The polarimetry data are saved in a .mat (MATLAB®) file. Post-processing can be naturally done in MATLAB®. For open-source purposes, the .mat data file can be read in Python using the scipy.io library and data plotted using libraries like matplotlib, plotly, seaborn... Here is an example for plotting histograms:

from scipy.io import loadmat
import matplotlib.pyplot as plt
import seaborn as sns
data = loadmat('B16_P36.mat')
Psi = data['Psi']
Rho = data['Rho']
f, ax = plt.subplots(1,1)
ax.set_xlabel('Angle')
ax.set_ylabel('Frequency')
sns.distplot(Psi, bins=20, label='Psi Histogram', color='purple')
sns.distplot(Rho, bins=60, label='Rho Histogram', color='blue')
ax.legend(loc='upper right')
ax.set_xlim([0, 180])
plt.show()

For more information: cristel.chandre@cnrs.fr