Update examples.jl

Added an example for a `heatmap` with a `DateTime` axis.
This commit is contained in:
Yakir Luc Gagnon 2017-12-06 11:02:07 +01:00 committed by GitHub
parent 7f231057fd
commit 47b5430b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]
),
]