def get_style(line):
  """ get plot styles from Line2D object

  mostly copied from "Line2D.update_from"

  Args:
    line (Line2D): source of style
  Return:
    dict: line styles readily usable for another plot
  """
  styles = {
    'linestyle': line.get_linestyle(),
    'linewidth': line.get_linewidth(),
    'color': line.get_color(),
    'markersize': line.get_markersize(),
    'linestyle': line.get_linestyle(),
    'marker': line.get_marker()
  }
  return styles