get_etype function, and plot_gamma