Skip to main content
Post Undeleted by Artes
added 575 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

Here is a bit simplerdifferent solution with Reverse[data]

d = Transpose@data;
ListLinePlot[ Reverse[data]Transpose@{Reverse@d[[1]], d[[2]]}, 
              Ticks -> {Transpose@{Range[20, 100, 10], Range[100, 20, -10]} // Transpose, Automatic}]

enter image description here

If we don't like to specify in advance ranges of ticks, here is another, more general approach :

ListLinePlot[ Transpose @ { Reverse@ d[[1]], d[[2]]}, 
              Ticks -> {Transpose @ { Range[ Min[#], Max[#], 
                                     10^(Ceiling@Log[10, (Max[#] - Min[#])] - 1)] &@d[[1]], 
                                     Range[Max[#], Min[#], 
                                     -10^(Ceiling@Log[10, (Max[#] - Min[#])] - 1)] & @ d[[1]]},
                                      Automatic}]

Here is a bit simpler solution with Reverse[data]

ListLinePlot[ Reverse[data],  
              Ticks -> {{Range[20, 100, 10], Range[100, 20, -10]} // Transpose, Automatic}]

enter image description here

Here is a bit different solution

d = Transpose@data;
ListLinePlot[ Transpose@{Reverse@d[[1]], d[[2]]}, 
              Ticks -> {Transpose@{Range[20, 100, 10], Range[100, 20, -10]}, Automatic}]

enter image description here

If we don't like to specify in advance ranges of ticks, here is another, more general approach :

ListLinePlot[ Transpose @ { Reverse@ d[[1]], d[[2]]}, 
              Ticks -> {Transpose @ { Range[ Min[#], Max[#], 
                                     10^(Ceiling@Log[10, (Max[#] - Min[#])] - 1)] &@d[[1]], 
                                     Range[Max[#], Min[#], 
                                     -10^(Ceiling@Log[10, (Max[#] - Min[#])] - 1)] & @ d[[1]]},
                                      Automatic}]
Post Deleted by Artes
Post Undeleted by Artes
added 88 characters in body
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

ThereHere is no need for options if you make use ofa bit simpler solution with Reverse[data]

ListLinePlot[Reverse[data]]ListLinePlot[ Reverse[data],  
              Ticks -> {{Range[20, 100, 10], Range[100, 20, -10]} // Transpose, Automatic}]

enter image description hereenter image description here

There is no need for options if you make use of Reverse[data]

ListLinePlot[Reverse[data]]

enter image description here

Here is a bit simpler solution with Reverse[data]

ListLinePlot[ Reverse[data],  
              Ticks -> {{Range[20, 100, 10], Range[100, 20, -10]} // Transpose, Automatic}]

enter image description here

Post Deleted by Artes
Source Link
Artes
  • 57.9k
  • 13
  • 159
  • 247

There is no need for options if you make use of Reverse[data]

ListLinePlot[Reverse[data]]

enter image description here