Merge e3d5df1c087b1ebb7c50945187e6821a69788ff6 into a7485cc7f5f3fc1f8aee7d625316da5d0d8ffdda

This commit is contained in:
AnkurD 2017-09-25 07:57:27 +00:00 committed by GitHub
commit 43146518df

View File

@ -999,9 +999,14 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
# create and store the colorbar object (handle) and the axis that it is drawn on.
# note: the colorbar axis is positioned independently from the subplot axis
fig = plt.o
cbax = fig[:add_axes]([0.8,0.1,0.03,0.8], label = string(gensym()))
cb = fig[:colorbar](handle; cax = cbax, kw...)
cb[:set_label](sp[:colorbar_title])
axis = sp[Symbol(:y,:axis)]
cbax = fig[:add_axes]([0.8,0.1,0.03,0.8], label = string(gensym()))
cb = fig[:colorbar](handle; cax = cbax, kw...)
cb[:set_label](sp[:colorbar_title],size=py_dpi_scale(plt, axis[:guidefont].pointsize),family=axis[:guidefont].family)
for lab in cb[:ax][:yaxis][:get_ticklabels]()
lab[:set_fontsize](py_dpi_scale(plt, axis[:tickfont].pointsize))
lab[:set_family](axis[:tickfont].family)
end
sp.attr[:cbar_handle] = cb
sp.attr[:cbar_ax] = cbax
end