Making x and y axis to have the same scale

Hi!

I’m plotting my data points (earthquakes) along a profile and the two axis are “distance” and “depth” both in km.
Is there a way to force the x and y axis to have the same scale, regardless of the resulting aspect ratio?

Here’s my piece of code:

fig.basemap(
            projection="X10/-6",
            region=region,
            frame=['xafg50+l"Distance (km)"', 'yafg10+l"Depth (km)"', "WSen"],
        )
fig.plot(data="cross.txt", 
             projection="X", 
             style="c0.1", 
             pen='black', 
             color = color
)

All the best!

Yes, using projection="X10/-6" sets the width for 10cm and height to 6cm. Using a lower-case "x" specifies that you are setting the scale rather than the width. e.g., projection="x0.1c/0.1c" to set x- and y- scales to 0.1 cm per data unit.

Note that you only need to provide the projection on the first plotting command for the figure. Passing an argument to the projection parameter on subsequent figure methods without using a variable can be error prone.

Thank you so much, it worked perfectly!