From 47b5430b34b62a458aa4187579a6e94b72f3ff85 Mon Sep 17 00:00:00 2001 From: Yakir Luc Gagnon <12.yakir@gmail.com> Date: Wed, 6 Dec 2017 11:02:07 +0100 Subject: [PATCH] Update examples.jl Added an example for a `heatmap` with a `DateTime` axis. --- src/examples.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/examples.jl b/src/examples.jl index e43fa6fe..62634857 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -415,6 +415,17 @@ attribute. The default framestyle is `:axes`. ticks = -2:2) end)] ), +PlotExample("Heatmap with DateTime", +""" +Parse `DateTime` correctly when used in the axes of a `heatmap` plot. +""", + [:(begin + x = DateTime(2001):Dates.Year(1):DateTime(2005) + y = 1:5 + z = rand(5,5) + heatmap(x, y, z, title = "Heatmap with DateTime") + end)] +), ]