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

grid lines in scatter/violin/bar plots? #81

Closed danielemarinazzo closed 5 years ago

danielemarinazzo commented 5 years ago

Is it possible to have horizontal grid lines, helpful to evidence differences in mean/median etc when plotting several groups with violin plots?

thanks!

piermorel commented 5 years ago

Hi Daniele,

Sure it's possible to add them by modifying axes properties (as you would in a normal matlab figure). In gramm you access these properties in all facets by using gramm_object.axe_property('YGrid ' , 'on') You could also use geom_hline() for more customized placement.

I hope that helped!