NCL Home > Documentation > Graphics

.hluresfile

This file changes NCL's default graphical display. For example, by default, when you run NCL, your background and foreground colors will be black and white, your font will be "times-roman", and your color table will be the "default" color table.

To change the background/foreground colors to white/black, the font to "helvetica", and the color table to "rainbow+gray", put the below ".hluresfile" in the home directory of every machine you run NCL on. Or, you can call the file whatever you what, put it any directory, and set the NCARG_USRRESFILE environment variable to the full path to the file (including the filename itself).

Of course, you can modify this file and add other default changes that you want. As a start, grab the text below and copy it to the file ~/.hluresfile.

!=========================================
! comments for ".res" files are preceded by a "!"
! remember quotations are not used in .res files

! White background/black foreground
*wkForegroundColor  : (/0.,0.,0./)
*wkBackgroundColor  : (/1.,1.,1./)

*wkColorMap         : rainbow+gray

! Font stuff
*Font           : helvetica 

! Function Codes [Default is a colon ]
*TextFuncCode               : ~     
 
! Make default X11 window larger (adjust as necessary)
*wkWidth                     : 800
*wkHeight                    : 800

! Have a favorite colormap that you use for everything? You can
! make it your default here (note the name is NOT in quotes):
! *wkColorMap  temp1

! Increase the default (16mb) contour memory
! If you gave gridded data > 500 x 500, you may need this
*wsMaximumSize: 32556688
!==========================================