plot line with different color

Added by rose 4 months ago

Hi,
please let me know how to plot a set of lines with different colors.

this is what I used but need to change color for each line.

textfile=*.mtf
gmt psbasemap -Bxa1pf3g10 -Bya1pf3g9 -R -J -K -P > $OUTPUTFILE
for Site in $(ls $textfile)
do
awk '{ if (NR>35) { print $1}}' $Site | gmt psxy -R -J -O -K -Sc0.05c,blue -P -V >> $OUTPUTFILE
done


Replies (1)

RE: plot line with different color - Added by Joaquim 4 months ago

The advise now is to repeat the questions in the new forum, but regarding this one, please see option -W of psxy/plot

-W[pen][attr] (more …)
Set pen attributes for lines or the outline of symbols [Defaults: width = default, color = black, style = solid].
If the modifier +cl is appended then the color of the line are taken from the CPT (see -C). ...

(1-1/1)