Skip to content

Commit

Permalink
Removed use of isnothing for Julia v1.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mossr committed Aug 16, 2020
1 parent cd03d56 commit d542f1f
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 @@ -705,7 +705,7 @@ function plotHelper(o::IO, axis::Axis)
legendentries = map(p->hasproperty(p, :legendentry) ? p.legendentry : nothing, axis.plots)
legendentries = vcat(legendentries...) # flatten
# avoid adding \legend altogether if all entries are `nothing`
if !all(isnothing.(legendentries))
if !all(legendentries .=== nothing)
legendentries = replace(legendentries, nothing=>"") # for correct printing
legendcontent = join(legendentries, ',')
println(o, "\\legend{$legendcontent}") # add legend
Expand Down

0 comments on commit d542f1f

Please sign in to comment.