tests for marker-stroke-color

This commit is contained in:
Simon Christ 2019-11-20 18:10:30 +01:00
parent fc0a12ac36
commit 642bb9aead
2 changed files with 3 additions and 6 deletions

View File

@ -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) )

View File

@ -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