def properties_func_default(shape, saved_attrs):
    attr_list = copy.copy(shape.attr[0])
    attr_dict = copy.copy(shape.attr[1])
    attr_list.extend(saved_attrs[0])
    attr_dict.update(saved_attrs[1])
    color = attr_dict.get('color', None)
    color = _ds9_to_mpl_colormap.get(color, color)
    if (shape.name == 'text'):
        kwargs = dict(color=color, rotation=attr_dict.get('textangle', 0))
        font = attr_dict.get('font')
        if font:
            a = font.split()
            if (len(a) >= 3):
                fontsize = float(a[1])
                kwargs['fontsize'] = fontsize
    elif (shape.name == 'point'):
        point_attrs = attr_dict.get('point', 'boxcircle').split()
        if (len(point_attrs) == 1):
            point_type = point_attrs[0]
            point_size = 11
        elif (len(point_attrs) > 1):
            point_type = point_attrs[0]
            point_size = int(point_attrs[1])
        marker = _point_type_dict.get(point_type, 'o')
        kwargs = dict(markeredgecolor=color, markerfacecolor='none', marker=marker, markeredgewidth=int(attr_dict.get('width', 1)), markersize=point_size)
    elif (shape.name in ['line', 'vector']):
        fontsize = 10
        font = attr_dict.get('font')
        if font:
            a = font.split()
            if (len(a) >= 3):
                fontsize = float(a[1])
        kwargs = dict(color=color, linewidth=int(attr_dict.get('width', 1)), mutation_scale=fontsize)
        if int(attr_dict.get('dash', '0')):
            kwargs['linestyle'] = 'dashed'
    else:
        kwargs = dict(edgecolor=color, linewidth=int(attr_dict.get('width', 1)), facecolor='none')
        if ('background' in attr_list):
            kwargs['linestyle'] = 'dashed'
        if int(attr_dict.get('dash', '0')):
            kwargs['linestyle'] = 'dashed'
        if shape.exclude:
            kwargs['hatch'] = '/'
    return kwargs
def properties_func_default(shape, saved_attrs):
    attr_list = copy.copy(shape.attr[0])
    attr_dict = copy.copy(shape.attr[1])
    attr_list.extend(saved_attrs[0])
    attr_dict.update(saved_attrs[1])
    color = attr_dict.get('color', None)
    color = _ds9_to_mpl_colormap.get(color, color)
    if (shape.name == 'text'):
        kwargs = dict(color=color, rotation=attr_dict.get('textangle', 0))
        font = attr_dict.get('font')
        if font:
            a = font.split()
            if (len(a) >= 3):
                fontsize = float(a[1])
                kwargs['fontsize'] = fontsize
    elif (shape.name == 'point'):
        point_attrs = attr_dict.get('point', 'boxcircle').split()
        if (len(point_attrs) == 1):
            point_type = point_attrs[0]
            point_size = 11
        elif (len(point_attrs) > 1):
            point_type = point_attrs[0]
            point_size = int(point_attrs[1])
        marker = _point_type_dict.get(point_type, 'o')
        kwargs = dict(markeredgecolor=color, markerfacecolor='none', marker=marker, markeredgewidth=int(attr_dict.get('width', 1)), markersize=point_size)
    elif (shape.name in ['line', 'vector']):
        fontsize = 10
        font = attr_dict.get('font')
        if font:
            a = font.split()
            if (len(a) >= 3):
                fontsize = float(a[1])
        kwargs = dict(color=color, linewidth=int(attr_dict.get('width', 1)), mutation_scale=fontsize)
        if int(attr_dict.get('dash', '0')):
            kwargs['linestyle'] = 'dashed'
    else:
        kwargs = dict(edgecolor=color, linewidth=int(attr_dict.get('width', 1)), facecolor='none')
        if ('background' in attr_list):
            kwargs['linestyle'] = 'dashed'
        if int(attr_dict.get('dash', '0')):
            kwargs['linestyle'] = 'dashed'
        if shape.exclude:
            kwargs['hatch'] = '/'
    return kwargs