Drylab
Tips & Best Practices

Edit Plot Style with a Reference Image

Give Drylab a reference image and it rewrites your plotting code to match that style.

You provide a reference image of a plot style you want to replicate, and the AI analyzes it and rewrites your plotting code to match that style.

Reference image → AI analyzes style → Rewrites your plot code → Matched output

Reference image for style

Style elements the AI can extract and apply

ElementExample
Color paletteExact hex colors for categories or colormaps
FontFamily (serif, sans-serif), size, weight
Axes styleSpines on/off, tick direction, tick length
BackgroundWhite, light grey, dark theme
GridOn/off, major/minor, color, linestyle
LegendPosition, frame, font size, number of columns
MarkersShape, size, edge color, transparency
Line styleWidth, dash pattern, color
Figure sizeWidth x height in inches or mm
ColorbarPosition, label, tick spacing

How to restyle a plot

Step 1: Upload your reference image

  • Click + in the chatbox and choose Upload file, or paste an image from the clipboard (Ctrl+V / Cmd+V)
  • Select your reference image (.png, .jpg, .pdf)
  • Or drag it directly into the chat

For example: [Paste image] Make my scatter plot look like this. Match the background color, marker style, grid lines, and colorbar style exactly.

Step 2: Describe what you want

Here is a reference plot from a Nature paper. Restyle my current plot @figure1.png to match this style:
- Same color palette
- Same font size and family
- Same axis style (no top/right spines)
- Same legend position

Tips for better style matching

  1. Use high-resolution reference images. Higher resolution images allow the AI to detect visual details more accurately.
  2. Crop the reference figure. Crop the image to the plot area only. Removing surrounding text helps the AI focus on the visual style.
  3. Mention your current plot file. Use @filename to reference the figure you want to modify.
  4. Iterate. If the result is close but not perfect, refine the prompt.
  5. Fine-tune by hand. For small changes such as a title, a colour or an axis range, click Edit on the figure card, if it has one, instead. See Edit Figures.

On this page