8. Plot Functions

pcassie.plot_functions.plot_spectral_square(spectra_array, wave, title=None, x_label=None, y_label=None, cbar_label=None)[source]

Plots a 2d “spectra_array” grid against a 1d “wave” array. Valuable to show a grid od spectral observations, 2d CCF arrays, etc.

pcassie.plot_functions.plot_preprocess(flux, wave)[source]

Plots the spectral grid at various stages of normalizing, median subtracting, and standard deviation dividing.

pcassie.plot_functions.plot_covariance(tdm_covariance, wdm_covariance)[source]

Plots the covariance grid of the PCA analysis in the time and wavelegnth domains.

pcassie.plot_functions.plot_eigenvectors(eigenvectors, title=None)[source]

Plots the first five eigenvectors.

pcassie.plot_functions.plot_explained_variance(eigenvalues, title=None)[source]

Plot the explained variance from eigenvalues.

pcassie.plot_functions.plot_reconstructed_spectra(original, reconstructed, wave, title=None)[source]

Plots the original and post-PCA spectra.

pcassie.plot_functions.plot_pca_subtraction(spectra, wave, start_wav, end_wav, first_comps=0, last_comps=0, preprocess=False)[source]

Runs PCA subtraction and plots the results.

pcassie.plot_functions.plot_intransit_ccfs(planet_frame_vgrid, in_transit, mean_subtracted=False)[source]

Plots the velocity vs. CCF value for all spectra taken at the time of transit, as well as their co-added sum. mean_subtracted effectively toggles normalization.

pcassie.plot_functions.plot_welch_t_test(in_trail_vals, out_of_trail_vals, t_stat, p_value, bins=None)[source]

Plots a histogram of Welch’s T-test values for the range of values associated with the planet (in trail) vs. those outside (out trail).