First Plot¶
Goal¶
Make one summary plot from a loaded PyFLASH object or table.
Before You Start¶
- Create a
Batchwith First batch, or create aDataFrameExperimentwith First table-backed batch. - Know at least one exact column name in
batch.summaryorexp.summary. - Start with
save=Falsewhile you check that the column name is right.
Steps¶
from PyFLASH.plotting import plot_mean_bars
print(batch.summary.columns.tolist())
result = plot_mean_bars(
batch,
data_cols=["GFAP Volume"],
save=False,
save_normality=False,
)
print(type(result))
When the plot call works, write figures to the object's figure folder:
Check It Worked¶
- With
save=False, the call returns without creating figure files. - With
save=True, figures are written belowbatch.fig_path. - If the column name is wrong, choose a name printed from
batch.summary.columns.