Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
19 lines
696 B
Julia
19 lines
696 B
Julia
using Plots, Test
|
|
|
|
@testset "Series Attributes" begin
|
|
pl = plot([[1, 2, 3], [2, 3, 4]], lw = 5)
|
|
@test hline!(deepcopy(pl), [1.75])[1].series_list[3][:label] ==
|
|
hline!(deepcopy(pl), [1.75], z_order = :front)[1].series_list[3][:label] ==
|
|
"y3"
|
|
@test hline!(deepcopy(pl), [1.75], z_order = :back)[1].series_list[1][:label] == "y3"
|
|
@test hline!(deepcopy(pl), [1.75], z_order = 2)[1].series_list[2][:label] == "y3"
|
|
end
|
|
|
|
@testset "Axis Attributes" begin
|
|
pl = @test_nowarn plot(; tickfont = font(10, "Times"))
|
|
for axis in (:xaxis, :yaxis, :zaxis)
|
|
@test pl[1][axis][:tickfontsize] == 10
|
|
@test pl[1][axis][:tickfontfamily] == "Times"
|
|
end
|
|
end
|