BUG : makes Axes.margins work with just kwargs

applied fix supplied by @syoung-m4 in #2510
Merge pull request #2762 from tacaswell/margin_arg_counting

BUG : makes Axes.margins work with just kwargs