I have a fairly long list of data points that I’m plotting using ListPlot.
Now instead of the x axis saying 1000, 2000, 3000,… for the number of the point, I want it to say a, b, c,… how would you do it? The option Ticks inside of ListPlot apparently can only specify at what values I want it to show the respective value, but instead of “1000” I want it to say “a” on the plot axis.
Hi Daniel,
Is this what you are looking for?
data = Array[{1000 #, #^2} &, 10];
xTicks = Transpose[{data[[All, 1]], Alphabet["Greek"][[1 ;; 10]]}];
ListLinePlot[data, Ticks -> {xTicks, Automatic}]
![]()
Since you have a large number of points you may want to only label every n’th one. e.g. for every second one
xTicks = Transpose[{data[[All, 1]][[1 ;; 10 ;; 2]], Alphabet["Greek"][[1 ;; 10 ;; 2]]}];
Crossposted here.
Yes that helped a lot, thank you.
Welcome to Wolfram Community!
Please make sure you know the rules: https://wolfr.am/READ-1ST
Please next time link your post to the duplicated one from MSE site.
