Code:
fig, ax = plt.subplots()
Error:
AttributeError: 'Line2D' object has no property 'ax'
Code:
fig, ax = plt.subplots()
Error:
AttributeError: 'Line2D' object has no property 'ax'
plt.figure(figsize=(10, 5))
plt.style.use('seaborn')
fig, ax = plt.subplots()
plt.plot(x,y)
ax.xaxis.set_ticks(x)