Guest User

Untitled

a guest
Dec 14th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. XY = Table[{i, Sin[i]}, {i, -10, 10, 0.5}];
  2.  
  3. DoubleXAxisPlotExample[XY : {{_?NumberQ, _?NumberQ} ..}] :=
  4. Overlay[{
  5. ListLinePlot[XY,
  6. ImagePadding -> 25,
  7. Frame -> True,
  8. FrameTicks -> {{All, None}, {All, None}},
  9. PlotRange -> All],
  10. ListLinePlot[Transpose[{Range[Length[XY]], Part[XY, All, 2]}],
  11. ImagePadding -> 25,
  12. Frame -> True,
  13. FrameTicks -> {{All, None}, {None, All}},
  14. PlotRange -> All]
  15. }];
  16.  
  17. XY = Table[{i, 100000*Sin[i]}, {i, -10, 10, 0.5}];
Add Comment
Please, Sign In to add comment