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)
它运作良好:
然而,如果我将比额表改为log <>/code>,则空洞:
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 )