Feed on

i prefer to make all of my powerpoint and keynote slides with dark backgrounds and white text. i find these slides to be much more readable in a dark room; the problem with this setup though is that most figure-making software automatically draw dark lines. matlab falls into this category.

to make matlab automatically create figures amenable to black slides, i’ve hit upon the following handy trick. prepend the following code right before you save your figure:




voila! all your figure text and lines are now white!

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

2 Responses to “make matlab figures for black backgrounds”

  1. on 12 May 2011 at 7:43 am Chris

    Thanks for the tip.

    However, on XP your code doesn’t copy and paste very well. Perhaps you’ve used a font that Windows does not have. But the ellipses and quotation marks come out as undefined in Matlab.

    Otherwise great info on your site.

  2. on 18 Aug 2011 at 3:14 pm Tim H

    Hi! There is a simpler way to do this:


    This command toggles between white and black background color, and sets the text colors appropriately.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS