- 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 axesKing.x_mod_ndandKing.y_mod_ndas well as the fit resultsKing.results_nd.- Parameters:
-
- modestr
The mode of the King plot. 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, else 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
Factors to scale the $x$ and the $y$-axis.
- add_xyarray_like
Additional $x$ and $y$ data to plot. Must have shape
(n - 1, k, 5), where n is the dimension of the data vectors, k is 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
Additional mass numbers for the additional data. Must have shape
(k, 2), where each row is a tuple(A, A_ref).- font_dictdict
The font_dict passed to
matplotlib.rc('font', font_dict).- showbool
Whether to call
plt.show().- kwargsNone
Additional keyword arguments.
- Returns:
-
- outNone