def xy_to_rgb(xy, name='ITU-R BT.2020', normalize='maximum', specific=None):
    "\n    xy値からRGB値を算出する。\n    いい感じに正規化もしておく。\n\n    Parameters\n    ----------\n    xy : array_like\n        xy value.\n    name : string\n        color space name.\n    normalize : string\n        normalize method. You can select 'maximum', 'specific' or None.\n\n    Returns\n    -------\n    array_like\n        rgb value. the value is normalized.\n    "
    illuminant_XYZ = D65_WHITE
    illuminant_RGB = D65_WHITE
    chromatic_adaptation_transform = 'CAT02'
    large_xyz_to_rgb_matrix = get_xyz_to_rgb_matrix(name)
    if (normalize == 'specific'):
        xyY = xy_to_xyY(xy)
        xyY[(..., 2)] = specific
        large_xyz = xyY_to_XYZ(xyY)
    else:
        large_xyz = xy_to_XYZ(xy)
    rgb = XYZ_to_RGB(large_xyz, illuminant_XYZ, illuminant_RGB, large_xyz_to_rgb_matrix, chromatic_adaptation_transform)
    '\n    そのままだとビデオレベルが低かったりするので、\n    各ドット毎にRGB値を正規化＆最大化する。必要であれば。\n    '
    if (normalize == 'maximum'):
        rgb = normalise_maximum(rgb, axis=(- 1))
    else:
        if (np.sum((rgb > 1.0)) > 0):
            print('warning: over flow has occured at xy_to_rgb')
        if (np.sum((rgb < 0.0)) > 0):
            print('warning: under flow has occured at xy_to_rgb')
        rgb[(rgb < 0)] = 0
        rgb[(rgb > 1.0)] = 1.0
    return rgb
xy値からRGB値を算出する。
いい感じに正規化もしておく。

Parameters
----------
xy : array_like
    xy value.
name : string
    color space name.
normalize : string
    normalize method. You can select 'maximum', 'specific' or None.

Returns
-------
array_like
    rgb value. the value is normalized.
def xy_to_rgb(xy, name='ITU-R BT.2020', normalize='maximum', specific=None):
    "\n    xy値からRGB値を算出する。\n    いい感じに正規化もしておく。\n\n    Parameters\n    ----------\n    xy : array_like\n        xy value.\n    name : string\n        color space name.\n    normalize : string\n        normalize method. You can select 'maximum', 'specific' or None.\n\n    Returns\n    -------\n    array_like\n        rgb value. the value is normalized.\n    "
    illuminant_XYZ = D65_WHITE
    illuminant_RGB = D65_WHITE
    chromatic_adaptation_transform = 'CAT02'
    large_xyz_to_rgb_matrix = get_xyz_to_rgb_matrix(name)
    if (normalize == 'specific'):
        xyY = xy_to_xyY(xy)
        xyY[(..., 2)] = specific
        large_xyz = xyY_to_XYZ(xyY)
    else:
        large_xyz = xy_to_XYZ(xy)
    rgb = XYZ_to_RGB(large_xyz, illuminant_XYZ, illuminant_RGB, large_xyz_to_rgb_matrix, chromatic_adaptation_transform)
    '\n    そのままだとビデオレベルが低かったりするので、\n    各ドット毎にRGB値を正規化＆最大化する。必要であれば。\n    '
    if (normalize == 'maximum'):
        rgb = normalise_maximum(rgb, axis=(- 1))
    else:
        if (np.sum((rgb > 1.0)) > 0):
            print('warning: over flow has occured at xy_to_rgb')
        if (np.sum((rgb < 0.0)) > 0):
            print('warning: under flow has occured at xy_to_rgb')
        rgb[(rgb < 0)] = 0
        rgb[(rgb > 1.0)] = 1.0
    return rgb