# Flipping the x-axis

**URL:** <https://community.wolfram.com/t/flipping-the-x-axis/22122>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [May 25, 2023, 10:18am UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122 "2023-05-25T10:18:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimitrijseibert](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dimitrijseibert](https://community.wolfram.com/u/dimitrijseibert)\
**Post date:** [May 25, 2023, 10:18am UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/1 "2023-05-25T10:18:38Z")

</div>

Hello all! I have problems with a plot. I want to plot exactly this way and also exactly in this order (from maximum to minimum on the x-axis and from minimum to maximum on the y-axis). Mathematica plot both from min to max. How can I do this?

Here are the first table entries:

```
{{4000., 96.6728}, {3999., 96.6739}, {3998., 96.675}, {3997., 96.674},
{3996., 96.6704}, {3995., 96.6643}, {3994., 96.657}, {3993., 
96.6507}, {3992., 96.648}, {3991., 96.65}, {3990., 96.6557}, {3989., 
96.6627}, {3988., 96.6684}, {3987., 96.6712}, {3986., 96.6712}, 
{3985., 96.6694}, {3984., 96.668}, {3983., 96.669}, {3982., 96.6726}, 
{3981., 96.6767}, {3980., 96.6778}, {3979., 96.6743}, {3978., 
96.668}, {3977., 96.6637}, {3976., 96.6653}, {3975., 96.673}, {3974., 
96.6827}, {3973., 96.6891}, {3972., 96.6894}..........}

```

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [May 25, 2023, 1:44pm UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/2 "2023-05-25T13:44:16Z")

</div>

I guess you are asking for `ScalingFunctions` (let `data` be your data), try:

```
ListLinePlot[data, ScalingFunctions -> {"Reverse", None}]

```

---

<div class="post-metadata">

**Author:** ![dimitrijseibert](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dimitrijseibert](https://community.wolfram.com/u/dimitrijseibert)\
**Post date:** [May 25, 2023, 1:52pm UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/3 "2023-05-25T13:52:18Z")

</div>

Thank you very much! But now the y-axis is on the right side and not on left. How can i fix this?

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [May 25, 2023, 2:03pm UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/4 "2023-05-25T14:03:21Z")

</div>

Try adding the option `ScalingFunctions`. Let’s say `list` holds your data, then

```
ListPlot[list, ScalingFunctions -> {"Reverse", None}]

```

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [May 25, 2023, 2:11pm UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/5 "2023-05-25T14:11:09Z")

</div>

You can use the `AxesOrigin` option.

---

<div class="post-metadata">

**Author:** ![dimitrijseibert](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dimitrijseibert](https://community.wolfram.com/u/dimitrijseibert)\
**Post date:** [May 30, 2023, 7:36am UTC](https://community.wolfram.com/t/flipping-the-x-axis/22122/6 "2023-05-30T07:36:18Z")

</div>

Thank you very much!
