Update iterator properly

This seems to fix #1266
This commit is contained in:
Will Kearney 2017-12-05 13:12:10 -05:00
parent 4bbe367aab
commit eb6c15caba

View File

@ -264,7 +264,7 @@ function _subplot_setup(plt::Plot, d::KW, kw_list::Vector{KW})
# extract subplot/axis attributes from kw and add to sp_attr
attr = KW()
for (k,v) in kw
for (k,v) in collect(kw)
if haskey(_subplot_defaults, k) || haskey(_axis_defaults_byletter, k)
attr[k] = pop!(kw, k)
end