Recipe for plotting dicts as bars.
This commit is contained in:
parent
e27526992d
commit
f1cbeb549c
@ -355,7 +355,12 @@ end
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Dicts with Real values are plotted as bars
|
||||||
|
|
||||||
|
@recipe function f(d::AbstractDict{T,<:Real}) where T
|
||||||
|
seriestype --> :bar
|
||||||
|
x, y = collect(keys(d)), collect(values(d))
|
||||||
|
end
|
||||||
|
|
||||||
# function without range... use the current range of the x-axis
|
# function without range... use the current range of the x-axis
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user