Merge pull request #2028 from shipengcheng1230/master

fix gr_display (close #2026)
This commit is contained in:
Daniel Schwabeneder 2019-05-12 19:34:32 +02:00 committed by GitHub
commit 4270ac80fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -860,7 +860,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
legendn += 1
if typeof(series[:label]) <: Array
legendi += 1
lab = series[:label][i]
lab = series[:label][legendi]
else
lab = series[:label]
end