[gradsusr] "Delta" notation

Charles Seman Charles.Seman at noaa.gov
Wed Apr 21 14:11:19 EDT 2010


Max,

1) Check if you have "font.gs" from http://www.iges.org/grads/gadoc/library

2) start GrADS and run "font.gs" as:
ga-> font 3

and you should see a screen with multiple columns with pairs of 
characters (the second character is the "font 3" character; I think this 
set contains the characters you want)...

3) Prof Alan Robock in his email to the Listserv describes how to use 
these fonts (also see http://grads.iges.org/grads/gadoc/font.html):

---------------------------------------------------------------------------------------------------------------
 From robock at ENVSCI.RUTGERS.EDU Thu Feb  6 11:00:31 2003
Date: Thu, 6 Feb 2003 09:17:58 -0500
From: Alan Robock <robock at ENVSCI.RUTGERS.EDU>
Reply-To: GRADSUSR at LIST.CINECA.IT
To: GRADSUSR at LIST.CINECA.IT
Subject: Re: Using fonts

Dear Jose,

To use the different fonts, there are 2 GrADS scripts that can be used
by using the command run,  font.gs and  tfont.gs (see below).

ga-> run tfont.gs

to show examples. Look at the text in tfont.gs to see how it was done.
Use font.gs to display the available fonts, e.g.:

ga-> run font.gs 3

You use it as follows:

run font.gs #

where # = 0 - 5

0 = helvetica
1 = roman
2 = italics roman
3 = symbols
4 = bold helvetica
5 = bold roman

To do sub/sup scripts use the ` [back accent] character:

`b below
`n normal
`a above
`# change the font to 0-5

e.g.,

ga-> set strsiz 0.4
ga-> draw string  1 2 `123.5`3.`0C
ga-> draw string  1 1 S`b0`n = 1368 Wm`a-2`n



tfont.gs:

pt = ' S`b0`n = 1365 Wm`a-2`n  `5CO`b2`n  `2CO`b2`n'
te=' `123`3.`1C'
gr=' `38 9G 7 pmlt > , < * . b'
it=' `2Italics'
bor=' `5Bold Roman'
boh=' `4Bold Helvetica'
he=' `0Helvetica'
'set string 7 bl'
'set strsiz 0.4'
'draw string 1 1'pt
'set string 2'
'draw string 1 2'te
'set string 13'
'draw string 1 3'gr
'set string 9'
'draw string 1 4'it
'set string 8'
'draw string 1 5'bor
'set string 3'
'draw string 1 6'boh
'set string 6'
'draw string 1 7'he

font.gs:

function font(arg)
if (arg='')
  arg = 1
endif

fch = '!"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP'
fch = fch % 'QRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'

'set font 1'
'set strsiz 0.3'
'set string 1 c 3'
'draw string 5.5 8.0 Font Set 'arg
x = 1.0
y = 7.0
i = 1
'set font 0'
'set strsiz 0.2'
'set string 1 c 1'
while (i<95)
  'draw string 'x' 'y' 'substr(fch,i,1)' `'%arg%substr(fch,i,1)
  x = x + 1.5
  if (x>10.5)
    x = 1.0
    y = y - 0.4
  endif
  i = i + 1
endwhile



Alan

Professor Alan Robock
  Editor, JGR - Atmospheres
  Director, Center for Environmental Prediction
Department of Environmental Sciences              Phone: +1-732-932-9478
Rutgers University                                  Fax: +1-732-932-8644
14 College Farm Road                   E-mail: robock at envsci.rutgers.edu
New Brunswick, NJ 08901-8551  USA      http://envsci.rutgers.edu/~robock

---------------------------------------------------------------------------------------------------------------

Hope this helps,
Chuck


Max Berkelhammer wrote:
> Dear Users,
> I am curious if there is a method to draw a "delta" or "sigma" (or 
> other common symbolic notation) for axis labels or figure titles?
>
> Thanks in advance.
>
> -Max
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>   

-- 

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."




More information about the gradsusr mailing list