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.
MIT License
784 stars 222 forks source link

How to add legend box #122

Closed Qinghua-Wang closed 2 years ago

piermorel commented 2 years ago

Legends are created automatically by gramm. Otherwise you need to get the axes handles after the draw() call, they are stored as a property of the gramm object.