Tag Info

New answers tagged

3

Junho answers the specific question re the outline of the month grid. Here I make a few minor changes (to remove dependence on the Calendar package by using V9 date/time functions) in ragfield's code (available at LunchTime Playground) which provides a full-fledged calendar heat map. First few lines on sources: dayindex = {Sunday -> 1, Monday -> ...


3

This is your codes. days = <|DayRange[DateObject[{2014, 10, 5}], DateObject[{2014, 10, 11}]] // Map[DayName] // MapIndexed[#1 -> First[#2] &]|>; october2014 = <| DayRange[DateObject[{2014, 10, 1}], DateObject[{2014, 10, 31}]] // MapIndexed[#1 -> {days[DayName[#1]], -1 - Quotient[-days[DayName[#1]] + ...


0

I dont realy get what result you expect from your code. Do you want to create a ListContourPlot or a ListPlot3D? My best guess: ListPlot3D[testData[[All, 2 ;;]], AxesLabel -> {"Bins", None, "%"}, PlotRange -> Full, ColorFunction -> "Rainbow", Ticks -> {Automatic, Transpose[{Range@Length@testData, DateString[#, {"Year", " ", "Month", ...


2

Some sample data: r = # - #[[1]] &@(Range[##, 3690] & @@ (AbsoluteTime[{#, {"Day", "Month", "YearShort"}}] & /@ {"05/01/14", "05/03/14"})); hours = N[r/3600]; data = Transpose[{hours, hours^2}]; Integrate: f = Interpolation@data; Integrate[f@x, {x, 0, Last@hours}] ...


10

There's a couple ways to do this: data = {{{2014, 8, 4, 10, 36, 0.}, 257.}, {{2014, 8, 4, 16, 28, 0.}, 385.}, {{2014, 8, 4, 22, 53, 0.}, 176.}, {{2014, 8, 5, 6, 52, 0.}, 148.}, {{2014, 8, 5, 11, 19, 0.}, 192.}}; 1) Convert dates to absolute times: data[[All, 1]] = AbsoluteTime /@ data[[All, 1]]; f1 = Interpolation@data; ...



Top 50 recent answers are included