Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logarithmic Plot

Consider the following :

daList={{1., 588.956}, {2.15443, 581.347}, {4.64159, 573.648}, 
        {10.,560.676}, {21.5443, 552.881}, {46.4159, 547.851}, 
        {100.,544.908}, {215.443, 543.407}, {464.159, 542.358}, 
        {1000., 541.452}}


ListPlot[daList, PlotStyle -> Directive[Thick, Red]]

enter image description here

How could I get each points to be equally spaced along the x axis. I guess a logarithmic Range?

like image 600
500 Avatar asked Dec 07 '22 18:12

500


2 Answers

You could use ListLogLinearPlot[daList] which produces

ListLogLinearPlot

like image 144
Heike Avatar answered Jan 07 '23 03:01

Heike


Heike has given you a simple answer (and the best answer) that suits your needs. To answer your specific question of doing it in ListPlot, here's a simple example:

Clear@tickFun
tickFun[min_, max_] := 
  Table[{i, 10^i, {.02, 0}}, {i, Ceiling[min], Floor[max]}];
ListPlot[{Log10@#1, #2} & @@@ daList, Ticks -> {tickFun, Automatic}]

enter image description here

like image 24
abcd Avatar answered Jan 07 '23 03:01

abcd