From 664af999cd65e05d36d60ee4e2c7e7400664564f Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 10 Mar 2021 22:15:06 +0100 Subject: [PATCH] fix wireframe on pyplot --- src/backends/pyplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 21243ca2..dbcd1813 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1267,7 +1267,7 @@ function _update_min_padding!(sp::Subplot{PyPlotBackend}) # optionally add the width of colorbar labels and colorbar to rightpad - if RecipesPipeline.is3d(sp) || haskey(sp.attr, :cbar_ax) + if RecipesPipeline.is3d(sp) && haskey(sp.attr, :cbar_ax) bb = py_bbox(sp.attr[:cbar_handle]."ax"."get_yticklabels"()) sp.attr[:cbar_width] = width(bb) + (sp[:colorbar_title] == "" ? 0px : 30px) end