postprocessor.routines.single_birth_plot.single_birth_plot¶
- single_birth_plot(trace_timepoints, trace_values, trace_name='flavin', birth_mask=None, unit_scaling=1, trace_color='b', birth_color='k', trace_linestyle='-', birth_linestyle='--', xlabel='Time (min)', ylabel='Normalised flavin fluorescence (AU)', birth_label='budding event', plot_title='', ax=None)[source]¶
Plot time series of trace, overlaid with buddings
- 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’.
- birth_maskarray_like
Mask to indicate where buddings are. Expect values of ‘0’ and ‘1’ or ‘False’ and ‘True’ in the elements.
- unit_scalingint or float
Unit scaling factor, e.g. 1/60 to convert minutes to hours.
- trace_colorstring
matplotlib colour string for the trace
- birth_colorstring
matplotlib colour string for the vertical lines indicating buddings
- trace_linestylestring
matplotlib linestyle argument for the trace
- birth_linestylestring
matplotlib linestyle argument for the vertical lines indicating buddings
- xlabelstring
x axis label.
- ylabelstring
y axis label.
- birth_labelstring
label for budding event, ‘budding event’ by default.
- 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.