Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is it possible to have two sets of labels for the $x$-axis tick marks using ListPlot? For example, could we have tick marks labels: {1,2,3,4,...}, and then right below these labels, the values for the powers of two: {2,4,8,16,...}?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

A starting point :

data = Table[{i, i + 1}, {i, 10}];
ListPlot[data, Ticks -> {Table[{i, Column[{i, Style[2^i, Red]}]}, {i, 10}], Automatic}]

Mathematica graphics

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.