I have a NetCDF (.nc) file which contain grid-cell classified data where I have assigned values 1, 2, 3 for cells on basis of classification criteria. I plotted this using pygmt.grdimage while following basic categorical cpt provided in this palatte table link
cpt = pygmt.makecpt(cmap="categorical", series=[1,4,1], truncate=[0,3])
Is there any way I can define my own colour codes for 1, 2 and 3 valued classes using hex codes in the categorical cpt.