plot was wrongly failing a typecheck. Needed to add numpy integer types in addition to int into the check.