aag202
(Abdullah Althobity)
August 29, 2018, 4:15am
1
Hi all,
I am trying to plot a diagram on x-axis and directed to the left. which means the diagram starts from zero to positive 15 where zero in the right side and all numbers to 15 is on the left.
I already did it but the numbers appeared on negative values.
if any one could give a thought it would be appreciated.
Cheers
to be helped.nb (169 KB)
You can assign your choice of tick labels with the Ticks option:
Ticks -> {Table[{i, -i}, {i, -15, 4}], Automatic}
hdolhaine
(Hans Dolhaine)
August 29, 2018, 6:45am
3
Have a look at
Plot[x^2, {x, -5, 0},
Ticks -> {Table[{-j, j}, {j, 0, 5, .5}], Automatic}]
here is specifiesd where to put ticks on the negative axis and what they should lool like. The effect is the function “drawn to the left”
neils
(Neil Singer)
August 29, 2018, 10:25am
4
Use ScalingFunctions:
Plot[x^2, {x, 0, 10}, ScalingFunctions -> {"Reverse", None}]
Regards
Neil
aag202
(Abdullah Althobity)
August 30, 2018, 1:07am
5
Thank you for your reply I did not know how to use it
aag202
(Abdullah Althobity)
August 30, 2018, 1:09am
6
yes this works it makes the values increases in positive and directed to the left
thank you very much
aag202
(Abdullah Althobity)
August 30, 2018, 1:10am
7
Exactly what I need.
now the spectrum in positive as it should be.
appreciated