PyPlot: z-axis guidefontrotation only works for short labels Fix 2641

This commit is contained in:
Zh 2020-05-05 02:22:36 +09:00
parent 40848e7432
commit 00f875f461

View File

@ -1074,6 +1074,10 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
end
pyaxis."label"."set_fontsize"(py_thickness_scale(plt, axis[:guidefontsize]))
pyaxis."label"."set_family"(axis[:guidefontfamily])
if (RecipesPipeline.is3d(sp))
pyaxis."set_rotate_label"(false)
end
if (letter == :y && !RecipesPipeline.is3d(sp))
pyaxis."label"."set_rotation"(axis[:guidefontrotation] + 90)