Development build · main @ 589f3ced80 · 2026-12-04 · May describe features that are not in a release yet Manual overviewA–Z index

Make a publication figure

On this page

Goal

Turn two finished graphs into one two-panel figure for a manuscript. By the end you will have chosen an honest graph type and error bars, applied a colour-blind-safe palette, laid out panels A and B with aligned axes, checked the figure for print problems, and exported it.

You need: the ANOVA graph from One-way ANOVA with Tukey and the dose-response graph from Fit a dose-response curve and find the EC50, in one project.


Seeded dataset

This guide reuses the two clean-room synthetic datasets from the previous guides inside one project:

  • Panel A (Cytokine Assay, Column table): Vehicle, Low Dose, and High Dose (n = 6 replicates per group) with Tukey significance brackets and Piepho CLD letters.
  • Panel B (Agonist Dose-Response, XY table): log10(Conc) vs. duplicate responses with a 4PL curve fit and 95% confidence band.

Desktop app steps

1. Choose the graph type and error bars for panel A

  1. Open the ANOVA graph and choose Graph › Change Graph Type….
  2. With six replicates per group, pick a type that shows every point: Bar with Individual Points, Box and Whiskers (Tukey / Min-Max), or Violin Plot.
  3. For error bars, choose SD to show the spread of the data or 95% CI to show how precisely the mean is known.
  4. Click OK.

You should see: the graph redrawn with individual points visible.

2. Use a colour-blind-safe palette

  1. Click Format on the toolbar. On the Data tab, under Palette, choose Okabe-Ito or Tol Bright.
  2. To check, choose View › Color Vision Preview and try Deuteranopia, Protanopia, Tritanopia, and Grayscale Print. Choose Normal Vision when done. The preview never changes your saved colours.
  3. To give the dose-response graph the same look, open it and choose Graph › Apply Style From…. Pick the ANOVA graph as the source and click OK. Data are not changed.

You should see: both graphs in the same palette, still distinguishable in every preview mode.

3. Lay out the two panels

  1. Choose Insert › New Page Layout.
  2. In the layout inspector, under Add Graph Panel, click the ANOVA graph and then the dose-response graph.
  3. Set the panel badges to A, B.
  4. Click Align Plot Origins.

You should see: two panels labelled A and B with their axes on a shared baseline. To size the page to a journal column, see Page layouts.

4. Check and export

  1. Choose Graph › Publication Preflight and fix anything it reports, such as text that is too small or lines that are too thin to print.
  2. Choose File › Export › Figure….
  3. Pick PDF (Vector) for journal upload or LaTeX, SVG (Vector) for further editing, or PNG (Raster) / TIFF with Resolution (DPI) set to 300–600 for Word or slides. Click Export.

You should see: a file at the final print size, ready to submit.


CLI and MCP steps

With cytokine.csv and dose-response.csv in the working directory, run this curvebook.batch.v1 manifest (publication-figure.json):

{
  "schema": "curvebook.batch.v1",
  "inputs": [
    {
      "path": "cytokine.csv",
      "sheet": "data-anova",
      "kind": "column"
    },
    {
      "path": "dose-response.csv",
      "sheet": "data-dose",
      "kind": "xy",
      "subcolumn_mode": "raw_replicates"
    }
  ],
  "commands": [
    {
      "cmd": "stats.run",
      "params": {
        "sheet_id": "res-anova",
        "source_sheet_id": "data-anova",
        "kind": "one_way_anova",
        "multiplicity": "tukey"
      }
    },
    {
      "cmd": "transform.run",
      "params": {
        "sheet_id": "res-log-x",
        "source_sheet_id": "data-dose",
        "kind": "transform.math",
        "x_transform": "log10",
        "y_transform": null
      }
    },
    {
      "cmd": "fit.run",
      "params": {
        "sheet_id": "res-4pl",
        "source_sheet_id": "res-log-x",
        "equation_id": "log_agonist_vs_response_4pl",
        "method": "rout"
      }
    },
    {
      "cmd": "graph.create",
      "params": {
        "sheet_id": "graph-panel-a",
        "data_sheet_id": "data-anova",
        "kind": "column",
        "title": "Cytokine response"
      }
    },
    {
      "cmd": "graph.addComparisonBrackets",
      "params": {
        "sheet_id": "graph-panel-a",
        "result_sheet_id": "res-anova",
        "significant_only": true
      }
    },
    {
      "cmd": "graph.create",
      "params": {
        "sheet_id": "graph-panel-b",
        "data_sheet_id": "res-log-x",
        "kind": "xy",
        "title": "Agonist 4PL fit"
      }
    },
    {
      "cmd": "graph.setRegressionOverlay",
      "params": {
        "sheet_id": "graph-panel-b",
        "result_sheet_id": "res-4pl",
        "show_confidence_band": true
      }
    },
    {
      "cmd": "layout.create",
      "params": {
        "sheet_id": "layout-fig1",
        "title": "Figure 1",
        "preset": "double_column",
        "align_plot_origins": true
      }
    },
    {
      "cmd": "layout.addPanel",
      "params": {
        "sheet_id": "layout-fig1",
        "kind": "graph",
        "graph_sheet_id": "graph-panel-a",
        "bounds_pt": [18, 24, 232, 190]
      }
    },
    {
      "cmd": "layout.addPanel",
      "params": {
        "sheet_id": "layout-fig1",
        "kind": "graph",
        "graph_sheet_id": "graph-panel-b",
        "bounds_pt": [262, 24, 232, 190]
      }
    },
    {
      "cmd": "layout.alignOrigins",
      "params": {
        "sheet_id": "layout-fig1",
        "align": true
      }
    },
    {
      "cmd": "graph.preflightCheck",
      "params": {
        "sheet_id": "layout-fig1"
      }
    }
  ],
  "exports": [
    { "out": "figure-1.curvebook", "format": "curvebook" },
    { "sheet": "layout-fig1", "out": "figure-1.svg", "format": "svg" },
    { "sheet": "layout-fig1", "out": "figure-1.pdf", "format": "pdf" },
    { "sheet": "layout-fig1", "out": "figure-1.png", "format": "png", "dpi": 300 }
  ]
}

Run the manifest:

curvebook-cli batch publication-figure.json --workdir . --json

In an MCP client, call the same commands via command_run and inspect preflight diagnostics returned by graph.preflightCheck before exporting.


Reading the results

  • Error-bar choice: Use SD to describe biological variation, 95% CI to show uncertainty in the mean, and median with IQR (box or violin plot) for skewed distributions.
  • Color accessibility: Categorical groups use Okabe–Ito or Paul Tol palettes; pair color with distinct marker shapes or line dashes so panels remain readable in grayscale print.
  • Preflight check: graph.preflightCheck reports clipped labels, sub-5 pt typography, and thin hairlines so you can adjust panel sizes before exporting.
  • For all graph families, palettes, page layouts, and export limits, see Graphs and page layouts and Export capabilities.

Exporting

FormatRecommended useCLI / Export option
SVGVector editing, web, Inkscape / Illustratorformat: "svg" (optional transparent background)
PDF 1.7Direct journal upload, LaTeX (\includegraphics)format: "pdf" (--pdf-version 1.7, optional --ttf-font)
PNG / TIFFWord, PowerPoint, journals requiring raster artworkformat: "png" or "tiff", dpi: 300 or 600
EMFNative vector paste on Windowsformat: "emf"