CONSORT Diagram
Chart overview
CONSORT diagrams are standardized flow charts required by journals for reporting randomized controlled trials, showing the number of participants screened, enrolled, randomly allocated, followed up, and analyzed at each stage.
Key points
- Clinical researchers use these figures to transparently document exclusions, dropouts, and protocol deviations according to CONSORT 2010 guidelines.
- The diagram structure ensures reproducibility and allows readers to assess potential bias in participant selection and attrition.
Python Tutorial
How to create a consort diagram in Python
Use the full tutorial for implementation details, troubleshooting, and chart variations in matplotlib, seaborn, and plotly.
Complete Guide to Scientific Data VisualizationExample Visualization

Create This Chart Now
Generate publication-ready consort diagrams with AI in seconds. No coding required – just describe your data and let AI do the work.
View example prompt
"Create a CONSORT flow diagram from my data. Draw a vertical flowchart with boxes for Enrollment (screened, excluded with reasons, enrolled), Allocation (intervention and control arms), Follow-up (lost to follow-up per arm), and Analysis (analyzed per arm). Connect boxes with downward arrows. Use clean rectangular boxes with black borders, Arial font, and journal formatting."
How to create this chart in 30 seconds
Upload Data
Drag & drop your Excel or CSV file. Plotivy securely processes it in your browser.
AI Generation
Our AI analyzes your data and generates the CONSORT Diagram code automatically.
Customize & Export
Tweak the design with natural language, then export as high-res PNG, SVG or PDF.
Newsletter
Get one weekly tip for better consort diagrams
Join researchers receiving concise Python plotting techniques to improve chart clarity and reduce revision cycles.
Python Code Example
Console Output
Figure saved: plotivy-consort-diagram.png
Common Use Cases
- 1Reporting participant flow in phase II and III randomized controlled trials
- 2Documenting screening, exclusion, and randomization counts in systematic reviews
- 3Visualizing per-protocol versus intention-to-treat analysis populations
- 4Presenting patient attrition and loss to follow-up in longitudinal observational studies
Pro Tips
Use matplotlib FancyBboxPatch and annotations with arrowprops to construct boxes and arrows programmatically
Strictly follow CONSORT 2010 box labels and stage names to satisfy journal requirements
Include reason counts for all exclusions in nested format within each exclusion box
Maintain consistent box widths and vertical spacing to keep the diagram readable at journal column width
Long-tail keyword opportunities
High-intent chart variations
Library comparison for this chart
matplotlib
Best when you need full control over axis formatting, annotation placement, and journal-specific styling for consort-diagram.
numpy
Useful in specialized workflows that complement core Python plotting libraries for consort-diagram analysis tasks.
Scientific Chart Selection Cheat Sheet
Not sure whether to use a Violin Plot, Box Plot, or Ridge Plot? Download our single-page reference mapping the most-used scientific chart types, exactly when to use them, and the core Matplotlib/Seaborn functions.