adding gridlines to a box plot

Hello, How do I add gridlines on both vertical and horizontal axis to a boxplot here is a simple example
load carsmall
boxplot(MPG, Origin, 'medianstyle', 'target')
grid on;

Answers (1)

Apparently you don’t.
This fails:
set(gca, 'XGrid','on')
You can have 'YGrid'. Be happy with it!

Tags

Asked:

on 16 Sep 2014

Answered:

on 17 Sep 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!