Advertisement
Guest User

Untitled

a guest
Feb 21st, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. # -- [ Colors ] --
  2. skitour = "#006EB8"
  3. mycolor = skitour
  4.  
  5. # -- [ Scaling ] --
  6. # SKITOUR
  7. skiKM = 75.2
  8. skiHM = 0.376
  9. myscaleKM = skiKM
  10. myscaleHM = skiHM
  11.  
  12. file = 'hoehe.dat'
  13.  
  14. reset
  15. unset key
  16. stats file u 3:2 nooutput
  17. set xrange [STATS_min_x:STATS_max_x]
  18. set yrange [STATS_min_y - 30:STATS_max_y]
  19. set y2range [STATS_min_y - 30:STATS_max_y]
  20.  
  21. # -- [ Labels ] --
  22. set label 2 "Brochkogeljoch (3423m)" at 5.00,3462 point pointtype 7 offset -0.5,0.3 tc rgb "#006EB8" right
  23. set label 3 "Skidepot (3705m)" at 7.297,3705 point pointtype 7 offset -0.5,0.3 tc rgb "#006EB8" right
  24. set label 4 "Wildspitze (3770m)" at STATS_pos_max_y,STATS_max_y point pointtype 7 offset 0.3,0.3 tc rgb "#006EB8"
  25. set label 5 "Mitterkarjoch (3468m)" at 8.821,3509 point pointtype 7 offset 0.3,0.3 tc rgb "#006EB8"
  26. set label 6 "Breslauer Hütte (2840m)" at 12.075,2896 point pointtype 7 offset 0.3,0.3 tc rgb "#006EB8"
  27.  
  28. # -- [ Terminal ] --
  29. w = floor(STATS_max_x * 75.2)
  30. h = floor((STATS_max_y - STATS_min_y) * 0.376)
  31. set terminal pngcairo size w,h enhanced font 'Cambria,15'
  32. set output 'hoehenprofil.png'
  33. set multiplot
  34.  
  35. # -- [ Grid and Tics ] --
  36. set xtics 5
  37. #set ytics 200
  38. #set ytics format ""
  39. unset border
  40. unset xtics
  41. unset ytics
  42. unset x2tics
  43. set y2tics border 200
  44. set format x "%g km"
  45. set format y2 "%g m"
  46. set border 8 lt 0 lw 3 lc rgb "black"
  47. #set ytic scale 0
  48. set xtics
  49. set grid y2 lt 0 lw 3 lc rgb "black"
  50.  
  51. set style fill transparent solid 0.45 noborder
  52.  
  53. # Plot the regular graph
  54. plot file u 3:2 w filledcurve x1 lc rgb "black" , \
  55. file u 3:2 w lines lt 1 lw 5 lc rgb mycolor
  56.  
  57. # calculate the size of the area to hide (left of the summit)
  58. s = (STATS_pos_max_y / STATS_max_x) - 0.1
  59. set size s,1
  60. unset grid
  61. unset xtics
  62. unset y2tics
  63. set style fill solid noborder
  64. set nolabel
  65. set noborder
  66. ###
  67. # UNCOMMENT THIS LINE TO APPLY THE (flawed) OVERLAY
  68. ###
  69. #plot [0:STATS_pos_max_y] file u 3:2 w filledcurve x2 lc rgb "white"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement