Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: emit-sds/SpectralUnmixing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b30b1447e7a164b5b378ee11aef579d27a35ce67
Choose a base ref
..
head repository: emit-sds/SpectralUnmixing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f37288e766fd7db61c82a5d76fbc0eae6461e514
Choose a head ref
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/Plotting.jl
10 changes: 9 additions & 1 deletion src/Plotting.jl
Original file line number Diff line number Diff line change
@@ -17,7 +17,15 @@
using Plots
using Statistics

function plot_mean_endmembers(endmember_library; output_name="")
"""
plot_mean_endmembers(endmember_library, output_name="")
Plot the mean reflectance spectra of endmembers each class from a spectral library.
- If `output_name::String` is provided, the plot will be saved with this name, otherwise
defaults to no saving.
"""
function plot_mean_endmembers(endmember_library::SpectralLibrary; output_name="")
plots = []
for (_u, u) in enumerate(endmember_library.class_valid_keys)
mean_spectra =