When a figure needs more than the visual builders offer, drop into code. Figure Studio’s Code editor runs several languages and turns the result into a publication figure you can insert into your document.

Six modes

The Code editor covers the tools scientists reach for:

  • Python with matplotlib for scientific plots
  • JavaScript with Plotly.js and D3 for interactive and custom charts
  • R with ggplot2 for statistical graphics
  • Gnuplot for classic function and data plots
  • SVG for hand-authored vector art
  • TikZ / PGFPlots, compiled by the real LaTeX compiler — it has its own page

Pick a language, write your script against the provided plotting target, and press Run to render the preview.

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2 * np.pi, 200)
plt.plot(x, np.sin(x), color="#7c3aed")
plt.xlabel("x"); plt.ylabel("sin x")

Style and export

A Journal Style in the side panel matches the fonts and sizing of a target venue. When the figure is ready, Export / Insert gives you a vector PDF for LaTeX or drops it into the current paper with a \label. A saved script reopens in the same editor, so you are always editing the code that made the figure.

Tip: For a longer, multi-step analysis, use the Notebook rather than a single script — it runs several cells and captures their output in order.