chrissoria Claude Opus 4.5 commited on
Commit
d2b2af9
·
1 Parent(s): 329e646

Put each plot on its own page in methodology PDF

Browse files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -492,11 +492,9 @@ consistent and reproducible results."""
492
  from reportlab.platypus import Image
493
  import io
494
 
 
495
  story.append(PageBreak())
496
- story.append(Paragraph("Visualizations", title_style))
497
-
498
- # Distribution chart
499
- story.append(Paragraph("Category Distribution", heading_style))
500
  try:
501
  fig1 = create_distribution_chart(result_df, categories, classify_mode, models_list)
502
  img_buffer1 = io.BytesIO()
@@ -516,9 +514,9 @@ consistent and reproducible results."""
516
  except Exception as e:
517
  story.append(Paragraph(f"Could not generate distribution chart: {str(e)}", normal_style))
518
 
519
- # Classification matrix
520
- story.append(Spacer(1, 20))
521
- story.append(Paragraph("Classification Matrix", heading_style))
522
  try:
523
  fig2 = create_classification_heatmap(result_df, categories, classify_mode, models_list)
524
  img_buffer2 = io.BytesIO()
 
492
  from reportlab.platypus import Image
493
  import io
494
 
495
+ # Distribution chart (new page)
496
  story.append(PageBreak())
497
+ story.append(Paragraph("Category Distribution", title_style))
 
 
 
498
  try:
499
  fig1 = create_distribution_chart(result_df, categories, classify_mode, models_list)
500
  img_buffer1 = io.BytesIO()
 
514
  except Exception as e:
515
  story.append(Paragraph(f"Could not generate distribution chart: {str(e)}", normal_style))
516
 
517
+ # Classification matrix (new page)
518
+ story.append(PageBreak())
519
+ story.append(Paragraph("Classification Matrix", title_style))
520
  try:
521
  fig2 = create_classification_heatmap(result_df, categories, classify_mode, models_list)
522
  img_buffer2 = io.BytesIO()