parameters: (legend)
return_statement: return get_mpl_kwargs(kwargs)
docstring: Returns a list of matplotlib legend kwargs, removing any that are default values.
docstring_summary: Returns a list of matplotlib legend kwargs, removing any that are default values.
docstring_tokens: Returns a list of matplotlib legend kwargs removing any that are default values .
function: def get_legend_command_kwargs(legend):
      """
      Returns a list of matplotlib legend kwargs, removing any that are default values.
      """
      kwargs = LegendProperties.from_legend(legend)
      _remove_kwargs_if_default(kwargs)
      # Convert the kwargs to the matplotlib ones.
      return get_mpl_kwargs(kwargs)
function_tokens: def get_legend_command_kwargs ( legend ) : kwargs = LegendProperties . from_legend ( legend ) _remove_kwargs_if_default ( kwargs ) # Convert the kwargs to the matplotlib ones. return get_mpl_kwargs ( kwargs )