Hello everyone,
Im new in this platform. I try to plot a diagram where i can see the distribution of my earthquake for lat and long or mag and depth.
I use this code, but the plot there are but no the data. pdf,png.pdf (6.9 KB)
gmt begin pdf,png
gmt makecpt -Cred
gmt psxy lat_long.txt -R14.20/15.20/37.40/38.20 -JX15c/10c -Sp0.35c -Gred -Baf
gmt plot lat_long.txt -i1,2 -R14.20/15.20/37.40/38.20 -JX15c/10c -Sp0.35c -Gred -Baf
gmt end show
It’s difficult to help when you don’t include any of the data.
But, just by looking at your -R it’s clear that this plot is not going to show much.
Your -R should plot earthquakes with magnitudes from 14.20 to 15.20 on the x-axis (which is very severe…) and from 37.70 and 38.20 km depth on the y-axis.
Remember the -R-syntax: -Rxmin/xmax/ymin/ymax (or use -R+r).
A correct -R for your example figure would be something like
-R2/9/-250/750
I don’t think it’s necessary to plot negative depths (if Z is positive downwards).
Earthquakes way out in space is not very common!
Infact the -R is referring on LON and LAT no for mag and depth.
In my region don’t have more magnitude i have a range 1.2 to 4 and for depth 10 to 19 km.
Yes, sure.
Basically I wanted to make two graphs one for lat and long and one for depth and mag.
But my biggest problem is that it doesn’t plot anything whether I use lat long data or mag depth data.
I would like a simple chart as I showed in the first post.
I would like to create some basic scripts for the moment and then go and complicate things, precisely because I am at the very beginning.