Skip to content

Commit

Permalink
Merge remote-tracking branch 'fork-origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobunse committed Aug 17, 2020
2 parents d8731f2 + 30723f3 commit ff033fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PGFPlots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ function plotHelper(o::IO, axis::Axis)
end
println(o) # empty line between plots
end
legendentries = map(p->hasproperty(p, :legendentry) ? p.legendentry : nothing, axis.plots)
legendentries = map(p->:legendentry in propertynames(p) ? p.legendentry : nothing, axis.plots)
legendentries = vcat(legendentries...) # flatten
# avoid adding \legend altogether if all entries are `nothing`
if !all(legendentries .=== nothing)
Expand Down

0 comments on commit ff033fd

Please sign in to comment.