Message Boards Message Boards

0
|
1404 Views
|
5 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Flipping the x-axis

Posted 11 months ago

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}..........}
POSTED BY: D S
5 Replies
Posted 11 months ago

Thank you very much!

POSTED BY: D S
Posted 11 months ago

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

ListPlot[list, ScalingFunctions -> {"Reverse", None}]
POSTED BY: Eric Rimbey
Posted 11 months ago

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

POSTED BY: D S
Posted 11 months ago

You can use the AxesOrigin option.

POSTED BY: Eric Rimbey

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

ListLinePlot[data, ScalingFunctions -> {"Reverse", None}]
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract