print, 'Setting display attributes...' device, deco=0, retain=2, true=24 ; 24 bit true color display with backing store window, /free, /pixmap ; Create window to allocate colors plot, [0] ; Might not be needed, but won't hurt wdelete, !d.window ; Delete the window device, set_character_size=[6,9] ; Set the vector font size print, 'Number of colors allocated is ', !d.n_colors