Hello, I am trying to color my Sonde Locations according to their name so that I can include a legend in my figure that has the color and name for each point (there are only 6 of them). Currently, they are just filled in red which isn’t helpful for seeing which points are which. This is the code I currently have.
gmt makecpt -Ccategorical -Sr -i2 Edited_Locations.xy > Sonde_Locations.cpt
gmt plot Edited_Locations.xy -Sc0.1 -CSonde_Locations.cpt -l"Sondes"+jTR+o-1.5i/0i
When running my command, I get an error for plot saying that Sonde_Locations.cpt has no z-slices. A cpt with 0 bytes is made so I’m sure the error is from plot referencing an empty cpt. I’m thinking maybe makecpt isn’t the right way to go about this as the names are strings instead of values. Could this be accomplished in plot? I’ve attached a screenshot of my .xy file.