add extrakw for colorbar positioning control in 3d

This commit is contained in:
Zhanibek 2021-12-27 23:44:37 +09:00
parent e0bc4b1406
commit 834a1523af

View File

@ -1725,7 +1725,8 @@ function _update_plot_object(plt::Plot{PyPlotBackend})
_cbar_width - 1mm, _cbar_width - 1mm,
height(sp.bbox) - 4mm, height(sp.bbox) - 4mm,
) )
pcts = bbox_to_pcts(cb_bbox, figw, figh) pcts = get(sp[:extra_kwargs], "3d_colorbar_axis", bbox_to_pcts(cb_bbox, figw, figh))
sp.attr[:cbar_ax]."set_position"(pcts) sp.attr[:cbar_ax]."set_position"(pcts)
end end
end end