code: def plot_di_mean_ellipse(dictionary, fignum=1, color='k', marker='o', markersize=20, label='', legend='no'):
      
      pars = []
      pars.append(dictionary['dec'])
      pars.append(dictionary['inc'])
      pars.append(dictionary['Zeta'])
      pars.append(dictionary['Zdec'])
      pars.append(dictionary['Zinc'])
      pars.append(dictionary['Eta'])
      pars.append(dictionary['Edec'])
      pars.append(dictionary['Einc'])
  
      DI_dimap = pmag.dimap(dictionary['dec'], dictionary['inc'])
      if dictionary['inc'] < 0:
          plt.scatter(DI_dimap[0], DI_dimap[1],
                      edgecolors=color, facecolors='white',
                      marker=marker, s=markersize, label=label)
      if dictionary['inc'] >= 0:
          plt.scatter(DI_dimap[0], DI_dimap[1],
                      edgecolors=color, facecolors=color,
                      marker=marker, s=markersize, label=label)
      pmagplotlib.plot_ell(fignum, pars, color, 0, 1)
docs: Plot a mean direction (declination, inclination)  confidence ellipse.
  
      Parameters
      -----------
      dictionary : a dictionary generated by the pmag.dobingham or pmag.dokent funcitons