BUG : raise exception in subplot if num out of range

if subplot(rows, cols, num) is called with num not in
0 < num <= rows * cols raise a ValueError

close #3166