Merge pull request #2133 from yha/dict-recipe

Recipe for plotting dicts
This commit is contained in:
Yuval 2019-08-14 16:36:07 +03:00 committed by GitHub
commit ae4031b993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,7 +355,9 @@ end
end
end
# Dicts: each entry is a data point (x,y)=(key,value)
@recipe f(d::AbstractDict) = collect(keys(d)), collect(values(d))
# function without range... use the current range of the x-axis