Guest User

age_subj.plt

a guest
Jul 21st, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. set terminal pngcairo dashed size 970,600
  2. set output "age-subj.png"
  3. set title "Pontuação por idade por disciplina."
  4. set ylabel "nota normalizada"
  5. set xlabel "idade (anos)"
  6. por = "hist_age_por.txt"
  7. mat = "hist_age_mat.txt"
  8. inf = "hist_age_inf.txt"
  9. atu = "hist_age_atu.txt"
  10. lpor(x) = py0 + pm*x
  11. lmat(x) = my0 + mm*x
  12. linf(x) = iy0 + im*x
  13. latu(x) = ay0 + am*x
  14. fit lpor(x) por using 1:3 via py0, pm
  15. fit lmat(x) mat using 1:3 via my0, mm
  16. fit linf(x) inf using 1:3 via iy0, im
  17. fit latu(x) atu using 1:3 via ay0, am
  18. cpor = "brown"
  19. cmat = "dark-green"
  20. cinf = "blue"
  21. catu = "black"
  22. set label "Português" at first 17, first 0.75 textcolor rgb cpor
  23. set label "Matemática" at first 17, first 0.54 textcolor rgb cmat
  24. set label "Informática" at first 17, first 0.43 textcolor rgb cinf
  25. set label "Atualidades" at first 17, first 0.66 textcolor rgb catu
  26. set key off
  27. plot por using 1:3 lt -1 lc rgb cpor with lines, \
  28. por using 1:3:5 lt -1 lc rgb cpor with yerrorbars, \
  29. lpor(x) lt 2 lw 3 lc rgb cpor, \
  30. mat using 1:3 lt -1 lc rgb cmat with lines, \
  31. mat using 1:3:5 lt -1 lc rgb cmat with yerrorbars, \
  32. lmat(x) lt 2 lw 3 lc rgb cmat, \
  33. inf using 1:3 lt -1 lc rgb cinf with lines, \
  34. inf using 1:3:5 lt -1 lc rgb cinf with yerrorbars, \
  35. linf(x) lt 2 lw 3 lc rgb cinf, \
  36. atu using 1:3 lt -1 lc rgb catu with lines, \
  37. atu using 1:3:5 lt -1 lc rgb catu with yerrorbars, \
  38. latu(x) lt 2 lw 3 lc rgb catu
  39.  
Advertisement
Add Comment
Please, Sign In to add comment