Add scale bar on a map

Is there any way to add the scale bar using JX projection? Here is a part of my script where i want to add a scale bar of 50m.

gmt basemap -R104.4253/104.427/29.3585/29.3610 -JX1i/0.85i $x $y -BWsen+g240/255/240 -X0.63i -Y-0.62i --MAP_FRAME_PEN=0.05p

I have tried to use this but it does not work

-Lg104.4254/29.3586+w50e+f+u

Any suggestion? Thank you :slight_smile:

Just a guess, but try with -JQ (that is linear too) instead of -JX