I'm plotting a log plot using matplotlib. My values go from 1 to 35.
fig=plt.figure(figsize=(7,7))
fig.subplots_adjust(top=0.75, right=0.9)
ax=fig.add_subplot(111)
ax.plot(x, y, marker='o', color='black', ls='')
ax.set_xscale('log')
ax.set_yscale('log')
I would like to set the x- and y-axis starting from values lower than 1, but if I use
ax.axis([-10,45,-10,45])
it doesn't work. I know that it is because I'm using a log scale, but is there a way to solve the problem obtaining the axis I want?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…