diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 2fbe714e..339db4a6 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -805,14 +805,14 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) push!(handles, handle) needs_colorbar = true - # # TODO: this should probably be handled generically - # # expand extrema... handle is a QuadMesh object - # for path in handle[:properties]()["paths"] - # verts = path[:vertices] - # xmin, ymin = minimum(verts, 1) - # xmax, ymax = maximum(verts, 1) - # expand_extrema!(sp, xmin, xmax, ymin, ymax) - # end + # TODO: this should probably be handled generically + # expand extrema... handle is a QuadMesh object + for path in handle[:properties]()["paths"] + verts = path[:vertices] + xmin, ymin = minimum(verts, 1) + xmax, ymax = maximum(verts, 1) + expand_extrema!(sp, xmin, xmax, ymin, ymax) + end end diff --git a/test/runtests.jl b/test/runtests.jl index bcd15bfa..f7aa9c67 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -30,7 +30,7 @@ facts("GR") do @fact gr() --> Plots.GRBackend() @fact backend() --> Plots.GRBackend() - # image_comparison_facts(:gr, skip=[30], eps=img_eps) + # @linux_only image_comparison_facts(:gr, skip=[], eps=img_eps) end facts("Plotly") do