@iHany, as requested the user function code and examples were updated above.
As indicated, this subplot business in Plots.jl and gr()
is a bit shaky…
If you see things that can be obviously improved, please do share.
NB: there was a bug on the list of vertical proportions which were in reverse order. Fixed now.