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
+2
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