Skip to main content
2 of 8
added 30 characters in body
kglr
  • 400.5k
  • 18
  • 488
  • 929
wd = WeatherData["SanDiego", "Temperature", {"Jan. 1, 2014", "Aug. 1, 2014", "Day"}];
wednesdays = Pick[wd, DayName /@ wd[[All, 1]], Wednesday];
sundays = Pick[wd[[All, 1]], DayName /@ wd[[All, 1]], Sunday];

ticks = MapIndexed[{#, Rotate["Week " <> ToString[First@#2], Pi/2]} &,
                   wednesdays[[All, 1]]];

DateListPlot[wd, FrameTicks -> {ticks, Automatic, None, None}, 
 GridLines -> {sundays, None}, ImageSize -> 600, Joined -> True, 
 Epilog -> {Red, PointSize[Medium], Point[wednesdays]}]

enter image description here

kglr
  • 400.5k
  • 18
  • 488
  • 929