% Enable printed output to match colors on screen
set(figure1,'InvertHardcopy','off')
By publishing your file with this window open and the Use new figure option set to
false, any code-generated figure takes the properties of the open Figure window.
NoteYou must set the Figure capture method option to entireFigureWindow for the
final published figure to display all the properties of the open Figure window.
Output Preferences for Publishing