Published
- 1 min read
matplotlib log2 xaxis
The solution for this is noted below
matplotlib log2 xaxis
Solution
ax.set_xscale('log', basex=2)
#or
plt.xscale('log', basex=2)
Try other methods by searching on the site. That is if this doesn’t work