Merge pull request #1230 from daschw/pgfplots-legend-symbols
change pgfplots legend symbol for shapes and filled plots (fix #1215)
This commit is contained in:
commit
ecee135a63
@ -207,6 +207,9 @@ function pgf_series(sp::Subplot, series::Series)
|
|||||||
# add to legend?
|
# add to legend?
|
||||||
if sp[:legend] != :none && should_add_to_legend(series)
|
if sp[:legend] != :none && should_add_to_legend(series)
|
||||||
kw[:legendentry] = d[:label]
|
kw[:legendentry] = d[:label]
|
||||||
|
if st == :shape || d[:fillrange] != nothing
|
||||||
|
push!(style, "area legend")
|
||||||
|
end
|
||||||
else
|
else
|
||||||
push!(style, "forget plot")
|
push!(style, "forget plot")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user