postprocessor.routines.median_plot.median_plot¶
- median_plot(trace_df, trace_name='flavin', unit_scaling=1, label='wild type', median_color='b', error_color='lightblue', median_linestyle='-', median_marker='', xlabel='Time (min)', ylabel='Normalised flavin fluorescence (AU)', plot_title='', ax=None)[source]¶
Plot median time series of a DataFrame, with interquartile range shading.
- Parameters
- trace_dfpandas.DataFrame
Time series of traces (rows = cells, columns = time points).
- 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.
- labelstring
Name of group being plotted, e.g. a strain name.
- median_colorstring
matplotlib colour string for the median trace.
- error_colorstring
matplotlib colour string for the interquartile range shading.
- median_linestylestring
matplotlib linestyle argument for the median trace.
- median_markerstring
matplotlib marker argument for the median trace.
- 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.
Examples
FIXME: Add docs.