2

I want to make a plot similar to LogLinearPlot, but with power of 2 ticks instead of 10 on x axis.

values = {n -> 2^x}
Plot[{Evaluate[f[n] /. values]}, {x, 2, 10}]

How to mark x axis with 2^2, 2^3, ... , 2^10 instead of default 2, 3, ..., 10 ?

megasplash
  • 185
  • 1
  • 8
  • 1
    It's not really clear what you want. How about this? Plot[{2^x}, {x, 2, 10}, Ticks -> {Range[2, 10], 2^Range[2, 10]}] – akater May 08 '14 at 19:50
  • 2
  • see the help for Ticks and StandardForm 2) Be careful and don't use names starting with Capital letters ... they are used by Mma itself (See also the help for N[])
  • – Dr. belisarius May 08 '14 at 19:52
  • to belisarius - that is an important note about capital letters, changed N to n to avoid unnecessary confusion. – megasplash May 10 '14 at 09:55
  • here is a similar question for ListLogLogPlot – megasplash Jul 10 '14 at 14:31