defining array of characters

James T. Potemra jimp at HAWAII.EDU
Thu Oct 22 14:30:15 EDT 2009


Hi Ousmane:

I think you can do something like this:

title.1 = 'north'
title.2 = 'south'
title.3 = 'east'
i = 1
while ( i <= 3 )
.
.
.
'draw title 'title.i
i = i + 1
endwhile


Jim

Ousmane Ndiaye wrote:
> Hi,
> I want to use loop to plot my graphics and I am wondering if there is a away to pre-define an array of character in grads that I can use for example in labeling the title of each graphic in a loop by index reference aka :
> title=['north','south','east']
> then use title(i).
> Ousmane
>



More information about the gradsusr mailing list