# Insert specific Y Range with ListLogPlot function

**URL:** <https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [September 7, 2022, 12:28pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677 "2022-09-07T12:28:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 7, 2022, 12:28pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/1 "2022-09-07T12:28:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 8, 2022, 3:26pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/2 "2022-09-08T15:26:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 9, 2022, 8:38am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/3 "2022-09-09T08:38:43Z")

</div>

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

 ![pic.jpg](https://global.discourse-cdn.com/wolfram/original/3X/0/6/06a755d8f24071c15300e5f9c95ed7576e71945d.jpeg)

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 9, 2022, 8:44am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/4 "2022-09-09T08:44:33Z")

</div>

You should look up the options `PlotRange` and `GridLines`.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 9, 2022, 8:48am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/5 "2022-09-09T08:48:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 9, 2022, 8:51am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/6 "2022-09-09T08:51:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 9, 2022, 9:03am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/7 "2022-09-09T09:03:17Z")

</div>

You should show your code.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [September 9, 2022, 2:31pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/8 "2022-09-09T14:31:06Z")

</div>

Also see [`FrameTicks`](http://reference.wolfram.com/language/ref/FrameTicks.html).

---

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 10, 2022, 10:47am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/9 "2022-09-10T10:47:13Z")

</div>

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}}

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 10, 2022, 5:01pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/10 "2022-09-10T17:01:33Z")

</div>

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]}]

```

---

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 10, 2022, 6:59pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/11 "2022-09-10T18:59:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [September 10, 2022, 9:08pm UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/12 "2022-09-10T21:08:53Z")

</div>

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}]

```

---

<div class="post-metadata">

**Author:** ![aliabdelkawy](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@aliabdelkawy](https://community.wolfram.com/u/aliabdelkawy)\
**Post date:** [September 11, 2022, 6:30am UTC](https://community.wolfram.com/t/insert-specific-y-range-with-listlogplot-function/20677/13 "2022-09-11T06:30:22Z")

</div>

Thanks for your help.
