Strange, that is GDAL error and it works fine for me. As it does a similar command used in the CI test
plot(t, cos.(t), inset=(zoom=(pi,pi/4),), show=true)