Skip to content

Instantly share code, notes, and snippets.

@amoodie
Last active March 4, 2019 22:16
Show Gist options
  • Save amoodie/9db716a02263f6d193aa3ab08514dbd1 to your computer and use it in GitHub Desktop.
Save amoodie/9db716a02263f6d193aa3ab08514dbd1 to your computer and use it in GitHub Desktop.
Change root figure options in matlab
get(0, 'factory') % lists all the options
set(0, 'defaultAxesBox', 'on')
set(0, 'defaultAxesXColor', [0 0 0])
set(0, 'defaultAxesYColor', [0 0 0])
set(0, 'defaultAxesLineWidth', 1.5)
set(0, 'defaultAxesFontSize', 10)
get(0, 'factory') % lists all the options
set(0, 'defaultFigureColor', [0.9400 0.9400 0.9400]) % light gray
set(0, 'defaultFigureInvertHardcopy', 'off') % unset revert to white on save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment