-----
    Brief
    -----
    With the current function it will be plotted the EMG signals together with RMS line and the time-series that
    describes the evolution of the cumulative area.

    -----------
    Description
    -----------
    Function intended to generate a single Bokeh figure graphically describing and identifying
    Root Mean Square and Area parameters extracted from the analysis of the entire electromyographic (EMG) signal.

    Applied in the Notebook titled "EMG Analysis - Time and Frequency Parameters".

    ----------
    Parameters
    ----------
    time : list
        Time-axis linked to the acquired EMG signal samples.

    signal : list
        Acquired EMG signal samples.

    rms : float
        Root Mean Square value (amplitude estimator for the EMG signal under analysis).

    area : list
        List containing the sequential cumulative values of the area under the EMG signal curve.

def plot_emg_rms_area(time, signal, rms, area):
    """
    -----
    Brief
    -----
    With the current function it will be plotted the EMG signals together with RMS line and the time-series that
    describes the evolution of the cumulative area.

    -----------
    Description
    -----------
    Function intended to generate a single Bokeh figure graphically describing and identifying
    Root Mean Square and Area parameters extracted from the analysis of the entire electromyographic (EMG) signal.

    Applied in the Notebook titled "EMG Analysis - Time and Frequency Parameters".

    ----------
    Parameters
    ----------
    time : list
        Time-axis linked to the acquired EMG signal samples.

    signal : list
        Acquired EMG signal samples.

    rms : float
        Root Mean Square value (amplitude estimator for the EMG signal under analysis).

    area : list
        List containing the sequential cumulative values of the area under the EMG signal curve.

    """

    # List that store the figure handler
    list_figures = []

    # Plotting of EMG area and RMS line
    list_figures.append(
        figure(x_axis_label='Frequency (Hz)', y_axis_label='Electric Tension (mV)', x_range=[0, time[-1]],
               y_range=[-1, 1], **opensignals_kwargs("figure")))
    list_figures[-1].line(time, signal, **opensignals_kwargs("line"))
    list_figures[-1].line([time[0], time[-1]], [rms, rms], legend="RMS Value", **opensignals_kwargs("line"))

    # Setting the second y axis range name and range
    list_figures[-1].extra_y_ranges = {"Area": Range1d(start=0, end=area[-1])}

    # Adding the second axis to the plot
    list_figures[-1].add_layout(LinearAxis(y_range_name="Area", axis_label='Area (mV.s)'), 'right')
    list_figures[-1].line(time[1:], area, legend="Area along time (cumulative)", y_range_name="Area",
                            **opensignals_kwargs("line"))

    # Show figure.
    opensignals_style(list_figures)
    show(list_figures[-1])