- qspec.analyze.King. plot ( mode='' , sigma2d=1 , scale=None , add_xy=None , add_a=None , font_dict=None , show=True , **kwargs )[source]
-
Show the King plot using
matplotlib. The King plot is based on the modified dataKing.x_modand the fit resultsKing.poptandKing.pcov.- Parameters:
-
- modestr
The mode of the King plot, which determines the label of the $x$-axis. If
mode == "radii", the differences of mean-square nuclear charge radii $\delta\langle r^2\rangle^{A,A_\mathrm{ref}}$ or $\Lambda^{A,A_\mathrm{ref}}$ are expected for the $x$-axis, ifmode == "shifts", isotope shifts $\delta\nu_x^{A,A_\mathrm{ref}}$ are expected.- sigma2dint
Whether to draw actual 2-dimensional uncertainty bounds or classical errorbars. An integer number corresponds to the number of drawn sigma regions.
- scaletuple | None
Factors to scale the $x$ and the $y$-axis.
- add_xyarray_like | None
Additional $x$ and $y$ data to plot. Must have shape
(n - 1, k, 5)((k, 5)for 2-dimensional fits), wherenis the dimension of the data vectors,kis the number of additional data points and the five entries in the last axis correspond to arrays of the form[x, x_d, y, y_d, corr_xy].- add_aarray_like | None
Additional mass numbers for the additional data. Must have shape
(k, 2), where each row is a tuple(A, A_ref).- font_dictdict | None
The font_dict passed to
matplotlib.rc("font", font_dict).- showbool
Whether to call
matplotlib.pyplot.show.- kwargsAny
Additional keyword arguments are accepted for compatibility with the fit methods and ignored.
- Raises:
-
- ValueError
If no fit was performed yet.