Sujata
April 5, 2025, 4:59pm
1
I use the following code to plot the attached image with test.txt. I want to color code these circles with the number of sessions by the third column added in modified file test_modified.txt. Whatever, I tried to modify, it shows error. Can you please help me to color code these circles.
test_modified.txt (9.5 KB)
test.txt.txt (6.2 KB)
gmt psxy test.txt -JH180/4.5i -Bg60:.“Defining sources ICRF3”:/g30 -R0/360/-90/90 -Sc0.03i -Gblue -Wblack -P --FONT_TITLE=14p --FONT_ANNOT=14p --FONT_LABEL=12 > defining_sources.ps
gmt psconvert defining_sources.ps -A -E720 -Tj -D./
You need to use option -C
Sujata
April 5, 2025, 6:25pm
3
I used -C, but the output is not generated.
gmt makecpt -Cviridis -T2/280/1 -Z > sessions.cpt
gmt psxy test_modifies.txt -JH180/4.5i -R0/360/-90/90
-Sc0.05i -C sessions.cpt -Wblack
-Bg60:.“VGOS Sources (Color=Value)”:/g30
-i0,1,2 -P -K --FONT_TITLE=14p --FONT_ANNOT=14p --FONT_LABEL=12 > source.ps
gmt psscale -C sessions.cpt -Dx6.5i/0.5i+w4i/0.2i+h
-Bx50+l"Value" -O -K >> source.ps
gmt psxy -R -J -T -O >> source.ps
gmt psconvert source.ps -A -E720 -Tj -D./
What do you mean by “output is not generated”?
Sujata:
-C sessions.cpt
This is an error. There cannot be any space between the option letter and its argument.
Sujata
April 5, 2025, 8:54pm
5
Thank you very much, Joaquim