Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.3K Views
|
12 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Insert specific Y Range with ListLogPlot function

Posted 3 years ago

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.

POSTED BY: Ali Abdelkawy
12 Replies

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}]
POSTED BY: Gianluca Gorni

You should show your code.

POSTED BY: Gianluca Gorni
Posted 3 years ago

Thanks for your help.

POSTED BY: Ali Abdelkawy
Posted 3 years ago

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.

POSTED BY: Ali Abdelkawy

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]}]
POSTED BY: Gianluca Gorni
Posted 3 years ago

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}}
POSTED BY: Ali Abdelkawy
Posted 3 years ago

Also see FrameTicks.

POSTED BY: Rohit Namjoshi
Posted 3 years ago

I insert plotrange option but output not the same in image, also I want to choose the four numbers in image in y range.

POSTED BY: Ali Abdelkawy

I forgot, you may want to check out FortranForm for the formatting of numbers.

POSTED BY: Gianluca Gorni

You should look up the options PlotRange and GridLines.

POSTED BY: Gianluca Gorni
Posted 3 years ago

I want the same format and range as in attached image.

enter image description here

POSTED BY: Ali Abdelkawy

Do you mean PlotRange? Beware of the meaning of square brackets [].

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard