Improved the subplot function documentation and fixed the autogeneration from boilerplate.

Replaces #953 & closes #300