I'm trying to plot a linear line through zero:
fig, ax = plt.subplots()
l2 = ax.axline(xy1=(0, 0), slope=0.3)
ax.set_xlim(0.1, 10)
ax.set_ylim(0.1, 10)
It works well:
However, if I change the scale to log, it would be empty:
fig, ax = plt.subplots()
l2 = ax.axline(xy1=(0, 0), slope=0.3)
ax.set_xlim(0.1, 10)
ax.set_ylim(0.1, 10)
ax.set_xscale('log')
ax.set_yscale('log')


Unfortunately the order of operations has hidden the actual error message from appearing for you. If you were to modify your code to the following:
You would have seen the following error
However, you can still generate the line if you wish with something like the following:
Which would give you the following figure