def plot_fleur_scf_wc(nodes, labels=None):
    """
    This methods takes an AiiDA output parameter node or a list from a scf workchain and
    plots number of iteration over distance and total energy
    """
    from masci_tools.vis.plot_methods import plot_convergence_results_m
    if labels is None:
        labels = []
    if isinstance(nodes, list):
        if len(nodes) >= 2:
            pass
        else:
            nodes = [nodes[0]]
    else:
        nodes = [nodes]
    iterations = []
    distance_all_n = []
    total_energy_n = []
    modes = []
    for node in nodes:
        iteration = []
        output_d = node.get_dict()
        total_energy = output_d.get('total_energy_all')
        distance_all = output_d.get('distance_charge_all')
        iteration_total = output_d.get('iterations_total')
        mode = output_d.get('conv_mode')
        for i in range(1, len(total_energy) + 1):
            iteration.append(iteration_total - len(total_energy) + i)
        iterations.append(iteration)
        distance_all_n.append(distance_all)
        total_energy_n.append(total_energy)
        modes.append(mode)
    if labels:
        plot_convergence_results_m(distance_all_n, total_energy_n,
            iterations, plot_labels=labels, modes=modes)
    else:
        plot_convergence_results_m(distance_all_n, total_energy_n,
            iterations, modes=modes)
