Hi!
I’m trying to plot longitude and latitude depth sections of seismicity across a map area that uses the Mercator projection. I can use two Cartesian axes for the longitude section, as the distance per degree is constant separation. However, as the distance per degree for the latitude axes changes, the Cartesian axes are not suitable.
Is it possible to set a projection for the geographic axis on the depth section? Below is the code that I’m using.
Hi @weiji14, thanks so much for pointing me to that example.
I finally managed to produce the plot - I also needed to convert my lat/lon data to utm to ensure it didn’t plot linearly on the geographic axis.
Note you are using a Mercator projection, not UTM, and normally when people deal with UTM coordinates they are in meters. Your output is in degrees *0.5 cm. Se -Ju for UTM projection.