JuliaTeX / PGFPlots.jl

This library uses the LaTeX package pgfplots to produce plots.
Other
187 stars 36 forks source link

Back to \addlegendentry #166

Closed tawheeler closed 3 years ago

tawheeler commented 3 years ago

We recently moved from using \addlegendentry for legend entries to having a single \legend filing at the end of all of the plot entries. Unfortunately, this approach does not play well with entries that are not included in the legend, such as when "forget plot" is used.

This PR reverts back to using individual \addlegendentry calls, but adds in the {}{entry} trick that the previous PR used to guard against commas in an entry.

This PR also moves away from === and !== used for nothing comparisons in favor of isnothing and !isnothing.

tawheeler commented 3 years ago

@mykelk I updated the notebook kernel to Julia 1.5, which I think is the cause of the build failure. I can revert the kernel to 1.3.