@@ -6,10 +6,10 @@ using OffsetArrays
66 legend --> :topleft
77 (1 : 3 , 1 : 3 )
88 end
9- let pl = pl = plot (LegendPlot (); legend = :right )
9+ let pl = plot (LegendPlot (); legend = :right )
1010 @test pl[1 ][:legend_position ] ≡ :right
1111 end
12- let pl = pl = plot (LegendPlot ())
12+ let pl = plot (LegendPlot ())
1313 @test pl[1 ][:legend_position ] ≡ :topleft
1414 end
1515 let pl = plot (LegendPlot (); legend = :inline )
5353
5454@testset " steps offset" begin
5555 data = OffsetArray (rand (11 ), - 5 : 5 )
56- plot (data, linetype = :steppre )
57- plot (data, linetype = :stepmid )
58- plot (data, linetype = :steppost )
56+ @test_nowarn plot (data, linetype = :steppre )
57+ @test_nowarn plot (data, linetype = :stepmid )
58+ @test_nowarn plot (data, linetype = :steppost )
5959end
6060
6161@testset " offset axes" begin
@@ -155,4 +155,8 @@ with(:gr) do
155155 @test_nowarn show (devnull , bar ([1 2 3 ], [0.02 125 10_000 ]; yscale = :log10 ))
156156 @test_nowarn histogram (randn (100 ), yscale = :log10 )
157157 end
158+
159+ @testset " histogram range" begin
160+ @test histogram (1 : 10 ) isa Plot
161+ end
158162end
0 commit comments