% Updates a single-trace plot display from all single-trace plot functions

function current_plot_num = update_plot_1( new_plot_num, ...
                                           plot_handle,  ...
                                           axis_handle,  ...
                                           num_plots )

    if (new_plot_num > 0) & (new_plot_num <= num_plots)
    
        current_plot_num = new_plot_num;
        for i=1:num_plots
            set(axis_handle(i),'visible','off')
            set(plot_handle(i),'visible','off')
        end
        set(axis_handle(current_plot_num),'visible','on')
        set(plot_handle(current_plot_num),'visible','on')
        axes(axis_handle(current_plot_num))
        
    end
