Psxy: keep values instead of symbol

I am trying to place y-value instead of a symbol in simple line plot using gmt psxy but I am unable to do so.

cat $in | gmt psxy -J -R -B -Sc0.2 -Gblue -K -O -P >> $out

Can anyone help me to do that with the above line?

Thank you

Piyush Patel

y-value? You mean you $in contains x y and you want y to both be part of positioning AND a string you wish to place? First, plotting text is done with gmt pstext. Second, if you want y to be used twice I think you will need to pass it twice, the second time as the third input column.

can we use pstext to keep y-value instead of symbol in the xy-plot?