plot.mvc 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. SimpleAttribute String {
  2. name = "String"
  3. }
  4. SimpleAttribute Boolean {
  5. name = "Boolean"
  6. }
  7. SimpleAttribute Float {
  8. name = "Float"
  9. }
  10. Class Plot {
  11. name = "Plot"
  12. title : String
  13. legend : Boolean
  14. }
  15. Class Dataset {
  16. name = "Dataset"
  17. legend : String
  18. color : String
  19. linestyle : String
  20. }
  21. Class Datapoint {
  22. name = "Datapoint"
  23. x : Float
  24. y : Float
  25. }
  26. Class Axis {
  27. name = "Axis"
  28. name : String
  29. unit : String
  30. lim_low? : Float
  31. lim_high? : Float
  32. }
  33. Class XAxis : Axis {
  34. name = "XAxis"
  35. }
  36. Class YAxis : Axis {
  37. name = "YAxis"
  38. }
  39. Association x (Plot, XAxis) {
  40. name = "x"
  41. }
  42. Association y (Plot, YAxis) {
  43. name = "y"
  44. }
  45. Association data (Plot, Dataset) {
  46. name = "data"
  47. }
  48. Association point (Dataset, Datapoint) {
  49. name = "point"
  50. }