tests for marker-stroke-color
This commit is contained in:
parent
fc0a12ac36
commit
642bb9aead
@ -149,8 +149,6 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
||||
# treat segments
|
||||
segments = iter_segments(series)
|
||||
segment_opt = PGFPlotsX.Options()
|
||||
# @show get_markerstrokecolor(opt, 1)
|
||||
# @show get_markercolor(opt,1)
|
||||
for (i, rng) in enumerate(segments)
|
||||
seg_args = (arg[rng] for arg in args)
|
||||
segment_opt = merge( segment_opt, pgfx_linestyle(opt, i) )
|
||||
|
||||
@ -37,11 +37,10 @@ end
|
||||
axis = Plots.pgfx_axes(pl.o)[1]
|
||||
@test count( x->x isa PGFPlotsX.LegendEntry, axis.contents ) == 5
|
||||
@test count( x->x isa PGFPlotsX.Plot, axis.contents ) == 104 # each marker is its own plot
|
||||
marker = axis.contents[5]
|
||||
marker = axis.contents[14]
|
||||
@test marker isa PGFPlotsX.Plot
|
||||
@show marker.options.dict |> keys
|
||||
@test marker.options["mark"] == "none"
|
||||
@test marker.options["mark options"]["color"] == convert(RGBA{Float64}, colorant"green")
|
||||
@test marker.options["mark"] == "*"
|
||||
@test marker.options["mark options"]["color"] == RGBA{Float64}( colorant"green", 0.8)
|
||||
@test marker.options["mark options"]["line width"] == 1
|
||||
|
||||
# TODO: marker stroke color is incorrect
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user