I am using PyPlot to make a plot with subplots of different sizes.
using PyPlot
fig=figure(constrained_layout=false, figsize=(5, 4))
heights = [1, 2]
spec = fig.add_gridspec(ncols=1, nrows=2, height_ratios=heights, hspace=0.0)
fig.add_subplot(spec[1,1])
Then I got the following warning:
Warning: `getindex(o::PyObject, i1::Integer, i2::Integer)` is deprecated, use `get(o, (i1 - 1, i2 - 1))` instead.
How should I add subplot with the specified specs to avoid the warning? Thanks in advance.