Hi, im trying to add a trendline to my histogram. could someone please give me a hint or explain how to use the trend1d please. thanks
heres my code
gmt begin north
gmt trend1d north_mag.dat -Fxm >! trend.txt
gmt pshistogram -R0/9/0/5500 -JX6.5i/5i north_mag.dat -T0.1 -N -Bxa1f0.25+1 -Bya1000f500 -Gorange -W0.9 | gmt plot trend.txt -W2.5,red
gmt end show