Hello,
I use the ListLogPlot function to plot data. I want to insert the following ranges
Y range = [1E-03, 1E-02, 1E-01, 1E+00]
X range=[0,5,10,15,20,25]
How can I do that?
Thanks.
Hello,
I use the ListLogPlot function to plot data. I want to insert the following ranges
Y range = [1E-03, 1E-02, 1E-01, 1E+00]
X range=[0,5,10,15,20,25]
How can I do that?
Thanks.
Do you mean PlotRange? Beware of the meaning of square brackets [].
You should look up the options PlotRange and GridLines.
I forgot, you may want to check out FortranForm for the formatting of numbers.
I insert plotrange option but output not the same in image, also I want to choose the four numbers in image in y range.
You should show your code.
Also see FrameTicks.
This is a part of code
xx= ListLogPlot[{Transpose[{Energy, H1}], Transpose[{H2, H3}],
Transpose[{H4, H5}], Transpose[{H4, H6}]},
PlotRange -> {{-0.2, 30}, {0.0003, 1.00}}
I don’t see anything wrong in this example:
ListLogPlot[{{0, .2}, {10, .6}},
PlotRange -> {{-0.2, 30}, {0.0003, 1.00}},
GridLines -> {{0, 5, 10, 15, 20, 25}, 10^Range[-3, 0]}]
There is no wrong in example, I want Y range appear as same as attached image, I mean Y range be as 1.E-03, 1.E-02, 1.0E-01 and 1.E00.
How about reading the documentation???
ListLogPlot[{{0, .2}, {10, .6}},
PlotRange -> {{-0.2, 30}, {0.0003, 1.00}},
GridLines -> {{0, 5, 10, 15, 20, 25}, 10^Range[-3, 0]}, Frame -> True,
FrameTicks -> {{{{1, "1.E+00"}, {1/10, "1.E-01"}, {1/100,
"1.E-02"}, {1/1000, "1.E-03"}}, Automatic}, Automatic}]
Thanks for your help.