0

I would like to change the X axis labels on the plot below, so that 1 to 9 is written ten times instead of 1 to 90.

enter image description here

The best I could achieve is with this:

xticks = np.asarray([[*range(1,10)] for x in range(1,11)]).flatten()

However, this just stacks the numbers on top of eachother from 1 to 9, ten times.

enter image description here

Croatoan
  • 25
  • 2
  • 5
  • `plt.xticks(ticks=range(90), labels=list(range(1, 10)) * 10)` or `ax.set_xticks(range(90)); ax.set_xticklabels(list(range(1, 10)) * 10)` if using `axes`. – Trenton McKinney Sep 23 '21 at 14:20

0 Answers0