Your first project

Bring a plot into a figure. Give it a caption, a place in your manuscript, and a moment in your presentation. The same work stays connected throughout.

About 20 minutesAll five workspacesBeginner

You’ll need Flux installed. The plotting step uses Python and fluxplot; you can also begin with an SVG or PNG you already have. All numbers in the small example below are synthetic.

Shortcuts are written with Ctrl and Alt. On macOS, press ⌘ Command for Ctrl and ⌥ Option for Alt; Keyboard shortcuts lists them all.

1. Give the work a home

Create a working folder called growth-study. In Flux, choose New project from Home and create a project named paper inside that folder.

growth-study/
└── paper/         ← your Flux project

Your analysis code will live in growth-study; the project holds the writing, plots, figures, references, and slides. Flux autosaves your work, so you will not press Save again in this walkthrough. If saving reports an error, resolve it before closing the app.

You can return to the project from Home, or open it from a terminal:

flux /path/to/growth-study/paper

You now have an empty project folder of ordinary files. Learn how projects and files fit together.

2. Make a plot with named parts

In a terminal, move to growth-study and create a Python environment:

uv init
uv add fluxplot

Save the following as make_growth.py beside the paper folder. You use ordinary matplotlib axes; fluxplot adds a stable name to each series and saves the semantic files.

from pathlib import Path
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import fluxplot as fp

time = [0, 4, 8, 12, 16, 20, 24]
control = [0.02, 0.05, 0.13, 0.41,
           0.95, 1.60, 1.90]
treatment = [0.02, 0.07, 0.25, 0.80,
             1.50, 1.95, 2.10]

fig, ax = plt.subplots(figsize=(4.8, 3.2))
fp.line(ax, time, control,
        series="control",
        marker="o", label="Control")
fp.line(ax, time, treatment,
        series="treatment",
        marker="s", label="Treatment")
ax.set(xlabel="Time (h)",
       ylabel="Illustrative response")
ax.set_title("Synthetic growth profiles")
ax.legend(frameon=False)
fig.tight_layout()

here = Path(__file__).resolve()
plots = here.parent / "paper" / "plots"
plots.mkdir(parents=True, exist_ok=True)
recipe = {"script": str(here),
          "params": {}, "inputs": []}
fp.save(fig, plots / "growth.svg",
        recipe=recipe)

Run it:

uv run python make_growth.py

You now have three neighbouring files in paper/plots/: growth.svg, growth.fluxplot.json, and growth.recipe.json. Keep them together. The SVG is the visible plot; the manifest describes its parts and data; the recipe records its producing script. The two series= names, control and treatment, are the handles everything downstream uses.

Already have a plot? Import any SVG or PNG to continue. Per-part editing and data morphs require semantic information, which fluxplot records when it creates a plot.

3. Compose and refine in Figure

  1. Switch to Figure in the title bar (or Ctrl+1) and press Alt+G. The sidebar switches to its Plots view and lists growth.svg, marked ◆: an editable fluxplot.

  2. Double-click the plot, or drag it onto the figure. It lands at its true printed size, 4.8 × 3.2 inches, exactly as Python saved it.

    Drag growth.svg from the Plots view onto the figure. It lands at 4.8 × 3.2 inches, exactly as Python saved it.
  3. Ctrl+click the control line. You have selected one part of the plot, not the whole picture. Press F to open its property menu and change the stroke colour. The restyle is keyed to the series name control, so it survives when the plot is regenerated.

  4. Finish the colour edit and close Properties. Press R to open X-ray on the selected plot part. Hover over a series row to outline it on the canvas and read its name and value below the tree. X hides or shows the picked part. Properties reopens its controls. For a plot with a recipe, Regenerate reruns the script. Press Escape to close X-ray.

    Ctrl+click a plot part and press R. Search for line, hover a row to locate the stroke on the chart, and click its visibility button to hide or restore it.
  5. Change a number in make_growth.py and run it again. Flux refreshes the linked plot in place and keeps the colour you chose. Resize the plot by dragging an edge or corner if you like: a fluxplot ≥ 0.4 plot reflows, so its text, strokes and markers keep their point size while the axes grow or shrink.

  6. Press Alt+M to open Figure-Meta and write the caption. For this example: “Synthetic growth profiles for two illustrative conditions. Points show constructed values at seven time points; lines connect successive observations.”

