using Plots, Test @testset "Subplot sclicing" begin pl = @test_nowarn plot( rand(4, 8), layout = 4, yscale = [:identity :identity :log10 :log10], ) @test pl[1][:yaxis][:scale] == :identity @test pl[2][:yaxis][:scale] == :identity @test pl[3][:yaxis][:scale] == :log10 @test pl[4][:yaxis][:scale] == :log10 end @testset "Plot title" begin pl = plot(rand(4, 8), layout = 4, plot_title = "My title") @test pl[:plot_title] == "My title" @test pl[:plot_titleindex] == 5 plot!(pl) @test pl[:plot_title] == "My title" @test pl[:plot_titleindex] == 5 plot!(pl, plot_title = "My new title") @test pl[:plot_title] == "My new title" @test pl[:plot_titleindex] == 5 end @testset "Plots.jl/issues/4083" begin p = plot(plot(1:2), plot(1:2); border = :grid, plot_title = "abc") @test p[1][:framestyle] === :grid @test p[2][:framestyle] === :grid @test p[3][:framestyle] === :none end