garnet.plots package#
Submodules#
garnet.plots.base module#
garnet.plots.colors module#
Atom color map for plotting (shared module).
garnet.plots.crystal module#
garnet.plots.peaks module#
- class PeakCentroidPlot(c0, c1, c2, Q, r_cut, d_min)[source]#
Bases:
BasePlotMethods
save_plot(filename)Save plot.
close
- class PeakEstimatePlot(zs, yns, ens)[source]#
Bases:
BasePlotMethods
save_plot(filename)Save plot.
close
plot_peak_bins
- class PeakPlot[source]#
Bases:
BasePlotMethods
add_ellipsoid(c, S)Draw ellipsoid envelopes.
add_ellipsoid_fit(xye_fit)Three-dimensional ellipsoids.
add_estimated_ellipsoid(c, S)Draw estimated ellipsoid envelopes on ROI views.
add_peak_info(hkl, d, wavelength, angles, gon)Add peak information.
add_peak_stats(reddev, intensity, sigma)Add peak statistics.
save_plot(filename)Save the current peak figure without rebuilding it.
update_envelope(x0, x1, x2, pk, bkg)Draw region-of-interest.
add_data_norm_fit
add_filter
add_integral_fit
add_profile_bkg
add_profile_fit
add_projection_fit
close
- add_ellipsoid(c, S)[source]#
Draw ellipsoid envelopes.
- Parameters:
- c1d-array
3 component center.
- S2d-array
3x3 covariance matrix.
- add_ellipsoid_fit(xye_fit)[source]#
Three-dimensional ellipsoids.
- Parameters:
- x0, x1, x2, y, e, fit3d-array
Bins, signal, error, and fit.
- add_estimated_ellipsoid(c, S)[source]#
Draw estimated ellipsoid envelopes on ROI views.
- Parameters:
- c1d-array
3 component center.
- S2d-array
3x3 covariance matrix.
- add_peak_info(hkl, d, wavelength, angles, gon)[source]#
Add peak information.
- Parameters:
- hkllist
Miller indices.
- dfloat,
Interplanar d-spacing.
- wavelengthfloat
Wavelength.
- angleslist
Scattering and azimuthal angles.
- gonlist
Goniometer Euler angles.
- add_peak_stats(reddev, intensity, sigma)[source]#
Add peak statistics.
- Parameters:
- reddevlist
Reduced Poisson deviance D/dof per mode.
- intensitylist
Integrated intensity.
- sigmalist
Integrated intensity uncertainty.