RepositoryMATLAB
piermorel

piermorel/gramm

Gramm is a complete data visualization toolbox for Matlab. It provides an easy to use and high-level interface to produce publication-quality plots of complex data with varied statistical visualizations. Gramm is inspired by R's ggplot2 library.

827stars
223forks
9issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: matlab

#1 Repository of the day

1
TINIX TRENDING·Topic: plot

#1 Repository of the day

1
TINIX TRENDING·Topic: stats

#1 Repository of the day

📈 Gramm: Declarative Grammar of Graphics for MATLAB

Write less code, get publication‑ready figures.

Gramm is a MATLAB toolbox created by piermorel that enables rapid creation of complex, publication‑quality figures. It follows a declarative approach, letting users specify the desired plot rather than writing imperative loops and conditionals. Inspired by R's ggplot2 and the grammar of graphics, it provides a high‑level interface for statistical visualization.

✨ Highlights

  • Declarative syntax: Specify the final figure, not the step‑by‑step drawing commands.
  • Grammar of graphics: Built on Wilkinson's grammar, mirroring ggplot2's philosophy.
  • Layered construction: Combine raw data layers (points, lines) with statistical layers (fits, histograms).
  • Faceting: Split data into subplots using facet_grid or facet_wrap.
  • Variable mapping: Assign variables to color, shape, and other aesthetics.
  • Time series support: Handles date and time data for trend visualization.
  • Publication quality: Export high‑resolution figures suitable for journals.
  • Interactive demos: Live scripts demonstrate grouped data, XY plots, time series, and online tables.

💡 Why it matters

Gramm shifts the workflow from low‑level drawing to high‑level description, reducing code volume and improving reproducibility. Its layered grammar makes it easy to add or remove visual elements, and the built‑in statistical layers let you visualize complex relationships without external toolboxes. The toolbox is particularly useful in fields like neuroscience, where clear, multi‑panel figures are essential.


#MATLAB #DataVisualization #GrammarOfGraphics #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryShell
d3/d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

114.0k
Nov 23, 2026
RepositoryTypeScript
apache/echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser

67.8k
Nov 25, 2026
RepositoryTypeScript
airbnb/visx

🐯 visx | visualization components

21.1k
Jun 22, 2026
RepositoryJavaScript
plotly/plotly.js

Open-source JavaScript charting library behind Plotly and Dash

18.4k
Dec 1, 2026
RepositoryJavaScript
plotly/plotly.js

Open-source JavaScript charting library behind Plotly and Dash

18.4k
Nov 30, 2026
RepositoryJavaScript
apexcharts/apexcharts.js

📊 Interactive JavaScript Charts built on SVG

15.2k
Nov 18, 2026
RepositoryJavaScript
apexcharts/apexcharts.js

📊 Interactive JavaScript Charts built on SVG

15.2k
Nov 18, 2026
RepositoryTypeScript
visgl/deck.gl

WebGL2 powered visualization framework

14.8k
Dec 1, 2026
RepositoryTypeScript
antvis/G6

♾ A Graph Visualization Framework in JavaScript.

12.4k
Nov 23, 2026