weldx_widgets/widget_measurement.py
def plot_measurements(
    measurement_data,
    axes,
    limits=None,
):
    """Plot several measurements sharing time axis."""
    for i, measurement in enumerate(measurement_data):
        last_signal = measurement.measurement_chain.signals[-1]
        plot_signal(last_signal, measurement.name, ax=axes[i], limits=limits)
        axes[i].set_xlabel(None)

    axes[-1].set_xlabel(_("time") + " / s")
    axes[0].set_title(_("Measurements"))
    return axes
Plot several measurements sharing time axis.
Plot several measurements sharing time axis.
Plot several measurements sharing time axis .
def plot_measurements(
    measurement_data,
    axes,
    limits=None,
):
    for i, measurement in enumerate(measurement_data):
        last_signal = measurement.measurement_chain.signals[-1]
        plot_signal(last_signal, measurement.name, ax=axes[i], limits=limits)
        axes[i].set_xlabel(None)
    axes[-1].set_xlabel(_("time") + " / s")
    axes[0].set_title(_("Measurements"))
    return axes
def plot_measurements ( measurement_data , axes , limits = None , ) : for i , measurement in enumerate ( measurement_data ) : last_signal = measurement . measurement_chain . signals [ - 1 ] plot_signal ( last_signal , measurement . name , ax = axes [ i ] , limits = limits ) axes [ i ] . set_xlabel ( None ) axes [ - 1 ] . set_xlabel ( _ ( "time" ) + " / s" ) axes [ 0 ] . set_title ( _ ( "Measurements" ) ) return axes
Plot several measurements sharing time axis.
Plot several measurements sharing time axis .
"""Plot several measurements sharing time axis."""
measurement_data
axes
limits