Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • $\begingroup$ Are you using 10.1? In 10.0.2 this throws errors. wd[[All, 1]] is not valid. $\endgroup$ Commented Apr 12, 2015 at 21:07
  • $\begingroup$ @MrWizard, i am using version 9.0.1.0 (windows 8 64bit). $\endgroup$ Commented Apr 12, 2015 at 21:08
  • $\begingroup$ It looks like we have an incompatible change. Do you have time to Chat? $\endgroup$ Commented Apr 12, 2015 at 21:10
  • $\begingroup$ @kguler when trying wd = WeatherData["WMO89009", "Temperature", {"Jun. 1, 2014", "Dec. 1, 2014", "Day"}]; proposed solution seems not to work (see missing grid line between week 6 and 7 and gap in week 8). It looks like that ticks and GridLines are dependent on data being systematically available for Sundays and Wednesday. Or am I missing something ? $\endgroup$ Commented Apr 14, 2015 at 13:27
  • $\begingroup$ @penguin77, you are right; I assumed there are no gaps in the data. If there are gaps ticks and gridlines can be off, so can the splitting into weeks. A more robust way would be to use DateRange of the data to identify Wednesday and Sunday dates:, e.g., wednesdays = Pick[DateRange[wd[[1, 1]], wd[[-1, 1]]], DayName /@ DateRange[wd[[1, 1]], wd[[-1, 1]]], Wednesday]; sundays = Pick[DateRange[wd[[1, 1]], wd[[-1, 1]]], DayName /@ DateRange[wd[[1, 1]], wd[[-1, 1]]], Sunday]; $\endgroup$ Commented Apr 14, 2015 at 13:51