Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. pListCurrYr = {{{2017, 1, 3, 0, 0, 0.}, 1.67}
  2. , {{2017, 1, 4, 0, 0, 0.}, 1.66}, ...}; (* 3 mos. of data *)
  3.  
  4. DateListPlot[
  5. Tooltip[pListCurrYr]
  6. , PlotTheme -> "Classic"
  7. , AspectRatio -> 0.8
  8. , PlotLabel -> Style[
  9. Framed[
  10. "CME Block Cheese Prices from "
  11. <> DateString[
  12. pListCurrYr[[1, 1]], {"MonthName", " ", "DayShort"}] <> " to "
  13. <> DateString[
  14. pListCurrYr[[Length[pListCurrYr], 1]], {"MonthName", " ",
  15. "DayShort", ", ", "Year"}]
  16. ]
  17. , "Subsection"
  18. ]
  19. , Filling -> Bottom
  20. , PlotMarkers -> {[FilledDiamond], 18}
  21. , PlotRange -> {Full, {1.00, 2.00}}
  22. ]
  23.  
  24. DateListPlot[
  25. Tooltip[#, {DateString[#[[1]],
  26. {"Month", "/", "Day", "/", "YearShort"}], #[[2]]}] & /@
  27. pListCurrYr,
  28. PlotTheme -> "Classic",
  29. AspectRatio -> 0.8,
  30. PlotLabel ->
  31. Style[Framed[
  32. "CME Block Cheese Prices from " <>
  33. DateString[pListCurrYr[[1, 1]],
  34. {"MonthName", " ", "DayShort"}] <> " to " <>
  35. DateString[pListCurrYr[[Length[pListCurrYr], 1]],
  36. {"MonthName", " ", "DayShort", ", ", "Year"}]], "Subsection"],
  37. Filling -> Bottom,
  38. PlotMarkers -> {◆, 18},
  39. PlotRange -> {Full, {1.00, 2.00}}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement