I would like to make a log-log plot where the x and y axes have the same scale. That is, if a decade is one inch physically on the x axis, I want it to be one inch physically on the y axis. How do I do this? I tried set_aspect(‘equal’) but it doesn’t work for logarithmic axes. This makes sense for semi-log plots but it doesn’t make sense for log-log plots, where it should work (logically). Is there some other straightforward way to do it? By the way, it would be nice if it worked when there are shared axes, as in the example below.
import matplotlib.pyplot as plt
import numpy as np