Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. pro sample_plot2
  2.  
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. ; x [1, 24] h の範囲で、
  5. ; y 2019-09-01 (日) 東京の気温を plot する
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. saveDirName = '~/Downloads/'
  9. saveFileName = 'figure_sample_plot2.png'
  10.  
  11. hour = dindgen(24, start = 1, increment = 1)
  12. temperature = [$
  13. 26.1, 25.7, 25.5, 25.5, 25.4, 25.7,$
  14. 25.9, 26.6, 28.8, 29.3, 30.3, 29.6,$
  15. 30.6, 31.5, 28.9, 30.4, 29.6, 29.2,$
  16. 28.4, 27.6, 27.1, 26.2, 25.7, 25.2]
  17.  
  18. plt = plot(hour, temperature,$
  19. ; x
  20. xtitle = 'Hour [ JST ]',$
  21. xrange = [0, 25],$
  22. xtickvalues = [0, 6, 12, 18, 24],$
  23. xtickname = ['0 h', '6 h', '12 h', '18 h', '24 h'],$
  24. xminor = 5,$
  25. ; y
  26. ytitle = 'Temperature [$ ^{\circ}C $]',$
  27. yrange = [20, 35],$
  28. ytickvalues = [20, 25, 30, 35],$
  29. ytickname = ytickvalues,$
  30. yminor = 4,$
  31. ; title
  32. title = '2019-09-01 (Sun) @Tokyo',$
  33. ; linestyle
  34. linestyle = 2,$ ; dashed line
  35. thick = 2,$
  36. color = 'black',$
  37. ; symbol
  38. symbol = 'o',$
  39. sym_size = 1.0,$
  40. sym_color = 'black',$
  41. sym_filled = 1,$
  42. ; font
  43. font_size = 14,$
  44. font_name = 'Helvetica',$
  45. ; option
  46. /buffer)
  47. plt.save, saveDirName + saveFileName
  48.  
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement