Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.22 KB | None | 0 0
  1. legends = {"Pepsiman","Limit Cut","CC + BJ","Time Stop + Inception","Wormhole","Perfect Alex"};
  2. data = {{{0.00, 0.01},{0.01, 0.03},{0.03, 0.04},{0.04, 0.06},{0.06, 0.08},{0.08, 0.09},{0.09, 0.11},{0.11, 0.12},{0.12, 0.14},{0.14, 0.16},{0.16, 0.17},{0.17, 0.19},{0.19, 0.21},{0.21, 0.22},{0.22, 0.25},{0.25, 0.26},{0.26, 0.28},{0.28, 0.29},{0.29, 0.31},{0.31, 0.33},{0.33, 0.34},{0.34, 0.36},{0.36, 0.37},{0.37, 0.39},{0.39, 0.41},{0.41, 0.43},{0.43, 0.45},{0.45, 0.48},{0.48, 0.49},{0.49, 0.51},{0.51, 0.53},{0.53, 0.55},{0.55, 0.58},{0.58, 0.59},{0.59, 0.62},{0.62, 0.64},{0.64, 0.66},{0.66, 0.67},{0.67, 0.70},{0.70, 0.72},{0.72, 0.74},{0.74, 0.76},{0.76, 0.77},{0.77, 0.80},{0.80, 0.83},{0.83, 0.86},{0.86, 0.87},{0.87, 0.90},{0.90, 0.91},{0.91, 0.93},{0.93, 0.96},{0.96, 0.99},{0.99, 1.00},{1.00, 1.02},{1.02, 1.03},{1.03, 1.06},{1.06, 1.08},{1.08, 1.12},{1.12, 1.13},{1.13, 1.14},{1.14, 1.16},{1.16, 1.18},{1.18, 1.21},{1.21, 1.24},{1.24, 1.26},{1.26, 1.27},{1.27, 1.30},{1.30, 1.32},{1.32, 1.36},{1.36, 1.39},{1.39, 1.42},{1.42, 1.44},{1.44, 1.46},{1.46, 1.49},{1.49, 1.52},{1.52, 1.53},{1.53, 1.57},{1.57, 1.59},{1.59, 1.62},{1.62, 1.63},{1.63, 1.65},{1.65, 1.68},{1.68, 1.69},{1.69, 1.72},{1.72, 1.75},{1.75, 1.78},{1.78, 1.80},{1.80, 1.81},{1.81, 1.82},{1.82, 1.84},{1.84, 1.85},{1.85, 1.89},{1.89, 1.92},{1.92, 1.94},{1.94, 1.98},{1.98, 2.01},{2.01, 2.03},{2.03, 2.06},{2.06, 2.10},{2.10, 2.13},{2.13, 2.17},{2.17, 2.19},{2.19, 2.20},{2.20, 2.23},{2.23, 2.27},{2.27, 2.30},{2.30, 2.31},{2.31, 2.35},{2.35, 2.39},{2.39, 2.42},{2.42, 2.46},{2.46, 2.48},{2.48, 2.51},{2.56, 2.59},{2.59, 2.63},{2.63, 2.67},{2.67, 2.70},{2.75, 2.76},{2.81, 2.82},{2.82, 2.84},{2.84, 2.87},{2.87, 2.89},{2.89, 2.90},{2.90, 2.92},{2.92, 2.95},{2.95, 2.98},{3.03, 3.04},{3.09, 3.10},{3.10, 3.12},{3.12, 3.13},{3.13, 3.14},{3.14, 3.17},{3.17, 3.19},{3.19, 3.20},{3.20, 3.24},{3.24, 3.27},{3.27, 3.29},{3.29, 3.32},{3.46, 3.47},{3.70, 3.74},{3.74, 3.76},{3.80, 3.82},{3.91, 3.93},{3.93, 3.96},{4.01, 4.03},{4.12, 4.14},{4.19, 4.23},{4.32, 4.36},{4.36, 4.38},{4.47, 4.49},{4.49, 4.52},{4.52, 4.54},{4.63, 4.67},{4.81, 4.82},{4.82, 4.84},{4.84, 4.88},{4.88, 4.89},{4.94, 4.95},{4.95, 4.99},{5.04, 5.05},{5.11, 5.12},{5.12, 5.13},{5.13, 5.15},{5.24, 5.25},{5.30, 5.31},{5.41, 5.43},{5.53, 5.56},{5.61, 5.62},{5.62, 5.66},{5.81, 5.84},{5.89, 5.91},{5.91, 5.92},{5.98, 5.99},{5.99, 6.03},{6.12, 6.14},{6.14, 6.17},{6.17, 6.19},{6.19, 6.20},{6.20, 6.24},{6.24, 6.25},{6.41, 6.43},{6.43, 6.44},{6.44, 6.46},{6.50, 6.54},{6.58, 6.60},{6.60, 6.62},{6.71, 6.72},{6.87, 6.91},{7.01, 7.04},{7.09, 7.11},{7.20, 7.23},{7.23, 7.24},{7.24, 7.26},{7.35, 7.37},{7.55, 7.58},{7.68, 7.69},{7.69, 7.71},{8.06, 8.08},{8.24, 8.26},{8.26, 8.28},{8.28, 8.29},{8.52, 8.54},{8.76, 8.77},{8.77, 8.80},{8.84, 8.87},{8.92, 8.93},{8.93, 8.94},{9.04, 9.05},{9.05, 9.06},{9.11, 9.12},{9.36, 9.38},{9.56, 9.57},{9.61, 9.65},{9.69, 9.71},{9.71, 9.72},{9.72, 9.73},{9.78, 9.79},{9.79, 9.80},{9.80, 9.84},{9.84, 9.85},{9.92, 9.93},{9.93, 9.95},{10.05, 10.06},{10.06, 10.07},{10.30, 10.32},{10.32, 10.35},{10.35, 10.38},{10.65, 10.68},{10.68, 10.72},{10.72, 10.73},{10.85, 10.86},{10.86, 10.88},{11.12, 11.13},{11.20, 11.21},{11.21, 11.24},{11.24, 11.25},{11.33, 11.34},{11.50, 11.52},{11.76, 11.78},{12.00, 12.04},{12.04, 12.06},{12.06, 12.07},{12.07, 12.09},{12.16, 12.19},{12.33, 12.34},{12.34, 12.36},{12.61, 12.62},{13.23, 13.24},{13.38, 13.40},{13.55, 13.59},{13.59, 13.63},{13.75, 13.76},{14.00, 14.03},{14.10, 14.14},{14.49, 14.50},{14.93, 14.95},{14.99, 15.01},{15.01, 15.04},{15.95, 15.96},{16.15, 16.18},{16.18, 16.19},{16.27, 16.29},{16.37, 16.40},{16.51, 16.52},{16.77, 16.80},{16.80, 16.84},{16.88, 16.91},{17.14, 17.16},{17.32, 17.36},{17.36, 17.37},{17.70, 17.73},{17.73, 17.75},{17.81, 17.83},{17.83, 17.86},{18.16, 18.18},{18.55, 18.56},{18.83, 18.84},{18.84, 18.88},{19.13, 19.14},{19.14, 19.15},{19.21, 19.23},{19.23, 19.27},{19.32, 19.34},{19.42, 19.45},{19.55, 19.56},{19.67, 19.69},{19.89, 19.93},{19.93, 19.94},{20.07, 20.10},{20.15, 20.17},{20.29, 20.30},{20.39, 20.40},{20.79, 20.82},{20.82, 20.84},{21.12, 21.14},{21.22, 21.25},{21.38, 21.42},{21.97, 21.99},{21.99, 22.01},{22.21, 22.21},{22.34, 22.35},{22.61, 22.62},{22.62, 22.64},{23.10, 23.12},{23.12, 23.16},{23.16, 23.19},{23.93, 23.95},{23.95, 23.98},{23.98, 24.00},{24.13, 24.13},{24.13, 24.17},{24.17, 24.18},{24.18, 24.20},{24.20, 24.22},{24.73, 24.76},{24.80, 24.84},{24.92, 24.93},{25.12, 25.15},{25.15, 25.19},{25.65, 25.68},{26.41, 26.43},{26.99, 27.02},{27.29, 27.30},{27.45, 27.47},{28.34, 28.35},{28.35, 28.37},{28.78, 28.81},{29.24, 29.25},{30.21, 30.23},{30.23, 30.24},{30.73, 30.76},{30.76, 30.78},{30.78, 30.79},{31.88, 31.88},{32.14, 32.15},{32.22, 32.25},{32.71, 32.74},{33.30, 33.30},{33.30, 33.32},{33.39, 33.42},{33.72, 33.73},{34.17, 34.19},{34.94, 34.96},{35.18, 35.18},{35.38, 35.39},{35.64, 35.67},{35.67, 35.68},{36.82, 36.82},{36.95, 36.96},{37.21, 37.22},{37.22, 37.24},{38.45, 38.46},{38.46, 38.49},{38.89, 38.91},{38.91, 38.94},{40.64, 40.67},{42.44, 42.46},{42.46, 42.50},{43.06, 43.06},{43.31, 43.33},{43.33, 43.34},{43.34, 43.38},{43.38, 43.39},{43.46, 43.47},{43.47, 43.49},{43.49, 43.51},{43.51, 43.54},{43.54, 43.57},{43.64, 43.65},{44.50, 44.52},{44.59, 44.62},{44.62, 44.63},{44.63, 44.65}},{{2.51, 2.56},{2.70, 2.75},{2.76, 2.81},{2.98, 3.03},{3.04, 3.09},{3.32, 3.37},{3.37, 3.41},{3.41, 3.46},{3.47, 3.52},{3.52, 3.56},{3.56, 3.61},{3.61, 3.66},{3.66, 3.70},{3.76, 3.80},{3.82, 3.86},{3.96, 4.01},{4.03, 4.07},{4.14, 4.19},{4.28, 4.32},{4.38, 4.42},{4.54, 4.58},{4.67, 4.71},{4.76, 4.81},{4.89, 4.94},{5.15, 5.19},{5.19, 5.24},{5.25, 5.30},{5.37, 5.41},{5.48, 5.53},{5.56, 5.61},{5.71, 5.76},{6.03, 6.08},{6.08, 6.12},{6.25, 6.31},{6.31, 6.35},{6.46, 6.50},{6.54, 6.58},{6.62, 6.66},{6.66, 6.71},{6.72, 6.76},{6.96, 7.01},{7.04, 7.09},{7.16, 7.20},{7.26, 7.31},{7.31, 7.35},{7.37, 7.41},{7.41, 7.46},{7.46, 7.50},{7.50, 7.55},{7.58, 7.63},{7.63, 7.68},{7.77, 7.81},{7.81, 7.86},{7.86, 7.90},{7.97, 8.01},{8.01, 8.06},{8.08, 8.13},{8.13, 8.17},{8.34, 8.39},{8.67, 8.71},{8.71, 8.76},{8.80, 8.84},{8.87, 8.92},{8.94, 8.99},{8.99, 9.04},{9.06, 9.11},{9.25, 9.30},{9.57, 9.61},{9.65, 9.69},{9.73, 9.78},{9.95, 10.00},{10.00, 10.05},{10.22, 10.26},{10.26, 10.30},{10.44, 10.48},{10.48, 10.53},{10.80, 10.85},{11.00, 11.05},{11.41, 11.46},{11.46, 11.50},{11.52, 11.56},{12.42, 12.47},{12.69, 12.74},{13.63, 13.67},{14.28, 14.33},{14.68, 14.73},{14.95, 14.99},{15.63, 15.68},{16.10, 16.15},{16.84, 16.88},{17.09, 17.14},{17.16, 17.20},{17.65, 17.70},{18.95, 18.99},{19.45, 19.50},{19.50, 19.55},{19.69, 19.74},{20.65, 20.69},{20.84, 20.88},{22.30, 22.34},{22.99, 23.03},{23.60, 23.64},{23.64, 23.68},{23.89, 23.93},{24.22, 24.27},{24.68, 24.73},{24.76, 24.80},{25.07, 25.12},{25.26, 25.31},{25.68, 25.73},{28.95, 29.00},{35.18, 35.23},{35.84, 35.88},{38.12, 38.16},{39.06, 39.10},{39.65, 39.69},{39.98, 40.02},{43.87, 43.91},{44.31, 44.35}},{{3.86, 3.91},{4.07, 4.12},{4.23, 4.28},{4.42, 4.47},{4.58, 4.63},{4.71, 4.76},{4.99, 5.04},{5.05, 5.11},{5.31, 5.37},{5.43, 5.48},{5.66, 5.71},{5.76, 5.81},{5.84, 5.89},{5.92, 5.98},{6.35, 6.41},{6.76, 6.82},{6.82, 6.87},{6.91, 6.96},{7.11, 7.16},{7.71, 7.77},{7.90, 7.97},{8.17, 8.24},{8.29, 8.34},{8.39, 8.45},{8.45, 8.52},{8.54, 8.60},{8.60, 8.67},{9.12, 9.18},{9.18, 9.25},{9.30, 9.36},{9.38, 9.44},{9.44, 9.50},{9.50, 9.56},{9.85, 9.92},{10.07, 10.14},{10.14, 10.22},{10.38, 10.44},{10.53, 10.59},{10.59, 10.65},{10.73, 10.80},{10.88, 10.94},{10.94, 11.00},{11.05, 11.12},{11.13, 11.20},{11.25, 11.33},{11.34, 11.41},{11.56, 11.63},{11.63, 11.70},{11.70, 11.76},{11.78, 11.86},{11.86, 11.93},{11.93, 12.00},{12.09, 12.16},{12.19, 12.27},{12.27, 12.33},{12.36, 12.42},{12.47, 12.54},{12.54, 12.61},{12.62, 12.69},{12.74, 12.80},{12.80, 12.87},{12.87, 12.94},{12.94, 13.01},{13.01, 13.08},{13.08, 13.14},{13.14, 13.23},{13.24, 13.32},{13.32, 13.38},{13.40, 13.48},{13.48, 13.55},{13.67, 13.75},{13.76, 13.84},{13.84, 13.92},{13.92, 14.00},{14.03, 14.10},{14.14, 14.22},{14.22, 14.28},{14.33, 14.40},{14.40, 14.49},{14.50, 14.57},{14.73, 14.79},{14.79, 14.85},{14.85, 14.93},{15.16, 15.24},{15.24, 15.32},{15.42, 15.51},{15.51, 15.58},{15.58, 15.63},{15.68, 15.76},{15.88, 15.95},{15.96, 16.03},{16.03, 16.10},{16.19, 16.27},{16.29, 16.37},{17.04, 17.09},{17.37, 17.43},{17.43, 17.52},{17.75, 17.81},{17.86, 17.96},{18.09, 18.16},{18.18, 18.24},{18.24, 18.33},{18.33, 18.40},{18.40, 18.47},{18.47, 18.55},{18.56, 18.65},{18.65, 18.71},{18.88, 18.95},{18.99, 19.07},{19.07, 19.13},{19.15, 19.21},{19.27, 19.32},{19.34, 19.42},{19.74, 19.81},{19.81, 19.89},{20.10, 20.15},{20.17, 20.22},{20.22, 20.29},{20.30, 20.39},{20.69, 20.79},{21.14, 21.22},{21.42, 21.48},{21.90, 21.97},{22.01, 22.08},{22.21, 22.30},{22.91, 22.99},{23.03, 23.10},{23.19, 23.24},{23.24, 23.32},{23.32, 23.38},{23.38, 23.45},{23.45, 23.53},{23.53, 23.60},{23.68, 23.74},{24.84, 24.92},{25.19, 25.26},{25.31, 25.36},{25.49, 25.57},{25.57, 25.65},{25.85, 25.91},{26.33, 26.41},{26.43, 26.50},{26.50, 26.57},{26.57, 26.66},{26.78, 26.85},{27.47, 27.57},{28.12, 28.19},{28.81, 28.88},{28.88, 28.95},{29.16, 29.24},{29.43, 29.49},{29.78, 29.84},{29.84, 29.92},{29.92, 29.99},{29.99, 30.09},{30.24, 30.32},{30.32, 30.39},{30.39, 30.46},{30.61, 30.67},{30.67, 30.73},{30.79, 30.86},{31.45, 31.53},{31.88, 31.94},{31.94, 32.02},{32.15, 32.22},{32.25, 32.32},{33.09, 33.17},{33.17, 33.23},{33.23, 33.30},{33.32, 33.39},{33.73, 33.81},{33.81, 33.88},{33.88, 33.93},{34.08, 34.17},{34.34, 34.39},{34.39, 34.47},{34.96, 35.04},{37.24, 37.30},{37.59, 37.65},{38.37, 38.45},{38.64, 38.69},{39.25, 39.30},{40.67, 40.75},{40.75, 40.82},{41.21, 41.28},{41.79, 41.86},{42.39, 42.44},{43.18, 43.26},{43.26, 43.31},{43.39, 43.46},{43.57, 43.64},{44.52, 44.59},{44.65, 44.73},{44.73, 44.81}},{{14.57, 14.68},{15.04, 15.16},{15.32, 15.42},{15.76, 15.88},{16.40, 16.51},{16.52, 16.64},{16.64, 16.77},{16.91, 17.04},{17.20, 17.32},{17.52, 17.65},{17.96, 18.09},{18.71, 18.83},{19.56, 19.67},{19.94, 20.07},{20.40, 20.52},{20.52, 20.65},{20.88, 20.99},{20.99, 21.12},{21.25, 21.38},{21.63, 21.75},{22.08, 22.21},{22.49, 22.61},{22.64, 22.76},{24.00, 24.13},{24.55, 24.68},{25.36, 25.49},{25.73, 25.85},{25.91, 26.04},{26.66, 26.78},{27.16, 27.29},{27.57, 27.69},{28.37, 28.49},{28.66, 28.78},{30.09, 30.21},{31.33, 31.45},{32.02, 32.14},{32.32, 32.44},{32.44, 32.56},{36.82, 36.95},{38.94, 39.06},{39.30, 39.40},{40.52, 40.64},{41.28, 41.40},{43.06, 43.18},{44.18, 44.31}},{{21.48, 21.63},{21.75, 21.90},{22.35, 22.49},{22.76, 22.91},{23.74, 23.89},{24.27, 24.41},{24.41, 24.55},{24.93, 25.07},{26.04, 26.18},{26.18, 26.33},{26.85, 26.99},{27.02, 27.16},{27.30, 27.45},{27.69, 27.83},{27.83, 27.98},{27.98, 28.12},{28.19, 28.34},{28.49, 28.66},{29.00, 29.16},{29.25, 29.43},{29.49, 29.64},{29.64, 29.78},{30.46, 30.61},{30.86, 31.04},{31.04, 31.18},{31.18, 31.33},{31.73, 31.88},{32.56, 32.71},{32.95, 33.09},{33.42, 33.56},{33.56, 33.72},{33.93, 34.08},{34.19, 34.34},{35.04, 35.18},{35.23, 35.38},{35.68, 35.84},{35.88, 36.02},{36.28, 36.43},{36.43, 36.57},{37.30, 37.44},{37.44, 37.59},{38.49, 38.64},{39.10, 39.25},{39.69, 39.83},{39.83, 39.98},{40.82, 40.97},{41.40, 41.54},{44.35, 44.50}},{{31.53, 31.73},{32.74, 32.95},{34.47, 34.68},{34.68, 34.94},{35.39, 35.64},{36.02, 36.28},{36.57, 36.82},{36.96, 37.21},{37.65, 37.85},{37.85, 38.12},{38.16, 38.37},{38.69, 38.89},{39.40, 39.65},{40.02, 40.24},{40.24, 40.52},{40.97, 41.21},{41.54, 41.79},{41.86, 42.13},{42.13, 42.39},{42.50, 42.77},{42.77, 43.06},{43.65, 43.87},{43.91, 44.18},{44.81, 45.05},{45.05, 45.34},{45.34, 45.62}}};
  3. gridLines = {{{43.06, Directive[Red, Thick]},{45.62, Directive[Red, Thick]},0.00,9.65,27.30}, None};
  4.  
  5. NumberLinePlot[
  6. Interval @@ # & /@ data, PlotLegends -> legends,
  7. PlotStyle -> Directive[Thickness[0.01], CapForm[None]],
  8. AspectRatio -> 1 / 5, ImageSize -> 1000
  9. ] /. Point[a_] -> Point[{-100, 1}]
  10.  
  11. filling = Join[{{1 -> Axis}}, Table[{n -> {n - 1}}, {n, 2, Length[data]}]];
  12. windowSize = 4;
  13. smooth[fn_] := MovingAverage[Table[If[fn, 1, 0], {x, 0 - windowSize/2, Max[data] + windowSize/2, 0.01}], 100 windowSize];
  14. envelope = smooth[0 <= x < Max[data]];
  15. ParallelMap[smooth[Or @@ (#[[1]] <= x < #[[2]] & /@ #)] / envelope &, data];
  16. ListLinePlot[
  17. Accumulate[%], Filling -> filling, DataRange -> {0, Max[data]},
  18. PlotRange -> All, PlotLegends -> legends,
  19. GridLines -> gridLines, GridLinesStyle -> Dashed,
  20. PlotLabel -> "Time spent in pull wiping to phase x",
  21. AxesLabel -> {"Hours in pull", "Ratio"},
  22. ImageSize -> 1000
  23. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement