Layout, drawing and typography
Arrange panels, draw annotations, and control the details of a figure.
Everyday editing
The pointer. In the Figure and Slide editors the pointer is Flux’s own: by default a classic arrow in Figma’s style — a pink, slightly leaning arrowhead with a deep indigo outline — and it is one mark that changes form rather than a set of unrelated system arrows. Over an object’s edge or corner it becomes a double-headed resize arrow in the same colours, just outside a corner a curved rotate arrow, with a small + while Alt is duplicating, and it keeps that form for the whole drag. Paper, Reader and Library keep the system’s cursors; text fields keep the I-beam and pan keeps the hand.
Settings → General → Cursor tunes the pointer with a live preview. Style chooses Classic arrow or Crosshair. The arrow has fill and outline colours, size, outline width, corner rounding, shadow and tilt; Press on click adds a subtle tip-led depression on the canvas while the button is down, with Press depth (1.25× by default) and Return time (80 ms by default), and Click to try the press lets you feel a change. The crosshair is a precise cross with a gap at the centre, so the pixel you point at is never covered; its colour follows the surface (dark ink over paper and other light surfaces, paper-white over the dark canvas and chrome), with its own colours, stroke, optional halo, centre mark, hover dot and press contraction, and Adaptive, Outlined and Accent presets. Either style can hand the resize, rotate and move states back to the system’s own cursors.
Selecting and moving. Click an object to select it; a path, line or hollow shape is selected by clicking on or near its stroke. Once selected, its bounding box is the handle: drag from anywhere inside the box — an open path’s empty interior, a hollow ellipse’s middle, the gaps of a group, even over a plot the path annotates — to move it, and a click there keeps it selected (a click on an object lying beneath the selection selects that object instead; an object drawn on top of the selection still wins its own click). A drag has to travel a few pixels before anything moves, so a shaky click never nudges. With several objects selected, a click on one of them selects just that one; a drag still moves them all.
Resizing and rotating. The selection shows four corner handles. Drag a corner to resize both axes, or grab anywhere along an edge to resize that axis alone — the edge follows your drag from wherever you took hold of it, and snaps to neighbouring edges, centres and guides the way a move does. Shift keeps the proportions (from an edge it grows about the opposite edge’s middle), Alt resizes about the centre (press or release it mid-drag and the box follows at once), and the live W × H readout under the box shows the size as you go. Thin objects — a scale bar, a one-line label — have no edge bands across their short side, so their whole body stays grabbable; their corners still resize them from the outside. To rotate, drag the knob above the box or simply drag from just outside any corner; Shift snaps to 15°. Ctrl+drag a handle or edge of an image or plot to crop instead (on a plot, Ctrl just inside the edge still picks the part under the pointer). Images and plots resize freely by an edge, so use a corner or Shift when the proportions matter. What happens to a plot’s axes and type when you resize it is in Resizing a plot.
Moving between figures and the rest. Drag to move (with smart snapping and alignment guides), arrows to nudge, Alt+drag to duplicate, Shift+drag to constrain to an axis. To move something to a different figure, just drag it there: the figure under the pointer lights up, and releasing puts the selection into that figure where you dropped it (groups and panel captions come along; one Undo brings it back). Ctrl+X cuts, Ctrl+C copies and Ctrl+V pastes, so a cut in one figure and a paste in another is the keyboard way to do the same thing. Ctrl+G groups (Ctrl+Shift+G ungroups), ] brings to front and [ sends to back (with Ctrl they move one step), Shift+H / Shift+V flip, Delete removes, Escape cancels whatever you’re midway through. To line things up, space them evenly or reflow them into a grid, press A for Align & Arrange.
Align & Arrange
Select objects and press A to open Align & Arrange beside them, with Align active; Alt+T opens it with Arrange active. Both panes stay visible — click a pane or one of its controls to activate it, or press Space while the tool surface has focus to switch. The panel works the same way on slides.
Crystallize a loose selection
Select a roughly arranged row, column or grid and press Shift+A. Flux infers the layout from the positions, evens the spacing and aligns the selection in one Undo step. Hover over the small button at the selection’s lower right for a preview. When every item is a semantic plot with readable axes, rows line up on their X axes and columns line up on their Y axes. A plot grouped with its panel letter counts as one plot. For bounding-box alignment, press Shift+Alt+A or Alt+click the corner button. Mixed selections use their bounds. The pink gap guides let you fine-tune the result.
Align objects and axes
Click an alignment button or use W/A/S/D for top/left/bottom/right; H aligns X centres along a vertical line and V aligns Y centres along a horizontal line. To chooses what you align to: Selection, a named Object, or the Figure frame (one selected object aligns to the figure). Shift+H / Shift+V under Distribute spaces three or more objects, keeping the outermost ones fixed. Each alignment is one undo step and the panel stays open. A plot with parts hidden in X-ray aligns and arranges by its visible outline. Without the panel, Alt+A / Alt+W / Alt+S / Alt+D align left/top/bottom/right and Alt+H / Alt+V centre horizontally/vertically.
Plot spines. For semantic plots, the Align pane adds X spines (X), which aligns horizontal axes, and Y spines (Y), which aligns vertical axes. The Reference plot stays fixed. Whole groups move together, annotations included. For multi-panel plots, open Plot, panel & spine choices to identify the intended axis. Unavailable spines are explained in the pane, and ordinary alignment remains available. These commands move plots without changing their domains, sizes or internal geometry. Match plot area sits in the same pane and changes the plots’ sizes so their data areas match; see Resizing a plot.
Arrange a row, column or grid
An existing row, column or simple grid keeps its order and internal offsets while uneven gaps are tidied, and a regular arrangement stays where it is. An ambiguous selection gets a Suggested grid preview. R chooses Row, C Column and G Grid. Use − / + beside the grid readout to change the row count. The link between the grid’s gap fields adjusts horizontal and vertical spacing together.
Gap guides and spacing. Selecting an already evenly spaced row, column or simple grid shows pink gap guides without opening the panel; this recognition leaves the objects unchanged, and ambiguous overlaps show no guides. Drag a guide to edit the spacing as one undo step. In the panel, drag a gap guide to adjust all gaps on that axis, or enter, scroll or scrub a value in the spacing field (Horizontal gap / Vertical gap, or Column gap / Row gap in a grid). Right/down increases spacing, left/up decreases it; Shift adjusts faster and Alt more finely. Spacing is signed: negative gaps overlap objects, which is what stacked traces or waveforms want, and there is no zero floor — very negative spacing can move successive tracks past one another while they keep their members, sizes and stacking order. Grid gaps measure the space between column and row tracks, so smaller objects can have more visible clearance within their cells.
Keep fixed chooses which edge or centre stays in place while the spacing changes; a grid offers nine anchor points. Click the small pin on the selection to open the same chooser without opening the panel. Centre is the initial default, and your choice stays selected across selections and tool visits in the current session. 1 / 2 / 3 chooses start/centre/end on the gap axis you are editing or hovering (numeric fields keep normal typing). Choosing a different anchor moves nothing until you change the spacing, and the fixed point always uses the actual selection bounds, overlap included.
Enter or Apply keeps the Arrange preview as one undo step. Escape cancels the current drag or field edit first; another Escape restores the arrangement from when you entered. Switching back to Align keeps the arrangement. Input fields keep normal typing — Enter accepts a field — and keyboard-focused buttons keep their normal Enter/Space activation. Middle-button and wheel navigation stay available between edits. These tools set ordinary object positions; they do not create an automatic layout that later moves newly added objects.
From the command line, flux arrange takes --mode tidy|reflow, signed --gap-x / --gap-y and start/centre/end anchors, and flux align-plot-spines aligns spines to a reference (command reference).
The property menu
Press F with an object or part selected. The header identifies the selection by its Layers name and offers Ask. Cards group the controls that apply to the selection. Geometry pairs x with width and y with height. On a group heading, a lit key means its switch is on. Hover for its name, then click or press the displayed key. With one object selected in Figure, hover over position, size, rotation or corner radius to see the corresponding measure drawn on the object. The footer gives the next action and a search button (S).
Drag a fader to change opacity, or drag the rotation dial to set an angle. Hold Shift on the dial to snap to 15°. Stroke width shows a sample line and corner radius shows the bend. Each drag is one undo step. Press Escape during the drag to cancel it. At rest a number shows up to two decimals. Click it for its exact value or type an expression such as 240/2. To adjust a property while watching the object, use its key and the wheel.
Every hotkey is a left-hand key: 1–6, q w e r t, a d g and z x c v b, plus h for a plot’s content scale or a text’s letter spacing and n for paragraph spacing. Your right hand stays on the mouse:
- Press the key to arm the row.
- Roll the mouse wheel anywhere on the screen to adjust it. A slow roll moves one step per notch, a flick moves fast and a trackpad scrubs; hold Shift for ×10 or Alt for ×0.1. ↑/↓ step too, and typed digits replace the value.
- Press Space or Enter to apply, or Escape to revert.
A choice such as font or alignment expands its options inline (wheel, w/a/s/d, 1–9, or click).
Hovering any numeric row and rolling the wheel edits it directly, so the menu works with the mouse alone as well; s searches the properties. It carries the essentials (position, size with aspect lock, rotation, opacity) plus the deep cuts: dashed strokes with dash/gap control, arrowheads on lines and open paths (filled or V-line, sized, with round/flat/square caps), corner radius on rectangles and paths, no-fill/no-stroke, separate fill opacity (b) and stroke opacity (t) — each independent of the object’s opacity, which multiplies both — text styling — and save as preset for anything you want to reuse. The right rail carries the same properties (fill, stroke and text colours with their palette names, sizes, stroke widths, arrowheads), so the menu is a choice, not a requirement.
Colours and colormaps
A colour row opens the palette — every row on one line, the whole grid in view — with the full spectrum beside it (a saturation/value square and a hue bar, seeded from the current colour), a hex field and an eyedropper; hovering a swatch previews it live, a click applies it, and a drag on the square previews until you let go. The hex field and spectrum follow the preview. The opacity slider under the spectrum is the picked paint’s own opacity — a fill picker sets the fill’s, a stroke picker the stroke’s (a text colour sets the object’s opacity) — and shows the selection’s current value (or mixed). Releasing the hue or opacity slider applies that adjustment and keeps the picker open so you can continue tuning the colour.
The eyedropper samples a colour from your screen. On Linux it uses your desktop’s colour picker; Escape cancels without changing your artwork. If screen picking is unavailable, Flux offers a magnified view labelled Pick from Flux window, which samples only this window. A completed pick is one undoable change. Escape or clicking outside dismisses an unchosen preview; an incomplete hex stays editable until you finish it.
The palette comes in collections — Flexoki (the default), ColorBrewer, Paul Tol’s colour sets, and your project’s own imported palette — as tabs above the grid; Shift+Tab cycles them. Tab switches the grid to the colormaps: every map fluxplot ships (matplotlib, Crameri’s Scientific colour maps, Paul Tol, cmasher), by collection and by type, each with a preview bar — pick a map and hover along its bar to take the colour at that position, r reverses it. Or take the whole map: x or y (or the along x / along y buttons under the bar) lays it across the element as a gradient along that axis — x left→right, y bottom→top — for a shape’s fill or stroke, a line’s or arrow’s stroke (arrowheads included), or a text’s glyphs. The map’s colours are stored on the element itself, so the gradient travels into every export (SVG, PNG, TIFF), headless render and exported deck exactly as drawn; the menu chip and the Inspector swatch show the map and name it (crameri.batlow · along y), and picking any plain swatch returns the element to a solid colour. Plot parts take solid colours only. Settings → Figure → Colour pickers chooses which palette and colormap collection a picker opens on.
Numeric fields and layers
Numeric fields accept expressions such as 240/2 and display fractional values even when the normal wheel increment is a whole unit. Drag a field’s label to scrub, or click its input and type. A scrub or a continuous text/property edit is one undo step; Escape cancels the current preview. Mixed selections show Mixed and how many objects a property can change. Locked or hidden objects, including members of a locked or hidden group, stay unchanged while you edit the rest of a selection.
In Layers, Ctrl+click (⌘+click on macOS) toggles objects and Shift+click selects a range. With a row focused, ↑/↓ moves through the list, Home/End reaches either end, Shift+↑/↓ extends the selection, and F2 renames. A group opens or closes with →/←. Locks inherited from a parent group explain which group must be unlocked.
Resizing a figure
Click the figure’s title above its frame, then drag an edge or corner of the frame. The handles stay the same size on screen as you zoom. Shift preserves the frame’s original aspect ratio. The Inspector shows the new dimensions during the drag; Escape restores the original boundary, and a completed resize is one undo step.
Resizing the frame changes the export boundary. Your plots, text and shapes retain their size and world position. Moving a left or top edge moves the boundary around the artwork; elements and ruler guides adjust their local coordinates to stay in place. Artwork outside the new frame remains in the project and reappears if you enlarge the boundary again. Dragging the title still moves the whole figure. Slides use a shared deck stage size.
Resizing a plot
Plots saved with fluxplot 0.4 or later include measured layout information. Drag a plot’s edge or corner, or type its width and height in the Inspector, to Reflow it: the axes and data areas change size, numeric ticks are recomputed, and text, strokes and markers keep their physical point sizes — the way changing a figure’s size in matplotlib does, without Python. Native size (in the Inspector’s Layout controls) restores the dimensions from Python. A deliberate size chosen in Flux survives regeneration; an untouched plot follows the new Python size.
Legends wrap onto more rows when they need more room, keeping their labels and swatches at their original size where possible: a one-row legend wraps left to right like text, and a multi-column legend drops columns. A legend that still cannot fit shrinks together with its frame; a titled legend keeps its composition and shrinks as a unit. Shaded confidence bands follow the axes like the lines they surround. Returning to a wider plot restores the original legend layout.
Reflow, Stretch and the Layout status. The Inspector’s Layout controls offer Reflow and Stretch, the previous behaviour, in which the whole picture scales. The status line beneath them says whether the result is Exact, Reflowed, Approximate or Stretch, with a reason — “regenerate with fluxplot ≥ 0.4 to reflow”, “polar axes not supported”, “ticks crowded”, “labels fixed in source” and so on. Legacy plots need one regeneration to enable reflow. Polar plots, 3D, subfigures, compressed layout and unsupported transforms use Stretch with a named reason. Date, category and custom ticks keep their source positions and labels. Extremely small sizes may crowd decorations; enlarge the plot when the status reports this.
Content scale (or the K scale tool) is the other dial: it changes the physical size of text, strokes and markers within the chosen box. Crop boundaries remain figure fractions during reflow. Pictures without text or lines, such as a PNG inside an SVG, have nothing for content scale to change, so the Inspector explains this instead of showing the field; resize the box to make them bigger.
Hidden parts. Hiding plot parts in X-ray tightens the selection and hover outline around the remaining visible content. The plot keeps its saved dimensions, so showing those parts restores its original frame. Selection, dragging, snapping, Align & Arrange and resize previews use the visible bounds; cropping continues to work against the saved plot frame.
Match plot area. Select several reflow-capable plots and use Match plot area → Height / Width / Both in the Align pane of Align & Arrange to match their data areas in one undo step. The reference is the plot chosen in the pane; otherwise the first selected plot. Then X spines / Y spines can align their reflowed spines. Aspect constraints and infeasible sizes are reported. A single panel picked in X-ray scopes that plot’s data area for Match; other selected plots use their full panel union. Locked or excluded plots cannot be changed by Match.
From the command line, flux resize-plot resizes a plot’s figsize, flux set-plot-layout-mode --mode auto|stretch chooses reflow or stretch, and flux match-plot-areas --dimension height|width|both matches data areas (command reference).
Drawing
The shape tools do what you expect; the pen (P) is placement-assisted: click to place points; a ring appears when you’re close enough to your first point to close the shape; Shift constrains segments to 0/45/90°; dashed guides snap to alignments with earlier nodes, and tick marks snap equal edge lengths — perfect squares and 45-45-90 triangles from sloppy clicks. Enter finishes an open curve; while the background grid is showing, the pen snaps to its vertices.
Double-click a path (or press Enter on it) to edit its nodes. Inside node-edit: v moves nodes (Shift+drag constrains along the axes or the flanking tangents), p continues drawing — connect to an endpoint to extend or merge the path — d deletes nodes, and Ctrl+drag on a segment bends it. The Inspector’s Closed path checkbox opens or closes any path.
Connectors and labels that stick
A line or arrow (L / Shift+L) drawn from one shape to another sticks to both: a dashed outline shows the shape an end will stick to, and dragging one of its ends onto a shape sticks that end. A filled end handle marks a stuck end. On a shape the end meets its outline, facing the other end; on a plot, an image, a 3D model or a video it stays exactly where you released it (hold Ctrl as you release to keep the exact spot on a shape too). Move a shape and its connectors and labels follow it, live while you drag. A connector never points backwards: as the shapes close in it thins out, and while they overlap it is hidden.
Any element can sit beside another. In the Inspector, Sticks to picks the element, the side, the gap and the alignment (a line shows Connector with its two ends instead); a rotated label sits beside it as it looks. Editing a stuck label (its text, bold, size, width or rotation) keeps it stuck; moving it by hand frees it, and deleting the shape frees what hung on it. Settings → Figure → Connectors stick to shapes turns the sticking off.
From the command line, flux figure-attach <figure> <element> --start A --end B:e:4 sets a connector’s ends (<id>[:anchor[:gap]]), --to A --side n --gap 8 sits an element beside another, and --detach frees it (command reference).
A canvas that holds a stuck element is saved in a newer file format, which older Flux versions do not open.
Arranging text in its box
Press T, then either click for a label — the box hugs whatever you type on one line — or drag out a box for a paragraph: the text wraps at the width you drew and the box grows downward as you type. Every text box has a sizing mode you can change later — Auto hugs, Auto H wraps at the box width and grows downward, Fixed keeps both dimensions — and everything below arranges the text inside that box.
Align places the lines across the box: Left, Center, Right, or Justify. Justified text stretches every line out to both edges by widening the gaps between words — the letters keep their own spacing — and leaves the last line of each paragraph at its natural width, the way a printed column does. A line holding a single long word is left alone, since there is no gap to widen. It needs a width to fill, so choosing it on a hugging label turns the label’s current width into the box’s width (Auto H): nothing moves yet, but drag the box narrower — or keep typing — and the lines wrap and fill it.
Vertical places the block down the box: Top, Middle, or Bottom. The box itself never moves or changes size — only the text inside it does. There is nothing to see until the box is taller than the text, so this row appears with Fixed sizing (a hugging box is exactly as tall as its text). It is what lines a label up with the middle of the panel beside it.
Line height is the distance between lines, as a multiple of the font size (1.2 by default — 1.5 reads more airily, 1 sets the lines tight). Paragraph space adds extra room before each new paragraph, so you can separate paragraphs without leaving blank lines; it counts only where you pressed Enter, never between the lines of one wrapped paragraph. Tracking is letter spacing — the space added after every letter. Both are in points, like the font size, and a negative tracking pulls letters together. Tracking changes how much fits on a line, so a wrapping box re-wraps as you adjust it.
Halo puts a ring of the background colour behind the letters, so a label stays readable where it crosses a plot’s lines or an image. Set its width in pixels (0 turns it off); it takes the figure’s or slide’s background unless you pick a Halo colour. It shows in the editor, in exported figures and papers, and in slides; PowerPoint text boxes have no halo.
Italic for one word, not the whole box. Double-click the text to edit it, select the part you want — a species name, a gene symbol, a single letter — and press Ctrl+I, Ctrl+B or Ctrl+U. Only that stretch changes; the box keeps its own font, so the rest of the label is untouched. With nothing selected, while you are typing, the same keys style only what you type next: press Ctrl+I, type the species name, press Ctrl+I again and carry on upright. Moving the cursor or clicking ends that. To style the whole box, click the box without editing it, or select all of its text first.
The formatting sticks to the letters it was given: type in the middle of an italic word and the new letters are italic too, type against its edge and they are not, and deleting the word takes its formatting with it. The formatting shows on the canvas as you work. Bold makes letters wider, so after a bold word the text cursor can sit a few pixels off the letters. In the rare case where a bold word pushes text onto another line, the box shows plain text while you type, and the bold appears when you click away. (Escape throws the whole edit away, formatting included.)
Superscript and subscript. Select the characters and press Ctrl++ (superscript) or Ctrl+= (subscript), or use the Inspector’s X² and X₂ buttons. The characters are set smaller and raised or lowered, so x² and H₂O stay in one text box. Ctrl+. and Ctrl+, do the same, as in Google Docs. Pressing the same one again puts the characters back on the line, and with nothing selected it applies to what you type next, like the other styles.
Colour and the Inspector work on the selected letters too. While letters are selected, the Inspector’s Text section says Styling N selected characters. Its B, I and U buttons then format just those letters, and you can press several in a row. The Text colour swatch paints just those letters as well, so one symbol can be red inside a black label. Click Whole box, or click the canvas, to style the whole text again. A colormap gradient always covers the whole box, so it is not offered for a few selected letters.
All of these sit in the Inspector’s Text section and in the F menu, they apply to every selected text at once, and each adjustment is one undo step. A named text style (the Inspector’s Style row) carries them too, so “Panel body, justified, 1.4 line height” becomes one click on every label in the figure — and editing the style restyles every text linked to it.
Cascade
Select several things and press Ctrl+Shift+C: the cascade popover applies a stepped delta across the selection — each object offset a bit more than the last. Pick the property (position, rotation, opacity, size, stroke width, font size, or a colour), the step (add or multiply), and the ordering (selection, layers, left→right, top→bottom); colours ramp perceptually in OKLCh (ΔL/ΔC/ΔH per step). The preview is live; Enter applies as one undo step, Escape puts everything back. Fanned annotations, graded palettes, staircase layouts — one gesture.
Reusable designs
Ctrl+P opens your preset library — a personal, machine-global collection of styled shapes, arrows, callouts, and whole groups (a badge, a labelled bracket), organized in folders, inserted with a click. Save anything from the F menu’s save as preset; a group preset arrives as one unit you can move as one or ungroup.