You now have a figure with a linked, restyled plot and a caption. The figure catalogue shows whether the link is current, missing, or needs attention. Figure · Editing plots · Figure shortcuts

Flux Figure with a stress-field plot selected and its native Properties menu open.
The property menu opens beside the selection. This screenshot uses the separate materials showcase. Crystal structures: Crystallography Open Database. Fermi surface: the MgB₂ example from FermiSurfer. The other panels are calculated or illustrative. Visual credits.

4. Collect and read a reference

  1. Open Library (Ctrl+4) and paste a paper’s DOI into the add box, then press Enter. The reference joins your shared library, where it is available across projects. (Import… reads a BibTeX or RIS file instead.)
  2. Press Enrich to fill in the abstract, topics and citation counts, and the row’s ⬇ to fetch an open-access PDF when one exists.
  3. Click the row once: that copies its citation key, which you will paste into the manuscript in step 5.
  4. Ctrl+Shift+click the row to open the paper in Reader. Select a sentence and choose a highlight colour, then click the highlight to attach a note. Highlights anchor to the text itself and stay with the paper.

You now have a reference you can cite and a paper you have read and marked up. Reader also supports tabs, side-by-side reading, and figure snips that retain their source provenance. A reference in your Library becomes part of a project’s bibliography when you cite it; Library and project references explains the distinction.

5. Write with the figure in view

Switch to Paper (Ctrl+3) and write a short paragraph. Three insertions connect the document to your work:

Figure numbering follows the designation you choose in Figure. Reordering paragraphs does not renumber your figures. The permanent reference stays attached when you rename a figure or move it between canvases.

You now have a manuscript that refers to your figure and your reference. It remains a .qmd file: you can write equations, add tables, keep working notes, and review comments alongside the prose.

6. Let the explanation unfold

  1. Back in Figure, select the figure and choose Send to deck… in the Inspector. Flux copies the figure onto a new slide at its native size.
  2. Open Slides (Ctrl+2) and press Animate ⏱ to open the animator. Select the plot and click ✨ Auto-animate: Flux builds the plot’s entrance from its own anatomy in three clicks — Axes & grid, then Data (the lines draw on), then Legend & annotations.
  3. Press F5 to present. Advance with → or Space; Back plays the step you just saw in reverse. Escape leaves.
  4. Export produces a single .html file that plays the talk in any browser, offline.

You now have a slide built from the same plot source as your figure. Add a step for the next part of your explanation, then use the animation tools to reveal an element or transform it into a later state.

An interactive slide can also live inside a Paper document. HTML preserves its steps; PDF and Word use a still. The native Flux player below opens on an example from the Flux film. Use its slide menu to explore the other examples from the demonstration project.

The example opens on the slide made live in the film: the dots of a plotted Flux mark become five shapes and a caption. Use the arrows to advance, or choose another slide from the menu. If your device prefers reduced motion, choose Play animation for one step or turn on Animate steps to play each transition. Each slide names its data source below the player. Visual credits · Slides guide.

7. Export and keep the sources

In Paper, choose Export and select PDF. Flux’s built-in PDF export does not require Quarto. Word export uses Quarto; install it through Set up Flux if needed, and tick Live Zotero citations if a co-author will edit the citations in Word. The command-line route, flux compile --to pdf, uses Quarto and also needs TeX (PDF dependencies).

Check the exported figures, captions, and references, then keep your project folder alongside the result. It contains the editable work you will want for the next revision.

You have now seen the loop: read → plot → compose → write → cite → export, all in one folder. From here, the workspace guides go deeper, and when the study grows, regenerate plots instead of re-saving them. When you are ready for a collaborator who composes and cites for you, connect an agent.

Search the docs

Search guides, workspaces, and reference topics.

↑ ↓ to move · Enter to open · Esc to close