Bits & Flames Fyron bitsandflames/fyron

Quickstart: Plotting Gallery

Use this when you need to choose a manuscript figure style before adapting it to a real cohort.

Install

bash
uv add "fyron[ml,survival]"

Start with the Visual Figure Gallery. Each figure is generated from deterministic synthetic data so you can copy the call shape safely.

Good first choices:

QuestionStart with
Survival by groupKaplan-Meier or KM reference bands
Biomarker distributionhistogram, density, raincloud, grouped boxplot
Clinical reference intervalsreference band grid
Classifier performanceROC, PR, calibration, decision curve
Feature selection or explainabilityfeature importance, stability selection, signed feature weights

Use A Figure Function

python
import pandas as pd
from fyron import plotting as fp

df = pd.DataFrame(
    {
        "age": [54, 58, 61, 69, 73, 77],
        "group": ["A", "A", "B", "B", "B", "A"],
        "marker": [1.2, 1.4, 2.1, 2.5, 2.8, 1.9],
    }
)

fig, ax = fp.plot_grouped_boxplot(
    df,
    x="group",
    y="marker",
    ylabel="Marker value",
    title="Synthetic biomarker distribution",
)

Next Steps