postprocessor.routines.single_plot.single_plot¶
- single_plot(trace_timepoints, trace_values, trace_name='flavin', unit_scaling=1, trace_color='b', trace_linestyle='-', xlabel='Time (min)', ylabel='Normalised flavin fluorescence (AU)', plot_title='', ax=None)[source]¶
Plot time series of trace.
- Parameters
- trace_timepointsarray_like
Time points (as opposed to the actual times in time units).
- trace_valuesarray_like
Trace to plot.
- trace_namestring
Name of trace being plotted, e.g. ‘flavin’.
- unit_scalingint or float
Unit scaling factor, e.g. 1/60 to convert minutes to hours.
- trace_colorstring
matplotlib colour string, specifies colour of line plot.
- trace_linestylestring
matplotlib linestyle argument.
- xlabelstring
x axis label.
- ylabelstring
y axis label.
- plot_titlestring
Plot title.
- axmatplotlib Axes
Axes in which to draw the plot, otherwise use the currently active Axes.
- Returns
- axmatplotlib Axes
Axes object with the plot.
Examples
FIXME: Add docs.