Merge pull request #2295 from BeastyBlacksmith/pgfplotsx
fix fillrange legends
This commit is contained in:
commit
e04858c975
@ -1,5 +1,4 @@
|
|||||||
using Contour: Contour
|
using Contour: Contour
|
||||||
|
|
||||||
Base.@kwdef mutable struct PGFPlotsXPlot
|
Base.@kwdef mutable struct PGFPlotsXPlot
|
||||||
is_created::Bool = false
|
is_created::Bool = false
|
||||||
was_shown::Bool = false
|
was_shown::Bool = false
|
||||||
@ -249,7 +248,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
PGFPlotsX.print_tex(io, pgfx_fillstyle(opt, i))
|
PGFPlotsX.print_tex(io, pgfx_fillstyle(opt, i))
|
||||||
style = strip(String(take!(io)),['[',']', ' '])
|
style = strip(String(take!(io)),['[',']', ' '])
|
||||||
push!( segment_opt, "legend image code/.code" => """{
|
push!( segment_opt, "legend image code/.code" => """{
|
||||||
\\draw[##1,/tikz/.cd, $style] (0cm,-0.1cm) rectangle (0.6cm,0.1cm);
|
\\draw[$style] (0cm,-0.1cm) rectangle (0.6cm,0.1cm);
|
||||||
}""" )
|
}""" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user