Reputation: 352
x axis is cluttered on the chart with 100 rows.How to deal with this kind of columns?
plt.scatter(data=ipl,x='budget',y='player')
Upvotes: 0
Views: 122
Reputation: 39052
You can try showing every nth tick-label on the x-axis
fig, ax = plt.subplots()
ax.scatter(data=ipl,x='budget',y='player')
n = 4
for idx, label in enumerate(ax.xaxis.get_ticklabels()):
if idx % n != 0:
label.set_visible(False)
Upvotes: 1