Update examples.jl
Added an example for a `heatmap` with a `DateTime` axis.
This commit is contained in:
parent
7f231057fd
commit
47b5430b34
@ -415,6 +415,17 @@ attribute. The default framestyle is `:axes`.
|
|||||||
ticks = -2:2)
|
ticks = -2:2)
|
||||||
end)]
|
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)]
|
||||||
|
),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user