<reponame>busraltun/IMPLEMENTATIONOFEYECONTROLLEDVIRTUALKEYBOARD
"""
Initialize the internal panel legend parameter field
"""
from typing import Dict
from ....tk.arrayTK import all_indexes


def initialize_panel_legend(params):
    # type: (Dict) -> Dict
    """Initialize the internal panel legend parameter field

    Args:
        params(dict): plotting parameters

    Returns:
        updated params
    """
    params['internal']['panel']['legend'] = dict()
    for p in params['data']:
        if p['legend']['content'] is not None:
            k = p['legend']['which_panel']
            params['internal']['panel']['legend'][k] = []
        else:
            pass
    return params

"""
Initialize the internal panel legend parameter field
"""
from typing import Dict
from ....tk.arrayTK import all_indexes


def initialize_panel_legend(params):
    # type: (Dict) -> Dict
    """Initialize the internal panel legend parameter field

    Args:
        params(dict): plotting parameters

    Returns:
        updated params
    """
    params['internal']['panel']['legend'] = dict()
    for p in params['data']:
        if p['legend']['content'] is not None:
            k = p['legend']['which_panel']
            params['internal']['panel']['legend'][k] = []
        else:
            pass
    return params
Initialize the internal panel legend parameter field # type: (Dict) -> Dict Initialize the internal panel legend parameter field      Args:         params(dict): plotting parameters      Returns:         updated params