FreePNG

from graphviz import PNG

from graphviz import Digraph

def create_flowchart():
    # Initialize the diagram
    diagram = Digraph("MedicalStudyFlow", format="png")
    
    # Initial node
    diagram.node("start", "Départ: 787 patients (H/F)")
    
    # No refusals
    diagram.node("no_refusal", "Aucun refus de participation (0)")
    diagram.edge("start", "no_refusal")

    # Exclusions
    diagram.node("exclusion1", "5 FreePNG

from graphviz import PNG 收藏