Merge pull request #1282 from wkearn/wsk/scale-fix

Update iterator properly in _subplot_setup
This commit is contained in:
Michael Krabbe Borregaard 2017-12-05 20:44:08 +01:00 committed by GitHub
commit df63530b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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