plot
plot(
input_df
results_df
compound_sel=False
xmin=False
xmax=False
marker='o'
markersize=5
linewidth=1
linestyle='-'
show_medians=True
show_all_data=False
show_errorbars=True
errorbars_kind='SD'
errorbar_linewidth=1
errorbar_capsize=3
cmap='tab10'
cmap_min=0
cmap_max=1
custom_colors=False
single_color=False
custom_labels=False
single_label=False
no_labels=False
)Plots one or more curves into an initiated matplotlib plot.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| input_df | DataFrame | Pandas DataFrame containing the input data. | required |
| results_df | DataFrame | Pandas DataFrame containing the fit results. | required |
| compound_sel | list | List of compounds to execute the function on. If set to False, all compounds from the results_df will be used. | False |
| xmin | float or int | Manually set the minimum value on x axis for all curves. If set to False, it will be determined automatically for each curve. | False |
| xmax | float or int | Manually set the maximum value on x axis for all curves. If set to False, it will be determined automatically for each curve. | False |
| marker | str | Marker type. Any matplotlib syntax is accepted (see https://matplotlib.org/stable/api/markers_api.html). | 'o' |
| markersize | float or int | Marker size. | 5 |
| linewidth | float or int | Line width of the curve. | 1 |
| linestyle | str | Line style of the curve. | '-' |
| show_medians | bool | Whether to show concentration median values. | True |
| show_all_data | bool | Whether to show all concentration points. | False |
| show_errorbars | bool | Whether to show errorbars. | True |
| errorbars_kind | str | What should be shown as errorbars, options are “SD” or “SEM”. | 'SD' |
| errorbar_linewidth | float or int | Line width of the errorbars. | 1 |
| errorbar_capsize | float or int | Size of the errorbar caps (upper and lower points of the bars). | 3 |
| cmap | str | What cmap to use for coloring the curves. Any matplotlib syntax is accepted (see https://matplotlib.org/stable/gallery/color/colormap_reference.html). | 'tab10' |
| cmap_min | float or int | Minimum point of the cmap to use. Between 0 and 1. | 0 |
| cmap_max | float or int | Maximum point of the cmap to use. Between 0 and 1. | 1 |
| custom_colors | list | If you want to define custom colors for the curves, provide list. Length of the list should be the same as number of compounds. | False |
| single_color | str | Provide single color to color all ploted curves. | False |
| custom_labels | list | If you want to define custom labels for the curves, provide list. Length of the list should be the same as number of compounds. | False |
| single_label | str | Provide single label for all ploted curves. | False |
| no_labels | bool | If you do not want any labels, set this to true. | False |