plot_inset_chart_mean_compare
calculate_mean(dir_name)
Calculate the mean of the InsetChart.json files in the given directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dir_name
|
str
|
Directory with InsetChart.json files |
required |
Return
mean_cr: Mean ChannelReport object raw_data_list: List of raw data dictionaries from the InsetChart.json files
Source code in emodpy_malaria/plotting/plot_inset_chart_mean_compare.py
plot_mean(dir1, dir2, dir3, title=None, add_dir_names_to_title=True, show_raw_data=False, subplot_index_min=0, subplot_index_max=100, output=None)
Plot the mean of the InsetChart.json files in the given directories.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dir1
|
str
|
Directory with InsetChart.json files |
required |
dir2
|
str
|
Directory with InsetChart.json files |
required |
dir3
|
str
|
Directory with InsetChart.json files |
required |
title
|
str
|
Title of Plot |
None
|
show_raw_data
|
bool
|
If true, shows the raw/individual simulation data in a lighter color. |
False
|
subplot_index_min
|
int
|
The index of the first subplot to show based on the alphabetical order of the channels in the report. |
0
|
subplot_index_min
|
int
|
The index of the last subplot to show based on the alphabetical order of the channels in the report. |
0
|
output
|
str
|
If provided, a directory will be created and images saved to the folder. If not provided, it opens windows. |
None
|
Return
None, if output is provided, an image will be saved to the output directory, else a window will be opened.