2

I have the following code.

import matplotlib
from matplotlib import pyplot as plt
import numpy as np

fig1, ax1 = plt.subplots()

data = np.loadtxt('datalog.txt')
xdata=data[:,0]; ydata=data[:,1]
ax1.plot(xdata,ydata)
ax1.set_xscale('log')
plt.savefig('plot.png')
plt.show()

This gives the following plot.

enter image description here

Why am I not getting the minor ticks that one usually expects?

File datalog.txt can be found here.

hbaromega
  • 2,317
  • 2
  • 24
  • 32

0 Answers0