Beispiel #1
0
def traceplot(tracefile, reader):
    """ Use the specified reader to extract & plot data
        stored in the given tracefile
    """
    data = _tracefile_to_data_arrays(tracefile, reader)
    plot_options = core.get_plot_options(reader)

    for key in data:
        if plot_options is not None:
            if key in plot_options and 'hide' in plot_options[key]:
                continue
        pylab.plot(range(len(data[key])), data[key], label=key)

    pylab.xlabel('sample')
    pylab.legend()
    pylab.grid()
    pylab.show()
Beispiel #2
0
def _process_data_arrays(arrays, reader):
    plot_options = core.get_plot_options(reader)
    pass